shark::blas::dense_matrix_adaptor< T, Orientation > Class Template Reference

#include <shark/LinAlg/BLAS/matrix_proxy.hpp>

+ Inheritance diagram for shark::blas::dense_matrix_adaptor< T, Orientation >:

Public Types

typedef Orientation::orientation orientation
 
typedef value_type const & const_reference
 
typedef T & reference
 
typedef T * pointer
 
typedef value_type const * const_pointer
 
typedef index_type const * const_index_pointer
 
typedef index_type * index_pointer
 
typedef dense_tag storage_category
 
typedef elementwise_tag evaluation_category
 
typedef dense_storage_iterator< T > row_iterator
 
typedef dense_storage_iterator< T > column_iterator
 
typedef dense_storage_iterator< value_type const > const_row_iterator
 
typedef dense_storage_iterator< value_type const > const_column_iterator
 
typedef major_iterator< self_type >::type major_iterator
 

Public Member Functions

 dense_matrix_adaptor (dense_matrix_adaptor< value_type, Orientation > const &expression)
 
template<class E >
 dense_matrix_adaptor (matrix_expression< E > const &expression)
 Constructor of a vector proxy from a Dense MatrixExpression. More...
 
template<class E >
 dense_matrix_adaptor (matrix_expression< E > &expression)
 Constructor of a vector proxy from a Dense MatrixExpression. More...
 
 dense_matrix_adaptor (pointer values, size_type size1, size_type size2, difference_type stride1=0, difference_type stride2=0)
 Constructor of a vector proxy from a block of memory. More...
 
size_type size1 () const
 Return the number of rows of the matrix. More...
 
size_type size2 () const
 Return the number of columns of the matrix. More...
 
difference_type stride1 () const
 
difference_type stride2 () const
 
pointer storage () const
 
self_typeoperator= (self_type const &e)
 
template<class E >
self_typeoperator= (matrix_expression< E > const &e)
 
const_reference operator() (index_type i, index_type j) const
 
reference operator() (index_type i, index_type j)
 
void set_element (size_type i, size_type j, value_type t)
 
const_row_iterator row_begin (index_type i) const
 
const_row_iterator row_end (index_type i) const
 
row_iterator row_begin (index_type i)
 
row_iterator row_end (index_type i)
 
const_column_iterator column_begin (index_type j) const
 
const_column_iterator column_end (index_type j) const
 
column_iterator column_begin (index_type j)
 
column_iterator column_end (index_type j)
 
major_iterator set_element (major_iterator pos, index_type index, value_type value)
 
major_iterator clear_element (major_iterator elem)
 
major_iterator clear_range (major_iterator start, major_iterator end)
 
void clear ()
 
- Public Member Functions inherited from shark::blas::matrix_expression< dense_matrix_adaptor< T, Orientation > >
const expression_type & operator() () const
 
expression_type & operator() ()
 

Detailed Description

template<class T, class Orientation = row_major>
class shark::blas::dense_matrix_adaptor< T, Orientation >

Definition at line 1379 of file matrix_proxy.hpp.

Member Typedef Documentation

§ column_iterator

template<class T, class Orientation = row_major>
typedef dense_storage_iterator<T> shark::blas::dense_matrix_adaptor< T, Orientation >::column_iterator

Definition at line 1537 of file matrix_proxy.hpp.

§ const_column_iterator

template<class T, class Orientation = row_major>
typedef dense_storage_iterator<value_type const> shark::blas::dense_matrix_adaptor< T, Orientation >::const_column_iterator

Definition at line 1539 of file matrix_proxy.hpp.

§ const_index_pointer

template<class T, class Orientation = row_major>
typedef index_type const* shark::blas::dense_matrix_adaptor< T, Orientation >::const_index_pointer

Definition at line 1395 of file matrix_proxy.hpp.

§ const_pointer

template<class T, class Orientation = row_major>
typedef value_type const* shark::blas::dense_matrix_adaptor< T, Orientation >::const_pointer

Definition at line 1392 of file matrix_proxy.hpp.

§ const_reference

template<class T, class Orientation = row_major>
typedef value_type const& shark::blas::dense_matrix_adaptor< T, Orientation >::const_reference

Definition at line 1389 of file matrix_proxy.hpp.

§ const_row_iterator

template<class T, class Orientation = row_major>
typedef dense_storage_iterator<value_type const> shark::blas::dense_matrix_adaptor< T, Orientation >::const_row_iterator

