# SCM Repository

[matrix] Diff of /pkg/inst/doc/Intro2Matrix.Rnw
 [matrix] / pkg / inst / doc / Intro2Matrix.Rnw

# Diff of /pkg/inst/doc/Intro2Matrix.Rnw

revision 1547, Mon Sep 11 14:49:39 2006 UTC revision 1548, Mon Sep 11 22:13:07 2006 UTC
# Line 67  Line 67
67  M[4, ]  M[4, ]
68  @  @
69  where the last two statements show customary matrix indexing, returning a  where the last two statements show customary matrix indexing, returning a
70  simple numeric vector each.  simple numeric vector each\footnote{because there's an additional default
71      argument to indexing, \Scode{drop = TRUE}.  If you add
72      \Scode{\ ,\ drop = FALSE} you will get submatrices instead simple
73      vectors.}
74  We assign 0 to some columns and rows to sparsify'' it,  We assign 0 to some columns and rows to sparsify'' it,
75  @  @
76  <<set0>>=  <<set0>>=
# Line 82  Line 85
85  10 * sM  10 * sM
86  identical(sM * 2, sM + sM)  identical(sM * 2, sM + sM)
87  @ %def  @ %def
88  where we also see that multiplication by scalar keeps sparcity  where we also see that multiplication by a scalar keeps sparcity,
89  but addition with a dense'' object does not.  but addition with a dense'' object does not.
90  @  @
# Line 349  Line 352
352   \TODO{Using Group Methods}   \TODO{Using Group Methods}
353
354
355    \section{Session Info}
356
357    <<sessionInfo, results=tex>>=
358    toLatex(sessionInfo())
359    @
360
361  \bibliography{Matrix}  \bibliography{Matrix}
362
363  \end{document}  \end{document}

Legend:
 Removed from v.1547 changed lines Added in v.1548