#include <matrix.h>
Inherits sc::Ref<SCMatrix>.
PublicMemberFunctionsRefSCMatrix ()
Initializes the matrix pointer to 0.
RefSCMatrix (const RefSCMatrix &m)
Make this and m refer to the same SCMatrix.
RefSCMatrix (SCMatrix *m)
Make this refer to m.
RefSCMatrix & operator= (SCMatrix *m)
Make this refer to m.
RefSCMatrix & operator= (const RefSCMatrix &m)
Make this and m refer to the same matrix.
RefSCMatrix (const RefSCDimension &d1, const RefSCDimension &d2, const Ref< SCMatrixKit > &)
Create a vector with dimension d1 by d2.
RefSCVectoroperator* (const RefSCVector &) const
Multiply this by a vector and return a vector.
RefSCMatrixoperator* (const RefSCMatrix &) const
Multiply this by a matrix and return a matrix.
RefSCMatrixoperator* (const RefSymmSCMatrix &) const
RefSCMatrixoperator* (const RefDiagSCMatrix &) const
RefSCMatrixoperator* (double) const
Multiply this by a scalar and return the result.
RefSCMatrixoperator+ (const RefSCMatrix &) const
Matrix addition.
RefSCMatrixoperator- (const RefSCMatrix &) const
Matrix subtraction.
RefSCMatrixt () const
Return the transpose of this.
RefSCMatrixi () const
Return the inverse of this.
RefSCMatrixgi () const
Return the generalized inverse of this.
RefSCMatrixclone () const
These call the SCMatrix members of the same name after checking for references to 0.
RefSCMatrixcopy () const
RefSCMatrixget_subblock (int br, int er, int bc, int ec)
void assign_subblock (const RefSCMatrix &, int br, int er, int bc, int ec, int source_br=0, int
source_bc=0)
void accumulate_subblock (const RefSCMatrix &, int, int, int, int, int source_br=0, int source_bc=0)
RefSCVectorget_row (int) const
RefSCVectorget_column (int) const
void assign_row (const RefSCVector &, int) const
void assign_column (const RefSCVector &, int) const
void accumulate_row (const RefSCVector &, int) const
void accumulate_column (const RefSCVector &, int) const
void accumulate_outer_product (const RefSCVector &, const RefSCVector &) const
void accumulate_product (const RefSCMatrix &, const RefSCMatrix &) const
void assign (const RefSCMatrix &) const
void scale (double) const
void randomize () const
void assign (double) const
void assign (const double *) const
void assign (const double **) const
void convert (double *) const
void convert (double **) const
void accumulate (const RefSCMatrix &) const
void accumulate (const RefSymmSCMatrix &) const
void accumulate (const RefDiagSCMatrix &) const
void element_op (const Ref< SCElementOp > &) const
void element_op (const Ref< SCElementOp2 > &, const RefSCMatrix &) const
void element_op (const Ref< SCElementOp3 > &, const RefSCMatrix &, const RefSCMatrix &) const
int nrow () const
int ncol () const
RefSCDimensionrowdim () const
RefSCDimensioncoldim () const
Ref< SCMatrixKit > kit () const
void set_element (int, int, double) const
void accumulate_element (int, int, double) const
double get_element (int, int) const
void print (std::ostream &) const
void print (const char *title=0, std::ostream &out=ExEnv::out0(), int=10) const
double trace () const
void save (StateOut &)
void restore (StateIn &)
Restores the matrix from StateIn object. The matrix must have been initialized already.
void svd (const RefSCMatrix &U, const RefDiagSCMatrix &sigma, const RefSCMatrix &V)
Compute the singular value decomposition, this = U sigma V.t().
double solve_lin (const RefSCVector &v) const
Solves this x = v.
double determ () const
Returns the determinant of the referenced matrix.
SCMatrixdoubleoperator() (int i, int j) const
Assign and examine matrix elements.
int nblock () const
If this matrix is blocked return the number of blocks.
RefSCMatrixblock (int i) const
If this matrix is blocked return block i.
AdditionalInheritedMembers