Definition at line 1538 of file matrix_proxy.hpp.

§ evaluation_category

template<class T, class Orientation = row_major>
typedef elementwise_tag shark::blas::dense_matrix_adaptor< T, Orientation >::evaluation_category

Definition at line 1402 of file matrix_proxy.hpp.

§ index_pointer

template<class T, class Orientation = row_major>
typedef index_type* shark::blas::dense_matrix_adaptor< T, Orientation >::index_pointer

Definition at line 1396 of file matrix_proxy.hpp.

§ major_iterator

template<class T, class Orientation = row_major>
typedef major_iterator<self_type>::type shark::blas::dense_matrix_adaptor< T, Orientation >::major_iterator

Definition at line 1567 of file matrix_proxy.hpp.

§ orientation

template<class T, class Orientation = row_major>
typedef Orientation::orientation shark::blas::dense_matrix_adaptor< T, Orientation >::orientation

Definition at line 1384 of file matrix_proxy.hpp.

§ pointer

template<class T, class Orientation = row_major>
typedef T* shark::blas::dense_matrix_adaptor< T, Orientation >::pointer

Definition at line 1391 of file matrix_proxy.hpp.

§ reference

template<class T, class Orientation = row_major>
typedef T& shark::blas::dense_matrix_adaptor< T, Orientation >::reference

Definition at line 1390 of file matrix_proxy.hpp.

§ row_iterator

template<class T, class Orientation = row_major>
typedef dense_storage_iterator<T> shark::blas::dense_matrix_adaptor< T, Orientation >::row_iterator

Definition at line 1536 of file matrix_proxy.hpp.

§ storage_category

template<class T, class Orientation = row_major>
typedef dense_tag shark::blas::dense_matrix_adaptor< T, Orientation >::storage_category

Definition at line 1401 of file matrix_proxy.hpp.

Constructor & Destructor Documentation

§ dense_matrix_adaptor() [1/4]

template<class T, class Orientation = row_major>
shark::blas::dense_matrix_adaptor< T, Orientation >::dense_matrix_adaptor ( dense_matrix_adaptor< value_type, Orientation > const &  expression)
inline

Definition at line 1407 of file matrix_proxy.hpp.

§ dense_matrix_adaptor() [2/4]

template<class T, class Orientation = row_major>
template<class E >
shark::blas::dense_matrix_adaptor< T, Orientation >::dense_matrix_adaptor ( matrix_expression< E > const &  expression)
inline

Constructor of a vector proxy from a Dense MatrixExpression.

Be aware that the expression must live longer than the proxy!

Parameters
expressionExpression from which to construct the Proxy

Definition at line 1420 of file matrix_proxy.hpp.

§ dense_matrix_adaptor() [3/4]

template<class T, class Orientation = row_major>
template<class E >
shark::blas::dense_matrix_adaptor< T, Orientation >::dense_matrix_adaptor ( matrix_expression< E > &  expression)
inline

Constructor of a vector proxy from a Dense MatrixExpression.

Be aware that the expression must live longer than the proxy!

Parameters
expressionExpression from which to construct the Proxy

Definition at line 1437 of file matrix_proxy.hpp.

§ dense_matrix_adaptor() [4/4]

template<class T, class Orientation = row_major>
shark::blas::dense_matrix_adaptor< T, Orientation >::dense_matrix_adaptor ( pointer  values,
size_type  size1,
size_type  size2,
difference_type  stride1 = 0,
difference_type  stride2 = 0 
)
inline

Constructor of a vector proxy from a block of memory.

Parameters
valuesthe block of memory used
size1size in 1st direction
size2size in 2nd direction
stride1distance in 1st direction between elements of the self_type in memory
stride2distance in 2nd direction between elements of the self_type in memory

Definition at line 1455 of file matrix_proxy.hpp.

Member Function Documentation

§ clear()

template<class T, class Orientation = row_major>
void shark::blas::dense_matrix_adaptor< T, Orientation >::clear ( )
inline

§ clear_element()

template<class T, class Orientation = row_major>
major_iterator shark::blas::dense_matrix_adaptor< T, Orientation >::clear_element ( major_iterator  elem)
inline

Definition at line 1575 of file matrix_proxy.hpp.

§ clear_range()

template<class T, class Orientation = row_major>
major_iterator shark::blas::dense_matrix_adaptor< T, Orientation >::clear_range ( major_iterator  start,
major_iterator  end 
)
inline

