SCM

SCM Repository

[matrix] Diff of /branches/Matrix-mer2/tests/validObj.R
ViewVC logotype

Diff of /branches/Matrix-mer2/tests/validObj.R

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

revision 834, Mon Aug 8 08:36:34 2005 UTC revision 847, Thu Aug 11 06:44:09 2005 UTC
# Line 82  Line 82 
82    
83    
84  ## non-square  triagonal Matrices --- should this be forbidden anyway? ---  ## non-square  triagonal Matrices --- should this be forbidden anyway? ---
85  tru <- new("dtrMatrix", Dim = 2:3, x=as.double(1:6), uplo="L", diag="U")  try(tru <- new("dtrMatrix", Dim = 2:3, x=as.double(1:6), uplo="L", diag="U"))
86  trn <- new("dtrMatrix", Dim = 2:3, x=as.double(1:6), uplo="L", diag="N")  try(trn <- new("dtrMatrix", Dim = 2:3, x=as.double(1:6), uplo="L", diag="N"))
87  tru + trn  # a 'dgeMatrix'  #tru + trn  # a 'dgeMatrix'
88    
89  as(t(tru),"dgeMatrix")  #as(t(tru),"dgeMatrix")
90  as(t(trn),"dgeMatrix")  #as(t(trn),"dgeMatrix")
91  as(t(t(tru)), "dgeMatrix")# pretty non sense  #as(t(t(tru)), "dgeMatrix")# pretty non sense

Legend:
Removed from v.834  
changed lines
  Added in v.847

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge