Opm::TridiagonalMatrix< Scalar > Class Template Reference Provides a tridiagonal matrix that also supports non-zero entries in the upper right and lower left. More...
Detailed Descriptiontemplate<class Scalar>
|
typedef TridiagRow_ Opm::TridiagonalMatrix< Scalar >::const_iterator |
typedef Scalar Opm::TridiagonalMatrix< Scalar >::FieldType |
typedef TridiagRow_ Opm::TridiagonalMatrix< Scalar >::iterator |
typedef TridiagRow_ Opm::TridiagonalMatrix< Scalar >::RowType |
typedef size_t Opm::TridiagonalMatrix< Scalar >::SizeType |
|
inlineexplicit |
References Opm::TridiagonalMatrix< Scalar >::resize().
|
inline |
|
inline |
Copy constructor.
|
inline |
Access an entry.
References Opm::TridiagonalMatrix< Scalar >::size().
Referenced by Opm::TridiagonalMatrix< Scalar >::print().
|
inline |
Access an entry.
References Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Multiply and add the matrix entries of another tridiagonal matrix.
This means that
is equivalent to
References Opm::TridiagonalMatrix< Scalar >::size().
Referenced by Opm::TridiagonalMatrix< Scalar >::operator+=(), and Opm::TridiagonalMatrix< Scalar >::operator-=().
|
inline |
Iterator for the first row
|
inline |
Const iterator for the first row
|
inline |
Return the number of columns of the matrix.
References Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Const iterator for the next-to-last row
References Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Calculate the frobenius norm.
i.e., the square root of the sum of all squared entries. This corresponds to the euclidean norm for vectors.
References Opm::TridiagonalMatrix< Scalar >::frobeniusNormSquared(), and Opm::LocalAd::sqrt().
|
inline |
Calculate the squared frobenius norm.
i.e., the sum of all squared entries.
References Opm::TridiagonalMatrix< Scalar >::size().
Referenced by Opm::TridiagonalMatrix< Scalar >::frobeniusNorm().
|
inline |
Calculate the infinity norm.
i.e., the maximum of the sum of the absolute values of all rows.
References Opm::LocalAd::abs(), Opm::LocalAd::max(), and Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Transposed subtractive matrix-vector product.
This means that
is equivalent to
References Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Subtractive matrix-vector product.
This means that
is equivalent to
References Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Transposed matrix-vector product.
This means that
is equivalent to
References Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Matrix-vector product.
This means that
is equivalent to
References Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Multiplication with a Scalar.
References Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Addition operator.
References Opm::TridiagonalMatrix< Scalar >::axpy().
|
inline |
Subtraction operator.
References Opm::TridiagonalMatrix< Scalar >::axpy().
|
inline |
Division by a Scalar.
References Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Assignment operator from another tridiagonal matrix.
Referenced by Opm::TridiagonalMatrix< Scalar >::TridiagonalMatrix().
|
inline |
Assignment operator from a Scalar.
References Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Row access operator.
|
inline |
Row access operator.
|
inline |
Print the matrix to a given output stream.
References Opm::TridiagonalMatrix< Scalar >::at(), and Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Change the number of rows of the matrix.
References Opm::TridiagonalMatrix< Scalar >::size().
Referenced by Opm::TridiagonalMatrix< Scalar >::TridiagonalMatrix().
|
inline |
Return the number of rows of the matrix.
References Opm::TridiagonalMatrix< Scalar >::size().
Referenced by Opm::Spline< Scalar >::makePeriodicSystem_().
|
inline |
Return the number of rows/columns of the matrix.
Referenced by Opm::TridiagonalMatrix< Scalar >::at(), Opm::TridiagonalMatrix< Scalar >::axpy(), Opm::TridiagonalMatrix< Scalar >::cols(), Opm::TridiagonalMatrix< Scalar >::end(), Opm::TridiagonalMatrix< Scalar >::frobeniusNormSquared(), Opm::TridiagonalMatrix< Scalar >::infinityNorm(), Opm::TridiagonalMatrix< Scalar >::mmtv(), Opm::TridiagonalMatrix< Scalar >::mmv(), Opm::TridiagonalMatrix< Scalar >::mtv(), Opm::TridiagonalMatrix< Scalar >::mv(), Opm::TridiagonalMatrix< Scalar >::operator*=(), Opm::TridiagonalMatrix< Scalar >::operator/=(), Opm::TridiagonalMatrix< Scalar >::operator=(), Opm::TridiagonalMatrix< Scalar >::print(), Opm::TridiagonalMatrix< Scalar >::resize(), Opm::TridiagonalMatrix< Scalar >::rows(), Opm::TridiagonalMatrix< Scalar >::solve(), Opm::TridiagonalMatrix< Scalar >::umtv(), Opm::TridiagonalMatrix< Scalar >::umv(), Opm::TridiagonalMatrix< Scalar >::usmtv(), and Opm::TridiagonalMatrix< Scalar >::usmv().
|
inline |
Calculate the solution for a linear system of equations.
i.e., calculate x, so that it solves Ax = b, where A is a tridiagonal matrix.
References Opm::LocalAd::abs(), and Opm::TridiagonalMatrix< Scalar >::size().
Referenced by Opm::Spline< Scalar >::makeFullSpline_(), Opm::Spline< Scalar >::makeNaturalSpline_(), Opm::Spline< Scalar >::makePeriodicSpline_(), and Opm::Spline< Scalar >::set().
|
inline |
Transposed additive matrix-vector product.
This means that
is equivalent to
References Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Additive matrix-vector product.
This means that
is equivalent to
References Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Transposed scaled additive matrix-vector product.
This means that
is equivalent to
References Opm::TridiagonalMatrix< Scalar >::size().
|
inline |
Scaled additive matrix-vector product.
This means that
is equivalent to
References Opm::TridiagonalMatrix< Scalar >::size().