Skip to content
Prev 201826 / 398502 Next

Symmetric Matrix classes

On Nov 26, 2009, at 11:00 PM, Gad Abraham wrote:

            
Then maybe you should pick a Matrix class that suits your desires. You  
are the one who said he wanted a symmetric class. There is a  
triangular sparse class.

I doubt you will get the lowerTriangle function to work on these  
instances of Matrix. When I use the base function lower.tri to index  
that 10 x 10 sparse matrix I get an error message that makes me think  
you will need to populate these Matrices element by element.

M[lower.tri] <- 0
Error in .local(x, i, j, ..., value) :
   not-yet-implemented 'Matrix[<-' method

diag(M) <- 1    # did work.
David Winsemius, MD
Heritage Laboratories
West Hartford, CT