Public Member Functions | |
| DenseSerialMatrix (const VectorSpace< double > &domain, const VectorSpace< double > &range) | |
| ~DenseSerialMatrix () | |
| virtual void | apply (Teuchos::ETransp transApplyType, const Vector< double > &in, Vector< double > out) const |
| virtual void | addToRow (int globalRowIndex, int nElemsToInsert, const int *globalColumnIndices, const double *elementValues) |
| virtual void | zero () |
| void | print (std::ostream &os) const |
| const double *const | dataPtr () const |
| double * | dataPtr () |
| int | numRows () const |
| int | numCols () const |
| void | setRow (int row, const Array< double > &rowVals) |
Private Attributes | |
| int | nRows_ |
| int | nCols_ |
| Array< double > | data_ |
Related Functions | |
(Note that these are not member functions.) | |
| void | denseSVD (const LinearOperator< double > &A, LinearOperator< double > &U, Vector< double > &Sigma, LinearOperator< double > &Vt) |
| SolverState< double > | denseSolve (const LinearOperator< double > &A, const Vector< double > &b, Vector< double > &x) |
Linear operator implemented as a dense matrix.
Definition at line 67 of file PlayaDenseSerialMatrix.hpp.
| DenseSerialMatrix::DenseSerialMatrix | ( | const VectorSpace< double > & | domain, |
| const VectorSpace< double > & | range | ||
| ) |
Construct with domain and range spaces, which should be DenseSerialVectorSpace objects
Definition at line 72 of file PlayaDenseSerialMatrix.cpp.
| Playa::DenseSerialMatrix::~DenseSerialMatrix | ( | ) | [inline] |
Virtual dtor
Definition at line 79 of file PlayaDenseSerialMatrix.hpp.
| void DenseSerialMatrix::addToRow | ( | int | globalRowIndex, |
| int | nElemsToInsert, | ||
| const int * | globalColumnIndices, | ||
| const double * | elementValues | ||
| ) | [virtual] |
Insert a set of elements in a row, adding to any previously existing values. The nonzero structure of the matrix must have been determined at construction time.
| globalRowIndex | the global index of the row to which these elements belong. |
| nElemsToInsert | the number of elements being inserted in this step |
| globalColumnIndices | array of column indices. Must be nElemsToInsert in length. |
| elements | array of element values. Must be nElemsToInsert in length |
Implements Playa::LoadableMatrix< double >.
Definition at line 96 of file PlayaDenseSerialMatrix.cpp.
| void DenseSerialMatrix::apply | ( | Teuchos::ETransp | transApplyType, |
| const Vector< double > & | in, | ||
| Vector< double > | out | ||
| ) | const [virtual] |
Apply either the operator or its transpose
Implements Playa::LinearOperatorBase< double >.
Definition at line 82 of file PlayaDenseSerialMatrix.cpp.
References dataPtr(), Playa::SerialVector::dataPtr(), Playa::SerialVector::getConcrete(), numCols(), and numRows().
| const double* const Playa::DenseSerialMatrix::dataPtr | ( | ) | const [inline] |
Definition at line 115 of file PlayaDenseSerialMatrix.hpp.
References data_.
Referenced by apply(), Playa::denseSolve(), and Playa::denseSVD().
| double* Playa::DenseSerialMatrix::dataPtr | ( | ) | [inline] |
Definition at line 118 of file PlayaDenseSerialMatrix.hpp.
References data_.
| int Playa::DenseSerialMatrix::numCols | ( | ) | const [inline] |
Definition at line 124 of file PlayaDenseSerialMatrix.hpp.
References nCols_.
Referenced by apply(), Playa::denseSVD(), print(), and setRow().
| int Playa::DenseSerialMatrix::numRows | ( | ) | const [inline] |
Definition at line 121 of file PlayaDenseSerialMatrix.hpp.
References nRows_.
Referenced by addToRow(), apply(), Playa::denseSolve(), Playa::denseSVD(), print(), and setRow().
| void DenseSerialMatrix::print | ( | std::ostream & | os | ) | const [virtual] |
write to a stream
Implements Playa::Printable.
Definition at line 116 of file PlayaDenseSerialMatrix.cpp.
| void DenseSerialMatrix::setRow | ( | int | row, |
| const Array< double > & | rowVals | ||
| ) |
Definition at line 142 of file PlayaDenseSerialMatrix.cpp.
| void DenseSerialMatrix::zero | ( | ) | [virtual] |
Set all elements to zero, preserving the existing structure
Implements Playa::LoadableMatrix< double >.
Definition at line 110 of file PlayaDenseSerialMatrix.cpp.
References data_.
| SolverState< double > denseSolve | ( | const LinearOperator< double > & | A, |
| const Vector< double > & | b, | ||
| Vector< double > & | x | ||
| ) | [related] |
Definition at line 159 of file PlayaDenseSerialMatrix.cpp.
| void denseSVD | ( | const LinearOperator< double > & | A, |
| LinearOperator< double > & | U, | ||
| Vector< double > & | Sigma, | ||
| LinearOperator< double > & | Vt | ||
| ) | [related] |
Definition at line 196 of file PlayaDenseSerialMatrix.cpp.
Array<double> Playa::DenseSerialMatrix::data_ [private] |
Definition at line 134 of file PlayaDenseSerialMatrix.hpp.
Referenced by addToRow(), dataPtr(), print(), setRow(), and zero().
int Playa::DenseSerialMatrix::nCols_ [private] |
Definition at line 133 of file PlayaDenseSerialMatrix.hpp.
Referenced by numCols().
int Playa::DenseSerialMatrix::nRows_ [private] |
Definition at line 132 of file PlayaDenseSerialMatrix.hpp.
Referenced by numRows().