![]() |
![]() |
#include <MatRepSparse.h>
Public Types | |
enum | { kRows = D1, kCols = D1, kSize = S } |
typedef T | value_type |
Public Member Functions | |
T | apply (unsigned int i) const |
T * | Array () |
const T * | Array () const |
template<typename FI > | |
MatRepSparse (FI fi) | |
MatRepSparse () | |
T & | operator() (unsigned int i, unsigned int j) |
T const & | operator() (unsigned int i, unsigned int j) const |
template<class R > | |
MatRepSparse & | operator+= (const R &) |
MatRepSparse & | operator+= (const MatRepSparse &rhs) |
template<class R > | |
MatRepSparse & | operator-= (const R &) |
MatRepSparse & | operator-= (const MatRepSparse &rhs) |
template<class R > | |
MatRepSparse & | operator= (const R &) |
MatRepSparse & | operator= (const MatRepSparse &rhs) |
template<class R > | |
bool | operator== (const R &rhs) const |
T & | operator[] (unsigned int i) |
T const & | operator[] (unsigned int i) const |
Static Public Member Functions | |
static T const & | csink () |
static T & | sink () |
Public Attributes | |
F | f |
T | fArray [kSize] = {0} |
a sparse matrix just for storage purposes can be assigned to other matrices
Definition at line 11 of file MatRepSparse.h.
typedef T MatRepSparse< T, D1, D2, S, F >::value_type |
Definition at line 18 of file MatRepSparse.h.
anonymous enum |
kRows |
return no. of matrix rows |
kCols |
return no. of matrix columns |
kSize |
return no of elements: rows*columns |
Definition at line 112 of file MatRepSparse.h.
MatRepSparse< T, D1, D2, S, F >::MatRepSparse | ( | ) | [inline] |
Definition at line 14 of file MatRepSparse.h.
{}
MatRepSparse< T, D1, D2, S, F >::MatRepSparse | ( | FI | fi | ) | [inline, explicit] |
Definition at line 16 of file MatRepSparse.h.
: f(fi) { }
T MatRepSparse< T, D1, D2, S, F >::apply | ( | unsigned int | i | ) | const [inline] |
Definition at line 51 of file MatRepSparse.h.
References MatRepSparse< T, D1, D2, S, F >::f, MatRepSparse< T, D1, D2, S, F >::fArray, and gen::k.
T* MatRepSparse< T, D1, D2, S, F >::Array | ( | ) | [inline] |
Definition at line 56 of file MatRepSparse.h.
References MatRepSparse< T, D1, D2, S, F >::fArray.
Referenced by MatRepSparse< T, D1, D2, S, F >::operator+=(), MatRepSparse< T, D1, D2, S, F >::operator-=(), and MatRepSparse< T, D1, D2, S, F >::operator=().
{ return fArray; }
const T* MatRepSparse< T, D1, D2, S, F >::Array | ( | ) | const [inline] |
Definition at line 58 of file MatRepSparse.h.
References MatRepSparse< T, D1, D2, S, F >::fArray.
{ return fArray; }
static T const& MatRepSparse< T, D1, D2, S, F >::csink | ( | ) | [inline, static] |
Definition at line 25 of file MatRepSparse.h.
References lumiQTWidget::t.
Referenced by MatRepSparse< T, D1, D2, S, F >::operator()(), and MatRepSparse< T, D1, D2, S, F >::operator[]().
T& MatRepSparse< T, D1, D2, S, F >::operator() | ( | unsigned int | i, |
unsigned int | j | ||
) | [inline] |
Definition at line 36 of file MatRepSparse.h.
References MatRepSparse< T, D1, D2, S, F >::f, MatRepSparse< T, D1, D2, S, F >::fArray, gen::k, and MatRepSparse< T, D1, D2, S, F >::sink().
T const& MatRepSparse< T, D1, D2, S, F >::operator() | ( | unsigned int | i, |
unsigned int | j | ||
) | const [inline] |
Definition at line 31 of file MatRepSparse.h.
References MatRepSparse< T, D1, D2, S, F >::csink(), MatRepSparse< T, D1, D2, S, F >::f, MatRepSparse< T, D1, D2, S, F >::fArray, and gen::k.
MatRepSparse& MatRepSparse< T, D1, D2, S, F >::operator+= | ( | const MatRepSparse< T, D1, D2, S, F > & | rhs | ) | [inline] |
Definition at line 84 of file MatRepSparse.h.
References MatRepSparse< T, D1, D2, S, F >::Array(), MatRepSparse< T, D1, D2, S, F >::fArray, i, and MatRepSparse< T, D1, D2, S, F >::kSize.
MatRepSparse& MatRepSparse< T, D1, D2, S, F >::operator+= | ( | const R & | ) | [inline] |
self addition : only sparse to sparse allowed
Definition at line 79 of file MatRepSparse.h.
References dttmaxenums::R, and relativeConstraints::value.
{ static_assert(std::is_same<R,MatRepSparse<T,D1,D2,S,F>>::value, "Cannot_add_general_to_sparse_matrix_representation"); return *this; }
MatRepSparse& MatRepSparse< T, D1, D2, S, F >::operator-= | ( | const MatRepSparse< T, D1, D2, S, F > & | rhs | ) | [inline] |
Definition at line 99 of file MatRepSparse.h.
References MatRepSparse< T, D1, D2, S, F >::Array(), MatRepSparse< T, D1, D2, S, F >::fArray, i, and MatRepSparse< T, D1, D2, S, F >::kSize.
MatRepSparse& MatRepSparse< T, D1, D2, S, F >::operator-= | ( | const R & | ) | [inline] |
self subtraction : only sparse to sparse allowed
Definition at line 93 of file MatRepSparse.h.
References dttmaxenums::R, and relativeConstraints::value.
{ static_assert(std::is_same<R,MatRepSparse<T,D1,D2,S,F>>::value, "Cannot_substract_general_to_sparse_matrix_representation"); return *this; }
MatRepSparse& MatRepSparse< T, D1, D2, S, F >::operator= | ( | const MatRepSparse< T, D1, D2, S, F > & | rhs | ) | [inline] |
Definition at line 70 of file MatRepSparse.h.
References MatRepSparse< T, D1, D2, S, F >::Array(), MatRepSparse< T, D1, D2, S, F >::fArray, i, and MatRepSparse< T, D1, D2, S, F >::kSize.
MatRepSparse& MatRepSparse< T, D1, D2, S, F >::operator= | ( | const R & | ) | [inline] |
assignment : only sparse to sparse allowed
Definition at line 64 of file MatRepSparse.h.
References dttmaxenums::R, and relativeConstraints::value.
{ static_assert(std::is_same<R,MatRepSparse<T,D1,D2,S,F>>::value, "Cannot_assign_general_to_sparse_matrix_representation"); return *this; }
bool MatRepSparse< T, D1, D2, S, F >::operator== | ( | const R & | rhs | ) | const [inline] |
Definition at line 104 of file MatRepSparse.h.
References i, and MatRepSparse< T, D1, D2, S, F >::operator[]().
T& MatRepSparse< T, D1, D2, S, F >::operator[] | ( | unsigned int | i | ) | [inline] |
Definition at line 41 of file MatRepSparse.h.
References MatRepSparse< T, D1, D2, S, F >::f, MatRepSparse< T, D1, D2, S, F >::fArray, gen::k, and MatRepSparse< T, D1, D2, S, F >::sink().
Referenced by MatRepSparse< T, D1, D2, S, F >::operator==().
T const& MatRepSparse< T, D1, D2, S, F >::operator[] | ( | unsigned int | i | ) | const [inline] |
Definition at line 46 of file MatRepSparse.h.
References MatRepSparse< T, D1, D2, S, F >::csink(), MatRepSparse< T, D1, D2, S, F >::f, MatRepSparse< T, D1, D2, S, F >::fArray, and gen::k.
static T& MatRepSparse< T, D1, D2, S, F >::sink | ( | ) | [inline, static] |
Definition at line 20 of file MatRepSparse.h.
References lumiQTWidget::t.
Referenced by MatRepSparse< T, D1, D2, S, F >::operator()(), and MatRepSparse< T, D1, D2, S, F >::operator[]().
F MatRepSparse< T, D1, D2, S, F >::f |
Definition at line 124 of file MatRepSparse.h.
Referenced by MatRepSparse< T, D1, D2, S, F >::apply(), MatRepSparse< T, D1, D2, S, F >::operator()(), and MatRepSparse< T, D1, D2, S, F >::operator[]().
T MatRepSparse< T, D1, D2, S, F >::fArray[kSize] = {0} |
Definition at line 123 of file MatRepSparse.h.
Referenced by MatRepSparse< T, D1, D2, S, F >::apply(), MatRepSparse< T, D1, D2, S, F >::Array(), MatRepSparse< T, D1, D2, S, F >::operator()(), MatRepSparse< T, D1, D2, S, F >::operator+=(), MatRepSparse< T, D1, D2, S, F >::operator-=(), MatRepSparse< T, D1, D2, S, F >::operator=(), and MatRepSparse< T, D1, D2, S, F >::operator[]().