#include <Teuchos_SerialDenseMatrix.hpp>
Inheritance diagram for Teuchos::SerialDenseMatrix< OrdinalType, ScalarType >:
Public Member Functions | |
Constructor/Destructor methods. | |
| SerialDenseMatrix () | |
| Default Constructor. | |
| SerialDenseMatrix (int numRows, int numCols) | |
| Shaped Constructor. | |
| SerialDenseMatrix (DataAccess CV, ScalarType *values, int stride, int numRows, int numCols) | |
| Shaped Constructor with Values. | |
| SerialDenseMatrix (const SerialDenseMatrix< OrdinalType, ScalarType > &Source) | |
| Copy Constructor. | |
| SerialDenseMatrix (DataAccess CV, const SerialDenseMatrix< OrdinalType, ScalarType > &Source, int numRows, int numCols, int startRow=0, int startCol=0) | |
| Submatrix Copy Constructor. | |
| virtual | ~SerialDenseMatrix () |
| Destructor. | |
Shaping methods. | |
| int | shape (int numRows, int numCols) |
| Shape method for changing the size of a SerialDenseMatrix, initializing entries to zero. | |
| int | shapeUninitialized (int numRows, int numCols) |
Same as shape() except leaves uninitialized. | |
| int | reshape (int numRows, int 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() (int rowIndex, int colIndex) |
| Element access method (non-const). | |
| const ScalarType & | operator() (int rowIndex, int colIndex) const |
| Element access method (const). | |
| ScalarType * | operator[] (int colIndex) |
| Column access method (non-const). | |
| const ScalarType * | operator[] (int 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. | |
| 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. | |
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. | |
| int | numRows () const |
| Returns the row dimension of this matrix. | |
| int | numCols () const |
| Returns the column dimension of this matrix. | |
| int | stride () const |
| Returns the stride between the columns of this matrix in memory. | |
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 (ostream &os) const |
| Print method. Defines the behavior of the ostream << operator inherited from the Object class. | |
Protected Member Functions | |
| void | copyMat (ScalarType *inputMatrix, int strideInput, int numRows, int numCols, ScalarType *outputMatrix, int strideOutput, int startRow, int startCol, ScalarType alpha=ScalarTraits< ScalarType >::zero()) |
| void | deleteArrays () |
| void | checkIndex (int rowIndex, int colIndex=0) const |
Protected Attributes | |
| int | numRows_ |
| int | numCols_ |
| int | stride_ |
| bool | valuesCopied_ |
| ScalarType * | values_ |
Definition at line 72 of file Teuchos_SerialDenseMatrix.hpp.
|
|||||||||
|
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. Definition at line 349 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||||||||
|
Shaped Constructor.
numRows rows and numCols cols. All values are initialized to 0. Values of this matrix should be set using the [] or the () operators.
Definition at line 352 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||||||||||||||||||||
|
Shaped Constructor with Values.
Definition at line 360 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||
|
Copy Constructor.
Definition at line 372 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||||||||||||||||||||||||
|
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.
Definition at line 380 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||||||
|
Destructor.
Definition at line 396 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||||||||
|
Shape method for changing the size of a SerialDenseMatrix, initializing entries to zero.
Definition at line 406 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||||||||
|
Same as
Definition at line 419 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||||||||
|
Reshaping method for changing the size of a SerialDenseMatrix, keeping the entries.
Definition at line 431 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||
|
Copies values from one matrix to another.
The operator= copies the values from one existing SerialDenseMatrix to another. If Definition at line 488 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||
|
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. Definition at line 568 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||
|
Set all values in the matrix to a constant value.
Definition at line 460 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||||||
|
Set all values in the matrix to be random numbers.
Definition at line 474 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||||||||
|
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.
Definition at line 588 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||||||||
|
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.
Definition at line 597 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||
|
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 >. Definition at line 615 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||
|
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 >. Definition at line 606 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||||||
|
Data array access method.
Definition at line 235 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||
|
Add another matrix to this matrix.
Add Definition at line 544 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||
|
Subtract another matrix from this matrix.
Subtract Definition at line 556 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||
|
Scale
Definition at line 724 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||
|
Point-wise scale
The values of
Definition at line 738 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||||||||||||||||||||||||
|
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.
Definition at line 757 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||
|
Equality of two matrices.
Definition at line 689 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||
|
Inequality of two matrices.
Definition at line 714 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||||||
|
Returns the row dimension of this matrix.
Definition at line 306 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||||||
|
Returns the column dimension of this matrix.
Definition at line 309 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||||||
|
Returns the stride between the columns of this matrix in memory.
Definition at line 312 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||||||
|
Returns the 1-norm of the matrix.
Definition at line 628 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||||||
|
Returns the Infinity-norm of the matrix.
Definition at line 653 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||||||
|
Returns the Frobenius-norm of the matrix.
Definition at line 670 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||
|
Print method. Defines the behavior of the ostream << operator inherited from the Object class.
Reimplemented from Teuchos::Object. Reimplemented in Teuchos::SerialDenseVector< OrdinalType, ScalarType >. Definition at line 779 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 827 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||||||
|
Definition at line 816 of file Teuchos_SerialDenseMatrix.hpp. |
|
||||||||||||||||
|
Definition at line 806 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||
|
Definition at line 336 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||
|
Definition at line 337 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||
|
Definition at line 338 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||
|
Definition at line 339 of file Teuchos_SerialDenseMatrix.hpp. |
|
|||||
|
Definition at line 340 of file Teuchos_SerialDenseMatrix.hpp. |
1.3.9.1