col
. row
. FMatrix
rhs. empty()
. Always false. Indices are 1-based. STL-compatible iterators and types.
typedef T ltl::FMatrix< T, M, N >::value_type |
STL-compatible type definitions.
typedef FMIter<T,M,N> ltl::FMatrix< T, M, N >::iterator |
typedef FMIterConst<T,M,N> ltl::FMatrix< T, M, N >::const_iterator |
typedef T& ltl::FMatrix< T, M, N >::reference |
typedef const T& ltl::FMatrix< T, M, N >::const_reference |
typedef std::size_t ltl::FMatrix< T, M, N >::size_type |
typedef std::ptrdiff_t ltl::FMatrix< T, M, N >::difference_type |
typedef FVector<T,M,N> ltl::FMatrix< T, M, N >::ColumnVector |
typedef FVector<T,N,1> ltl::FMatrix< T, M, N >::RowVector |
typedef FVector<T,M,N+1> ltl::FMatrix< T, M, N >::TraceVector |
anonymous enum |
ltl::FMatrix< T, M, N >::FMatrix | ( | ) | [inline] |
default constructor
ltl::FMatrix< T, M, N >::~FMatrix | ( | ) | [inline] |
default destructor
ltl::FMatrix< T, M, N >::FMatrix | ( | const FMatrix< T, M, N > & | other | ) |
copy constructor: copy elements of other
.
ltl::FMatrix< T, M, N >::FMatrix | ( | const T * | t | ) |
copy contents of memory pointed to by t
.
ltl::FMatrix< T, M, N >::FMatrix | ( | const T | t | ) |
fill with value t
.
ltl::FMatrix< T, M, N >::FMatrix | ( | const FMExprNode< Expr, M, N > & | e | ) | [inline] |
construct from expression.
static size_type ltl::FMatrix< T, M, N >::size | ( | ) | [inline, static] |
STL return M*N
.
Functions needed for STL container conformance
static bool ltl::FMatrix< T, M, N >::empty | ( | ) | [inline, static] |
STL empty()
. Always false.
static size_type ltl::FMatrix< T, M, N >::max_size | ( | ) | [inline, static] |
STL: Maximum capacity. Always ==size
().
ListInitializationSwitch< FMatrix<T,M,N> > ltl::FMatrix< T, M, N >::operator= | ( | T | x | ) | [inline] |
Initialize with list of values or single value.
Assign values through initialization list. A bit more comlicated since we have to discriminate between A = 3; and A = 1, 2, 3, 4; which is done using ListInitializationSwitch which either calls ListInitializer
or FVector::fill()
.
int ltl::FMatrix< T, M, N >::length | ( | ) | const [inline] |
return length of container (M*N).
int ltl::FMatrix< T, M, N >::minIndex | ( | const int | dim | ) | const [inline] |
return lowest index of dimension dim
. Always 1.
int ltl::FMatrix< T, M, N >::maxIndex | ( | const int | dim | ) | const [inline] |
return highest index of dimension dim
. Returns M or N.
T ltl::FMatrix< T, M, N >::operator() | ( | const int | i, | |
const int | j | |||
) | const [inline] |
1-based access to elements.
T& ltl::FMatrix< T, M, N >::operator() | ( | const int | i, | |
const int | j | |||
) | [inline] |
1-based access to elements.
T ltl::FMatrix< T, M, N >::operator[] | ( | const int | i | ) | const [inline] |
Direct zero-based access to the (linear) block of memory.
T& ltl::FMatrix< T, M, N >::operator[] | ( | const int | i | ) | [inline] |
Direct zero-based access to the (linear) block of memory.
ColumnVector ltl::FMatrix< T, M, N >::col | ( | const int | col | ) | [inline] |
Return an ltl::FVector object REFERENCEING the column vector col
.
RowVector ltl::FMatrix< T, M, N >::row | ( | const int | row | ) | [inline] |
Return an ltl::FVector object REFERENCEING the row vector row
.
TraceVector ltl::FMatrix< T, M, N >::traceVector | ( | ) | [inline] |
Return an ltl::FVector object REFERENCEING the trace vector.
T* ltl::FMatrix< T, M, N >::data | ( | ) | [inline] |
Return a pointer to the data.
const T* ltl::FMatrix< T, M, N >::data | ( | ) | const [inline] |
Return a const pointer to the data.
iterator ltl::FMatrix< T, M, N >::begin | ( | ) | [inline] |
return an iterator pointing to the first element.
const_iterator ltl::FMatrix< T, M, N >::begin | ( | ) | const [inline] |
return a const iterator pointing to the first element.
void ltl::FMatrix< T, M, N >::fill | ( | const T | x | ) |
fill with value x
.
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator= | ( | const FMExprNode< Expr, M, N > & | e | ) | [inline] |
operatorX=
for expression rhs.
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator+= | ( | const FMExprNode< Expr, M, N > & | e | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator-= | ( | const FMExprNode< Expr, M, N > & | e | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator *= | ( | const FMExprNode< Expr, M, N > & | e | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator/= | ( | const FMExprNode< Expr, M, N > & | e | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator%= | ( | const FMExprNode< Expr, M, N > & | e | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator^= | ( | const FMExprNode< Expr, M, N > & | e | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator &= | ( | const FMExprNode< Expr, M, N > & | e | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator|= | ( | const FMExprNode< Expr, M, N > & | e | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator<<= | ( | const FMExprNode< Expr, M, N > & | e | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator>>= | ( | const FMExprNode< Expr, M, N > & | e | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator= | ( | const FMatrix< T2, M, N > & | v | ) | [inline] |
operatorX for FMatrix
rhs.
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator= | ( | const FMatrix< T, M, N > & | v | ) |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator+= | ( | const FMatrix< T2, M, N > & | v | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator-= | ( | const FMatrix< T2, M, N > & | v | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator *= | ( | const FMatrix< T2, M, N > & | v | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator/= | ( | const FMatrix< T2, M, N > & | v | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator%= | ( | const FMatrix< T2, M, N > & | v | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator^= | ( | const FMatrix< T2, M, N > & | v | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator &= | ( | const FMatrix< T2, M, N > & | v | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator|= | ( | const FMatrix< T2, M, N > & | v | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator<<= | ( | const FMatrix< T2, M, N > & | v | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator>>= | ( | const FMatrix< T2, M, N > & | v | ) | [inline] |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator+= | ( | const T | t | ) |
operatorX= for scalar rhs.
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator-= | ( | const T | t | ) |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator *= | ( | const T | t | ) |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator/= | ( | const T | t | ) |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator%= | ( | const T | t | ) |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator^= | ( | const T | t | ) |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator &= | ( | const T | t | ) |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator|= | ( | const T | t | ) |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator<<= | ( | const T | t | ) |
FMatrix<T,M,N>& ltl::FMatrix< T, M, N >::operator>>= | ( | const T | t | ) |
void ltl::FMatrix< T, M, N >::swapRows | ( | const int | row1, | |
const int | row2 | |||
) |
Swap the values in two row vectors.
void ltl::FMatrix< T, M, N >::swapCols | ( | const int | col1, | |
const int | col2 | |||
) |
Swap the values in two column vectors.
friend class FMIter< T, M, N > [friend] |
friend class FMIterConst< T, M, N > [friend] |
friend class ListInitializationSwitch< FMatrix< T, M, N > > [friend] |
ostream & operator<< | ( | ostream & | os, | |
const FMatrix< T, M, N > & | A | |||
) | [related] |
T* ltl::FMatrix< T, M, N >::data_ [protected] |
Pointer used for one-based access to the data.
T ltl::FMatrix< T, M, N >::__data_[M *N] [protected] |
Storage for the matrix elements.