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. | |
| MatrixDenseTriEncap (const MatrixOp &mat) | |
Construct a DenseLinAlgPack::DMatrixSliceTri view from a MatrixOp object. | |
| ~MatrixDenseTriEncap () | |
Frees the DenseLinAlgPack::DMatrixSliceTri view. | |
| const DenseLinAlgPack::DMatrixSliceTri | operator() () const |
Returns a constant view of the DenseLinAlgPack::DMatrixSliceTri view. | |
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:
void call_func(const MatrixOpGetGMSTri& mat_in ) { func( MatrixDenseTriEncap(mat_in)() ); }
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 112 of file AbstractLinAlgPack_MatrixOpGetGMSTri.hpp.
|
|
Construct a
Definition at line 145 of file AbstractLinAlgPack_MatrixOpGetGMSTri.hpp. |
|
|
Construct a
If Definition at line 151 of file AbstractLinAlgPack_MatrixOpGetGMSTri.hpp. |
|
|
Frees the
Definition at line 157 of file AbstractLinAlgPack_MatrixOpGetGMSTri.hpp. |
|
|
Returns a constant view of the
Definition at line 163 of file AbstractLinAlgPack_MatrixOpGetGMSTri.hpp. |
1.3.9.1