Definition at line 1580 of file matrix_proxy.hpp.

§ column_begin() [1/2]

template<class T, class Orientation = row_major>
const_column_iterator shark::blas::dense_matrix_adaptor< T, Orientation >::column_begin ( index_type  j) const
inline

§ column_begin() [2/2]

template<class T, class Orientation = row_major>
column_iterator shark::blas::dense_matrix_adaptor< T, Orientation >::column_begin ( index_type  j)
inline

§ column_end() [1/2]

template<class T, class Orientation = row_major>
const_column_iterator shark::blas::dense_matrix_adaptor< T, Orientation >::column_end ( index_type  j) const
inline

§ column_end() [2/2]

template<class T, class Orientation = row_major>
column_iterator shark::blas::dense_matrix_adaptor< T, Orientation >::column_end ( index_type  j)
inline

§ operator()() [1/2]

template<class T, class Orientation = row_major>
const_reference shark::blas::dense_matrix_adaptor< T, Orientation >::operator() ( index_type  i,
index_type  j 
) const
inline

Definition at line 1520 of file matrix_proxy.hpp.

§ operator()() [2/2]

template<class T, class Orientation = row_major>
reference shark::blas::dense_matrix_adaptor< T, Orientation >::operator() ( index_type  i,
index_type  j 
)
inline

Definition at line 1523 of file matrix_proxy.hpp.

§ operator=() [1/2]

template<class T, class Orientation = row_major>
self_type& shark::blas::dense_matrix_adaptor< T, Orientation >::operator= ( self_type const &  e)
inline

§ operator=() [2/2]

template<class T, class Orientation = row_major>
template<class E >
self_type& shark::blas::dense_matrix_adaptor< T, Orientation >::operator= ( matrix_expression< E > const &  e)
inline

§ row_begin() [1/2]

template<class T, class Orientation = row_major>
const_row_iterator shark::blas::dense_matrix_adaptor< T, Orientation >::row_begin ( index_type  i) const
inline

§ row_begin() [2/2]

template<class T, class Orientation = row_major>
row_iterator shark::blas::dense_matrix_adaptor< T, Orientation >::row_begin ( index_type  i)
inline

§ row_end() [1/2]

template<class T, class Orientation = row_major>
const_row_iterator shark::blas::dense_matrix_adaptor< T, Orientation >::row_end ( index_type  i) const
inline

§ row_end() [2/2]

template<class T, class Orientation = row_major>
row_iterator shark::blas::dense_matrix_adaptor< T, Orientation >::row_end ( index_type  i)
inline

§ set_element() [1/2]

template<class T, class Orientation = row_major>
void shark::blas::dense_matrix_adaptor< T, Orientation >::set_element ( size_type  i,
size_type  j,
value_type  t 
)
inline

Definition at line 1526 of file matrix_proxy.hpp.

§ set_element() [2/2]

template<class T, class Orientation = row_major>
major_iterator shark::blas::dense_matrix_adaptor< T, Orientation >::set_element ( major_iterator  pos,
index_type  index,
value_type  value 
)
inline

Definition at line 1569 of file matrix_proxy.hpp.

References RANGE_CHECK.

§ size1()

template<class T, class Orientation = row_major>
size_type shark::blas::dense_matrix_adaptor< T, Orientation >::size1 ( ) const
inline

Return the number of rows of the matrix.

Definition at line 1477 of file matrix_proxy.hpp.

Referenced by shark::createBatch().

§ size2()

template<class T, class Orientation = row_major>
size_type shark::blas::dense_matrix_adaptor< T, Orientation >::size2 ( ) const
inline

Return the number of columns of the matrix.

Definition at line 1481 of file matrix_proxy.hpp.

§ storage()

template<class T, class Orientation = row_major>
pointer shark::blas::dense_matrix_adaptor< T, Orientation >::storage ( ) const
inline

Definition at line 1492 of file matrix_proxy.hpp.

§ stride1()

template<class T, class Orientation = row_major>
difference_type shark::blas::dense_matrix_adaptor< T, Orientation >::stride1 ( ) const
inline

Definition at line 1485 of file matrix_proxy.hpp.

§ stride2()

template<class T, class Orientation = row_major>
difference_type shark::blas::dense_matrix_adaptor< T, Orientation >::stride2 ( ) const
inline

Definition at line 1488 of file matrix_proxy.hpp.


The documentation for this class was generated from the following file: