KASKADE 7 development version
|
Very simple dense matrix class for interfacing with LAPACK routines and the optimization tool uncmin. More...
#include <simpleLAPmatrix.hh>
Very simple dense matrix class for interfacing with LAPACK routines and the optimization tool uncmin.
Before using this, consider using Kaskade::DynamicMatrix, that implements the Dune dense matrix interface.
Can be constructed from objects that model the Dune Matrix concept, in particular we need the members
The use of SLAPMatrix is only sensible, if Num is a numeric type, such as float or double
Num | type of matrix entries |
offset | start index (0 is C-style, 1 is Fortran-style indexing) |
Definition at line 61 of file simpleLAPmatrix.hh.
Public Member Functions | |
template<class Mat > | |
SLAPMatrix (Mat const &mat) | |
SLAPMatrix (SLAPMatrix< Num, offset > const &mat) | |
SLAPMatrix (int row_, int col_, int lda_=-1) | |
Construction by specifying the size of the matrix directly. More... | |
SLAPMatrix (MatrixAsTriplet< Num > const &mat) | |
void | print () const |
int | cols () const |
Columns. More... | |
int | rows () const |
Rows. More... | |
int | size () |
int | LDA () const |
Increment for row iteration. More... | |
template<class Mat > | |
void | toMatrix (Mat &M) |
template<class RT > | |
void | toTriplet (MatrixAsTriplet< RT > &M) |
Num * | ptrToData () |
Access to the raw data. This is needed by LAPACK routines. More... | |
Num const & | operator() (int r, int c) const |
Access to elements. More... | |
Num & | operator() (int r, int c) |
int | num_columns () const |
int | num_rows () const |
Rows. More... | |
SLAPMatrix< Num, offset > | operator*= (Num alpha) |
SLAPMatrix< Num, offset > | scaleCols (std::vector< Num > scaling) |
SLAPMatrix< Num, offset > | scaleRows (std::vector< Num > scaling) |
|
inline |
Definition at line 65 of file simpleLAPmatrix.hh.
|
inline |
Definition at line 77 of file simpleLAPmatrix.hh.
|
inline |
Construction by specifying the size of the matrix directly.
The entries are initialized by 0.
row_ | number of rows |
col_ | number of cols |
lda_ | leading dimension of the matrix. Values below row_ are implicitly corrected to row_. |
Definition at line 94 of file simpleLAPmatrix.hh.
|
inline |
Definition at line 101 of file simpleLAPmatrix.hh.
|
inline |
Columns.
Definition at line 126 of file simpleLAPmatrix.hh.
Referenced by Kaskade::CUBThetaModelFunction::MatMultiply(), Kaskade::SLAPMatrix< Num, offset >::operator*=(), Kaskade::SLAPMatrix< Num, offset >::print(), Kaskade::SLAPMatrix< Num, offset >::scaleCols(), Kaskade::SLAPMatrix< Num, offset >::scaleRows(), Kaskade::SLAPMatrix< Num, offset >::SLAPMatrix(), Kaskade::SLAPMatrix< Num, offset >::toMatrix(), and Kaskade::SLAPMatrix< Num, offset >::toTriplet().
|
inline |
Increment for row iteration.
Definition at line 133 of file simpleLAPmatrix.hh.
Referenced by Kaskade::SLAPMatrix< Num, offset >::SLAPMatrix().
|
inline |
Interface to Optimizer Columns
Definition at line 166 of file simpleLAPmatrix.hh.
|
inline |
Rows.
Definition at line 168 of file simpleLAPmatrix.hh.
|
inline |
Definition at line 162 of file simpleLAPmatrix.hh.
|
inline |
Access to elements.
Definition at line 161 of file simpleLAPmatrix.hh.
|
inline |
Definition at line 170 of file simpleLAPmatrix.hh.
|
inline |
Definition at line 112 of file simpleLAPmatrix.hh.
|
inline |
Access to the raw data. This is needed by LAPACK routines.
Definition at line 156 of file simpleLAPmatrix.hh.
|
inline |
Rows.
Definition at line 128 of file simpleLAPmatrix.hh.
Referenced by Kaskade::CUBThetaModelFunction::MatMultiply(), Kaskade::SLAPMatrix< Num, offset >::operator*=(), Kaskade::SLAPMatrix< Num, offset >::print(), Kaskade::SLAPMatrix< Num, offset >::scaleCols(), Kaskade::SLAPMatrix< Num, offset >::scaleRows(), Kaskade::SLAPMatrix< Num, offset >::SLAPMatrix(), Kaskade::SLAPMatrix< Num, offset >::toMatrix(), and Kaskade::SLAPMatrix< Num, offset >::toTriplet().
|
inline |
Definition at line 178 of file simpleLAPmatrix.hh.
|
inline |
Definition at line 186 of file simpleLAPmatrix.hh.
|
inline |
Definition at line 130 of file simpleLAPmatrix.hh.
|
inline |
Definition at line 136 of file simpleLAPmatrix.hh.
|
inline |
Definition at line 144 of file simpleLAPmatrix.hh.