SCM

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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  @  @
91  <<add1>>=  <<add1>>=
# 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

R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge