#include <shark/LinAlg/BLAS/triangular_matrix.hpp>
Classes | |
class | major1_iterator |
class | major2_iterator |
Public Types | |
typedef value_type | const_reference |
typedef value_type | reference |
typedef elementwise< packed_tag > | evaluation_category |
typedef triangular< Orientation, TriangularType > | orientation |
typedef std::conditional< std::is_same< Orientation, row_major >::value, iterators::dense_storage_iterator< value_type, iterators::packed_random_access_iterator_tag >, typename std::conditional< TriangularType::is_upper, major1_iterator< value_type >, major2_iterator< value_type > >::type >::type | row_iterator |
typedef std::conditional< std::is_same< Orientation, row_major >::value, typename std::conditional< TriangularType::is_upper, major2_iterator< value_type >, major1_iterator< value_type > >::type, iterators::dense_storage_iterator< value_type, iterators::packed_random_access_iterator_tag > >::type | column_iterator |
typedef std::conditional< std::is_same< Orientation, row_major >::value, iterators::dense_storage_iterator< value_type const, iterators::packed_random_access_iterator_tag >, typename std::conditional< TriangularType::is_upper, major1_iterator< value_type const >, major2_iterator< value_type const > >::type >::type | const_row_iterator |
typedef std::conditional< std::is_same< Orientation, row_major >::value, typename std::conditional< TriangularType::is_upper, major2_iterator< value_type const >, major1_iterator< value_type const > >::type, iterators::dense_storage_iterator< value_type const, iterators::packed_random_access_iterator_tag > >::type | const_column_iterator |
Public Member Functions | |
triangular_matrix () | |
Default triangular_matrix constructor. Make a dense matrix of size (0,0) More... | |
triangular_matrix (size_type size) | |
triangular_matrix (size_type size, value_type init) | |
triangular_matrix (triangular_matrix const &m) | |
template<class E > | |
triangular_matrix (matrix_expression< E, cpu_tag > const &e) | |
size_type | size1 () const |
Returns the number of rows of the matrix. More... | |
size_type | size2 () const |
Returns the number of columns of the matrix. More... | |
storage_type | raw_storage () |
const_storage_type | raw_storage () const |
device_traits< cpu_tag >::queue_type & | queue () |
void | resize (size_type size) |
void | resize (size_type size1, size_type size2) |
void | clear () |
const_reference | operator() (size_type i, size_type j) const |
void | set_element (size_type i, size_type j, value_type t) |
bool | non_zero (size_type i, size_type j) const |
triangular_matrix & | operator= (triangular_matrix m) |
template<class C > | |
triangular_matrix & | operator= (matrix_container< C, cpu_tag > const &m) |
template<class E > | |
triangular_matrix & | operator= (matrix_expression< E, cpu_tag > const &e) |
void | swap (triangular_matrix &m) |
const_row_iterator | row_begin (size_type i) const |
const_row_iterator | row_end (size_type i) const |
row_iterator | row_begin (size_type i) |
row_iterator | row_end (size_type i) |
const_column_iterator | column_begin (size_type i) const |
const_column_iterator | column_end (size_type i) const |
column_iterator | column_begin (size_type i) |
column_iterator | column_end (size_type i) |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Public Member Functions inherited from remora::matrix_container< triangular_matrix< T, Orientation, TriangularType >, cpu_tag > | |
const container_type & | operator() () const |
container_type & | operator() () |
Public Member Functions inherited from remora::matrix_expression< triangular_matrix< T, Orientation, TriangularType >, cpu_tag > | |
const expression_type & | operator() () const |
expression_type & | operator() () |
Friends | |
void | swap (triangular_matrix &m1, triangular_matrix &m2) |
Definition at line 43 of file triangular_matrix.hpp.
typedef std::conditional< std::is_same<Orientation,row_major>::value, typename std::conditional< TriangularType::is_upper, major2_iterator<value_type>, major1_iterator<value_type> >::type, iterators::dense_storage_iterator<value_type,iterators::packed_random_access_iterator_tag> >::type remora::triangular_matrix< T, Orientation, TriangularType >::column_iterator |
Definition at line 391 of file triangular_matrix.hpp.
typedef std::conditional< std::is_same<Orientation,row_major>::value, typename std::conditional< TriangularType::is_upper, major2_iterator<value_type const>, major1_iterator<value_type const> >::type, iterators::dense_storage_iterator<value_type const,iterators::packed_random_access_iterator_tag> >::type remora::triangular_matrix< T, Orientation, TriangularType >::const_column_iterator |
Definition at line 410 of file triangular_matrix.hpp.
typedef value_type remora::triangular_matrix< T, Orientation, TriangularType >::const_reference |
Definition at line 48 of file triangular_matrix.hpp.
typedef std::conditional< std::is_same<Orientation,row_major>::value, iterators::dense_storage_iterator<value_type const,iterators::packed_random_access_iterator_tag>, typename std::conditional< TriangularType::is_upper, major1_iterator<value_type const>, major2_iterator<value_type const> >::type >::type remora::triangular_matrix< T, Orientation, TriangularType >::const_row_iterator |
Definition at line 401 of file triangular_matrix.hpp.
typedef elementwise<packed_tag> remora::triangular_matrix< T, Orientation, TriangularType >::evaluation_category |
Definition at line 56 of file triangular_matrix.hpp.
typedef triangular<Orientation,TriangularType> remora::triangular_matrix< T, Orientation, TriangularType >::orientation |
Definition at line 57 of file triangular_matrix.hpp.
typedef value_type remora::triangular_matrix< T, Orientation, TriangularType >::reference |
Definition at line 49 of file triangular_matrix.hpp.
typedef std::conditional< std::is_same<Orientation,row_major>::value, iterators::dense_storage_iterator<value_type,iterators::packed_random_access_iterator_tag>, typename std::conditional< TriangularType::is_upper, major1_iterator<value_type>, major2_iterator<value_type> >::type >::type remora::triangular_matrix< T, Orientation, TriangularType >::row_iterator |
Definition at line 382 of file triangular_matrix.hpp.
|
inline |
Default triangular_matrix constructor. Make a dense matrix of size (0,0)
Definition at line 62 of file triangular_matrix.hpp.
|
inline |
Packed matrix constructor with defined size
size | number of rows and columns |
Definition at line 67 of file triangular_matrix.hpp.
|
inline |
Packed matrix constructor with defined size and an initial value for all triangular matrix elements
size | number of rows and columns |
init | initial value of the non-zero elements |
Definition at line 73 of file triangular_matrix.hpp.
|
inline |
Copy-constructor of a dense matrix
m | is a dense matrix |
Definition at line 78 of file triangular_matrix.hpp.
|
inline |
Copy-constructor of a dense matrix from a matrix expression
e | is a matrix expression which has to be triangular |
Definition at line 84 of file triangular_matrix.hpp.
References remora::assign().
|
inline |
Definition at line 127 of file triangular_matrix.hpp.
|
inline |
Definition at line 447 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::major1_iterator< TIter >::index(), remora::triangular_matrix< T, Orientation, TriangularType >::size1(), and remora::triangular_matrix< T, Orientation, TriangularType >::size2().
|
inline |
Definition at line 463 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::major1_iterator< TIter >::index(), remora::triangular_matrix< T, Orientation, TriangularType >::size1(), and remora::triangular_matrix< T, Orientation, TriangularType >::size2().
|
inline |
Definition at line 455 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::major1_iterator< TIter >::index(), remora::triangular_matrix< T, Orientation, TriangularType >::size1(), and remora::triangular_matrix< T, Orientation, TriangularType >::size2().
|
inline |
Definition at line 471 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::major1_iterator< TIter >::index(), remora::triangular_matrix< T, Orientation, TriangularType >::size1(), and remora::triangular_matrix< T, Orientation, TriangularType >::size2().
|
inline |
Definition at line 149 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::size1(), and remora::triangular_matrix< T, Orientation, TriangularType >::size2().
|
inline |
Definition at line 132 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::size1(), and remora::triangular_matrix< T, Orientation, TriangularType >::size2().
|
inline |
Definition at line 156 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::swap().
|
inline |
|
inline |
Definition at line 168 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::swap().
|
inline |
Definition at line 107 of file triangular_matrix.hpp.
|
inline |
Definition at line 99 of file triangular_matrix.hpp.
|
inline |
Definition at line 103 of file triangular_matrix.hpp.
|
inline |
Resize a matrix to new dimensions. If resizing is performed, the data is not preserved.
size | the new number of rows and columns |
Definition at line 116 of file triangular_matrix.hpp.
Referenced by remora::triangular_matrix< T, Orientation, TriangularType >::operator=(), and remora::triangular_matrix< T, Orientation, TriangularType >::resize().
|
inline |
Definition at line 121 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::resize().
|
inline |
Definition at line 414 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::major1_iterator< TIter >::index(), remora::triangular_matrix< T, Orientation, TriangularType >::size1(), and remora::triangular_matrix< T, Orientation, TriangularType >::size2().
|
inline |
Definition at line 430 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::major1_iterator< TIter >::index(), remora::triangular_matrix< T, Orientation, TriangularType >::size1(), and remora::triangular_matrix< T, Orientation, TriangularType >::size2().
|
inline |
Definition at line 422 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::major1_iterator< TIter >::index(), remora::triangular_matrix< T, Orientation, TriangularType >::size1(), and remora::triangular_matrix< T, Orientation, TriangularType >::size2().
|
inline |
Definition at line 438 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::major1_iterator< TIter >::index(), remora::triangular_matrix< T, Orientation, TriangularType >::size1(), and remora::triangular_matrix< T, Orientation, TriangularType >::size2().
|
inline |
Definition at line 482 of file triangular_matrix.hpp.
|
inline |
Definition at line 142 of file triangular_matrix.hpp.
References remora::triangular_matrix< T, Orientation, TriangularType >::size1(), and remora::triangular_matrix< T, Orientation, TriangularType >::size2().
|
inline |
Returns the number of rows of the matrix.
Definition at line 91 of file triangular_matrix.hpp.
Referenced by remora::triangular_matrix< T, Orientation, TriangularType >::column_begin(), remora::triangular_matrix< T, Orientation, TriangularType >::column_end(), remora::triangular_matrix< T, Orientation, TriangularType >::non_zero(), remora::triangular_matrix< T, Orientation, TriangularType >::operator()(), remora::triangular_matrix< T, Orientation, TriangularType >::operator=(), remora::triangular_matrix< T, Orientation, TriangularType >::row_begin(), remora::triangular_matrix< T, Orientation, TriangularType >::row_end(), and remora::triangular_matrix< T, Orientation, TriangularType >::set_element().
|
inline |
Returns the number of columns of the matrix.
Definition at line 95 of file triangular_matrix.hpp.
Referenced by remora::triangular_matrix< T, Orientation, TriangularType >::column_begin(), remora::triangular_matrix< T, Orientation, TriangularType >::column_end(), remora::triangular_matrix< T, Orientation, TriangularType >::non_zero(), remora::triangular_matrix< T, Orientation, TriangularType >::operator()(), remora::triangular_matrix< T, Orientation, TriangularType >::operator=(), remora::triangular_matrix< T, Orientation, TriangularType >::row_begin(), remora::triangular_matrix< T, Orientation, TriangularType >::row_end(), and remora::triangular_matrix< T, Orientation, TriangularType >::set_element().
|
inline |
Definition at line 175 of file triangular_matrix.hpp.
References shark::swap().
Referenced by remora::triangular_matrix< T, Orientation, TriangularType >::operator=().
|
friend |
Definition at line 179 of file triangular_matrix.hpp.