AbstractLinAlgPack: C++ Interfaces For Vectors, Matrices And Related Linear Algebra Objects
Version of the Day
|
Helper class type that simplifies the usage of the MatrixOpGetGMSTri
interface for clients.
More...
#include <AbstractLinAlgPack_MatrixOpGetGMSTri.hpp>
Public Member Functions | |
MatrixDenseTriEncap (const MatrixOpGetGMSTri &mat_get) | |
Construct a DenseLinAlgPack::DMatrixSliceTri view from a MatrixOpGetGMSTri object. More... | |
MatrixDenseTriEncap (const MatrixOp &mat) | |
Construct a DenseLinAlgPack::DMatrixSliceTri view from a MatrixOp object. More... | |
~MatrixDenseTriEncap () | |
Frees the DenseLinAlgPack::DMatrixSliceTri view. More... | |
const DenseLinAlgPack::DMatrixSliceTri | operator() () const |
Returns a constant view of the DenseLinAlgPack::DMatrixSliceTri view. More... | |
Helper class type that simplifies the usage of the MatrixOpGetGMSTri
interface for clients.
This takes care of worrying about if the MatrixOpGetGMSTri
interface is supported or not and remembering to free the DenseLinAlgPack::DMatrixSliceTri
view properly.
This class is only to be used on the stack as an automatic variable. For example, to extract a DenseLinAlgPack::DMatrixSliceTri
view of an abstract vector and use it to call another function one could write a function like:
In the above code, if the underlying MatrixOpGetGMSTri
object does not have to perform any dynamic memory allocations and copy in the method MatrixOpGetGMSTri::get_tri_gms_view()
then the above code will only have a constant time overhead.
Definition at line 125 of file AbstractLinAlgPack_MatrixOpGetGMSTri.hpp.
|
inline |
Construct a DenseLinAlgPack::DMatrixSliceTri
view from a MatrixOpGetGMSTri
object.
Definition at line 158 of file AbstractLinAlgPack_MatrixOpGetGMSTri.hpp.
|
inline |
Construct a DenseLinAlgPack::DMatrixSliceTri
view from a MatrixOp
object.
If dynamic_cast<const MatrixOpGetGMSTri*>(&mat) == NULL
then a ??? exception is thrown.
Definition at line 164 of file AbstractLinAlgPack_MatrixOpGetGMSTri.hpp.
|
inline |
Frees the DenseLinAlgPack::DMatrixSliceTri
view.
Definition at line 170 of file AbstractLinAlgPack_MatrixOpGetGMSTri.hpp.
|
inline |
Returns a constant view of the DenseLinAlgPack::DMatrixSliceTri
view.
Definition at line 176 of file AbstractLinAlgPack_MatrixOpGetGMSTri.hpp.