#include <Teuchos_SerialDenseMatrix.hpp>
Inheritance diagram for Teuchos::SerialDenseMatrix< OrdinalType, ScalarType >:

Public Member Functions | |
Constructor/Destructor methods. | |
| SerialDenseMatrix () | |
| Default Constructor. | |
| SerialDenseMatrix (OrdinalType numRows, OrdinalType numCols, bool zeroOut=true) | |
| Shaped Constructor. | |
| SerialDenseMatrix (DataAccess CV, ScalarType *values, OrdinalType stride, OrdinalType numRows, OrdinalType numCols) | |
| Shaped Constructor with Values. | |
| SerialDenseMatrix (const SerialDenseMatrix< OrdinalType, ScalarType > &Source, ETransp trans=Teuchos::NO_TRANS) | |
| Copy Constructor. | |
| SerialDenseMatrix (DataAccess CV, const SerialDenseMatrix< OrdinalType, ScalarType > &Source, OrdinalType numRows, OrdinalType numCols, OrdinalType startRow=0, OrdinalType startCol=0) | |
| Submatrix Copy Constructor. | |
| virtual | ~SerialDenseMatrix () |
| Destructor. | |
Shaping methods. | |
| int | shape (OrdinalType numRows, OrdinalType numCols) |
| Shape method for changing the size of a SerialDenseMatrix, initializing entries to zero. | |
| int | shapeUninitialized (OrdinalType numRows, OrdinalType numCols) |
Same as shape() except leaves uninitialized. | |
| int | reshape (OrdinalType numRows, OrdinalType numCols) |
| Reshaping method for changing the size of a SerialDenseMatrix, keeping the entries. | |
Set methods. | |
| SerialDenseMatrix< OrdinalType, ScalarType > & | operator= (const SerialDenseMatrix< OrdinalType, ScalarType > &Source) |
| Copies values from one matrix to another. | |
| SerialDenseMatrix< OrdinalType, ScalarType > & | assign (const SerialDenseMatrix< OrdinalType, ScalarType > &Source) |
| Copies values from one matrix to another. | |
| int | putScalar (const ScalarType value=Teuchos::ScalarTraits< ScalarType >::zero()) |
| Set all values in the matrix to a constant value. | |
| int | random () |
| Set all values in the matrix to be random numbers. | |
Accessor methods. | |
| ScalarType & | operator() (OrdinalType rowIndex, OrdinalType colIndex) |
| Element access method (non-const). | |
| const ScalarType & | operator() (OrdinalType rowIndex, OrdinalType colIndex) const |
| Element access method (const). | |
| ScalarType * | operator[] (OrdinalType colIndex) |
| Column access method (non-const). | |
| const ScalarType * | operator[] (OrdinalType colIndex) const |
| Column access method (const). | |
| ScalarType * | values () const |
| Data array access method. | |
Mathematical methods. | |
| SerialDenseMatrix< OrdinalType, ScalarType > & | operator+= (const SerialDenseMatrix< OrdinalType, ScalarType > &Source) |
| Add another matrix to this matrix. | |
| SerialDenseMatrix< OrdinalType, ScalarType > & | operator-= (const SerialDenseMatrix< OrdinalType, ScalarType > &Source) |
| Subtract another matrix from this matrix. | |
| SerialDenseMatrix< OrdinalType, ScalarType > & | operator *= (const ScalarType alpha) |
Scale this matrix by alpha; *this = alpha* | |
| int | scale (const ScalarType alpha) |
Scale this matrix by alpha; *this = alpha* | |
| int | scale (const SerialDenseMatrix< OrdinalType, ScalarType > &A) |
Point-wise scale this matrix by A; i.e. *this(i,j) *= A(i,j). | |
| int | multiply (ETransp transa, ETransp transb, ScalarType alpha, const SerialDenseMatrix< OrdinalType, ScalarType > &A, const SerialDenseMatrix< OrdinalType, ScalarType > &B, ScalarType beta) |
Multiply A * B and add them to this; this = beta * this + alpha*A*B. | |
| int | multiply (ESide sideA, ScalarType alpha, const SerialSymDenseMatrix< OrdinalType, ScalarType > &A, const SerialDenseMatrix< OrdinalType, ScalarType > &B, ScalarType beta) |
Multiply A and B and add them to this; this = beta * this + alpha*A*B or this = beta * this + alpha*B*A. | |
Comparison methods. | |
| bool | operator== (const SerialDenseMatrix< OrdinalType, ScalarType > &Operand) |
| Equality of two matrices. | |
| bool | operator!= (const SerialDenseMatrix< OrdinalType, ScalarType > &Operand) |
| Inequality of two matrices. | |
Attribute methods. | |
| OrdinalType | numRows () const |
| Returns the row dimension of this matrix. | |
| OrdinalType | numCols () const |
| Returns the column dimension of this matrix. | |
| OrdinalType | stride () const |
| Returns the stride between the columns of this matrix in memory. | |
| bool | empty () const |
| Returns whether this matrix is empty. | |
Norm methods. | |
| ScalarTraits< ScalarType >::magnitudeType | normOne () const |
| Returns the 1-norm of the matrix. | |
| ScalarTraits< ScalarType >::magnitudeType | normInf () const |
| Returns the Infinity-norm of the matrix. | |
| ScalarTraits< ScalarType >::magnitudeType | normFrobenius () const |
| Returns the Frobenius-norm of the matrix. | |
I/O methods. | |
| virtual void | print (std::ostream &os) const |
| Print method. Defines the behavior of the std::ostream << operator inherited from the Object class. | |
|
|||||||||
|
Default Constructor. Creates a empty matrix of no dimension. The Shaping methods should be used to size this matrix. Values of this matrix should be set using the [], (), or = operators. |
|
||||||||||||||||||||
|
Shaped Constructor.
numRows rows and numCols cols. All values are initialized to 0 when zeroOut is true. Values of this matrix should be set using the [] or the () operators. |
|
||||||||||||||||||||||||||||
|
Shaped Constructor with Values.
|
|
||||||||||||||||
|
Copy Constructor.
|
|
||||||||||||||||||||||||||||||||
|
Submatrix Copy Constructor.
numRows rows and numCols columns, which is a submatrix of Source. If startRow and startCol are not given, then the submatrix is the leading submatrix of Source. Otherwise, the (1,1) entry in the copied matrix is the (startRow, startCol) entry of Source. |
|
|||||||||
|
Destructor.
|
|
||||||||||||||||
|
Shape method for changing the size of a SerialDenseMatrix, initializing entries to zero.
|
|
||||||||||||||||
|
Same as
|
|
||||||||||||||||
|
Reshaping method for changing the size of a SerialDenseMatrix, keeping the entries.
|
|
||||||||||
|
Copies values from one matrix to another.
The operator= copies the values from one existing SerialDenseMatrix to another. If |
|
||||||||||
|
Copies values from one matrix to another. The operator= copies the values from one existing SerialDenseMatrix to another if the dimension of both matrices are the same. If not, this matrix will be returned unchanged. |
|
||||||||||
|
Set all values in the matrix to a constant value.
|
|
|||||||||
|
Set all values in the matrix to be random numbers.
|
|
||||||||||||||||
|
Element access method (non-const). Returns the element in the ith row and jth column if A(i,j) is specified, the expression A[j][i] will return the same element.
|
|
||||||||||||||||
|
Element access method (const). Returns the element in the ith row and jth column if A(i,j) is specified, the expression A[j][i] will return the same element.
|
|
||||||||||
|
Column access method (non-const). Returns the pointer to the ScalarType array at the jth column if A[j] is specified, the expression A[j][i] will return the same element as A(i,j).
Reimplemented in Teuchos::SerialDenseVector< OrdinalType, ScalarType >. |
|
||||||||||
|
Column access method (const). Returns the pointer to the ScalarType array at the jth column if A[j] is specified, the expression A[j][i] will return the same element as A(i,j).
Reimplemented in Teuchos::SerialDenseVector< OrdinalType, ScalarType >. |
|
|||||||||
|
Data array access method.
|
|
||||||||||
|
Add another matrix to this matrix.
Add |
|
||||||||||
|
Subtract another matrix from this matrix.
Subtract |
|
||||||||||
|
Scale
|
|
||||||||||
|
Scale
|
|
||||||||||
|
Point-wise scale
The values of
|
|
||||||||||||||||||||||||||||||||
|
Multiply
A and B are not of the right dimension, consistent with this, then this matrix will not be altered and -1 will be returned.
|
|
||||||||||||||||||||||||||||
|
Multiply
A and B are not of the right dimension, consistent with this, then this matrix will not be altered and -1 will be returned.
|
|
||||||||||
|
Equality of two matrices.
|
|
||||||||||
|
Inequality of two matrices.
|
|
|||||||||
|
Returns the row dimension of this matrix.
|
|
|||||||||
|
Returns the column dimension of this matrix.
|
|
|||||||||
|
Returns the stride between the columns of this matrix in memory.
|
|
|||||||||
|
Returns whether this matrix is empty.
|
|
|||||||||
|
Returns the 1-norm of the matrix.
|
|
|||||||||
|
Returns the Infinity-norm of the matrix.
|
|
|||||||||
|
Returns the Frobenius-norm of the matrix.
|
|
||||||||||
|
Print method. Defines the behavior of the std::ostream << operator inherited from the Object class.
Reimplemented from Teuchos::Object. Reimplemented in Teuchos::SerialDenseVector< OrdinalType, ScalarType >. |
1.3.9.1