shark::blas::matrix_row< M > Class Template Reference

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

+ Inheritance diagram for shark::blas::matrix_row< M >:

Public Types

typedef M::const_reference const_reference
 
typedef reference< M >::type reference
 
typedef M::const_pointer const_pointer
 
typedef pointer< M >::type pointer
 
typedef M::const_index_pointer const_index_pointer
 
typedef index_pointer< M >::type index_pointer
 
typedef M::storage_category storage_category
 
typedef elementwise_tag evaluation_category
 
typedef M::const_row_iterator const_iterator
 
typedef row_iterator< M >::type iterator
 

Public Member Functions

 matrix_row (matrix_closure_type const &expression, index_type i)
 
template<class E >
 matrix_row (matrix_row< E > const &other)
 
matrix_closure_type const & expression () const
 
matrix_closure_type & expression ()
 
index_type index () const
 
size_type size () const
 Returns the size of the vector. More...
 
difference_type stride () const
 Returns the stride in memory between two elements. More...
 
pointer storage () const
 Returns the pointer to the beginning of the vector storage. More...
 
size_type nnz () const
 Number of nonzero elements of the vector. More...
 
const_pointer values () const
 Array of values of the nonzero elements. More...
 
index_pointer indices () const
 Array of indices of the nonzero elements. More...
 
reference operator() (index_type j) const
 
reference operator[] (index_type j) const
 
void set_element (size_type j, value_type t)
 
template<class E >
matrix_rowoperator= (vector_expression< E > const &e)
 
matrix_rowoperator= (matrix_row const &e)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
iterator set_element (iterator pos, index_type index, value_type value)
 
iterator clear_range (iterator start, iterator end)
 
iterator clear_element (iterator pos)
 
void clear ()
 
void reserve (size_type non_zeros)
 
- Public Member Functions inherited from shark::blas::vector_expression< matrix_row< M > >
const expression_type & operator() () const
 
expression_type & operator() ()
 

Detailed Description

template<class M>
class shark::blas::matrix_row< M >

Definition at line 57 of file fwd.hpp.

Member Typedef Documentation

§ const_index_pointer

template<class M>
typedef M::const_index_pointer shark::blas::matrix_row< M >::const_index_pointer

Definition at line 498 of file matrix_proxy.hpp.

§ const_iterator

template<class M>
typedef M::const_row_iterator shark::blas::matrix_row< M >::const_iterator

Definition at line 594 of file matrix_proxy.hpp.

§ const_pointer

template<class M>
typedef M::const_pointer shark::blas::matrix_row< M >::const_pointer

Definition at line 494 of file matrix_proxy.hpp.

§ const_reference

template<class M>
typedef M::const_reference shark::blas::matrix_row< M >::const_reference

Definition at line 492 of file matrix_proxy.hpp.

§ evaluation_category

template<class M>
typedef elementwise_tag shark::blas::matrix_row< M >::evaluation_category

Definition at line 505 of file matrix_proxy.hpp.

§ index_pointer

template<class M>
typedef index_pointer<M>::type shark::blas::matrix_row< M >::index_pointer

Definition at line 499 of file matrix_proxy.hpp.

§ iterator

template<class M>
typedef row_iterator<M>::type shark::blas::matrix_row< M >::iterator

Definition at line 595 of file matrix_proxy.hpp.

§ pointer

template<class M>
typedef pointer<M>::type shark::blas::matrix_row< M >::pointer

Definition at line 495 of file matrix_proxy.hpp.

§ reference

template<class M>
typedef reference<M>::type shark::blas::matrix_row< M >::reference

Definition at line 493 of file matrix_proxy.hpp.

§ storage_category

template<class M>
typedef M::storage_category shark::blas::matrix_row< M >::storage_category

Definition at line 504 of file matrix_proxy.hpp.

Constructor & Destructor Documentation

§ matrix_row() [1/2]

template<class M>
shark::blas::matrix_row< M >::matrix_row ( matrix_closure_type const &  expression,
index_type  i 
)
inline

Definition at line 508 of file matrix_proxy.hpp.

§ matrix_row() [2/2]

template<class M>
template<class E >
shark::blas::matrix_row< M >::matrix_row ( matrix_row< E > const &  other)
inline

Definition at line 513 of file matrix_proxy.hpp.

Member Function Documentation

§ begin() [1/2]

template<class M>
iterator shark::blas::matrix_row< M >::begin ( )
inline

Definition at line 597 of file matrix_proxy.hpp.

§ begin() [2/2]

template<class M>
const_iterator shark::blas::matrix_row< M >::begin ( ) const
inline

Definition at line 603 of file matrix_proxy.hpp.

§ clear()

template<class M>
void shark::blas::matrix_row< M >::clear ( )
inline

Definition at line 628 of file matrix_proxy.hpp.

§ clear_element()

template<class M>
iterator shark::blas::matrix_row< M >::clear_element ( iterator  pos)
inline

Definition at line 622 of file matrix_proxy.hpp.

§ clear_range()

template<class M>
iterator shark::blas::matrix_row< M >::clear_range ( iterator  start,
iterator  end 
)
inline

Definition at line 616 of file matrix_proxy.hpp.

§ end() [1/2]

template<class M>
iterator shark::blas::matrix_row< M >::end ( )
inline

Definition at line 600 of file matrix_proxy.hpp.

§ end() [2/2]

template<class M>
const_iterator shark::blas::matrix_row< M >::end ( ) const
inline

Definition at line 606 of file matrix_proxy.hpp.

§ expression() [1/2]

template<class M>
matrix_closure_type const& shark::blas::matrix_row< M >::expression ( ) const
inline

Definition at line 516 of file matrix_proxy.hpp.

§ expression() [2/2]

template<class M>
matrix_closure_type& shark::blas::matrix_row< M >::expression ( )
inline

Definition at line 519 of file matrix_proxy.hpp.

§ index()

template<class M>
index_type shark::blas::matrix_row< M >::index ( ) const
inline

Definition at line 523 of file matrix_proxy.hpp.

§ indices()

template<class M>
index_pointer shark::blas::matrix_row< M >::indices ( ) const
inline

Array of indices of the nonzero elements.

Definition at line 563 of file matrix_proxy.hpp.

§ nnz()

template<class M>
size_type shark::blas::matrix_row< M >::nnz ( ) const
inline

Number of nonzero elements of the vector.

Definition at line 554 of file matrix_proxy.hpp.

§ operator()()

template<class M>
reference shark::blas::matrix_row< M >::operator() ( index_type  j) const
inline

Definition at line 572 of file matrix_proxy.hpp.

§ operator=() [1/2]

template<class M>
template<class E >
matrix_row& shark::blas::matrix_row< M >::operator= ( vector_expression< E > const &  e)
inline

Definition at line 586 of file matrix_proxy.hpp.

§ operator=() [2/2]

template<class M>
matrix_row& shark::blas::matrix_row< M >::operator= ( matrix_row< M > const &  e)
inline

Definition at line 589 of file matrix_proxy.hpp.

§ operator[]()

template<class M>
reference shark::blas::matrix_row< M >::operator[] ( index_type  j) const
inline

Definition at line 575 of file matrix_proxy.hpp.

§ reserve()

template<class M>
void shark::blas::matrix_row< M >::reserve ( size_type  non_zeros)
inline

Definition at line 632 of file matrix_proxy.hpp.

§ set_element() [1/2]

template<class M>
void shark::blas::matrix_row< M >::set_element ( size_type  j,
value_type  t 
)
inline

Definition at line 579 of file matrix_proxy.hpp.

§ set_element() [2/2]

template<class M>
iterator shark::blas::matrix_row< M >::set_element ( iterator  pos,
index_type  index,
value_type  value 
)
inline

Definition at line 610 of file matrix_proxy.hpp.

§ size()

template<class M>
size_type shark::blas::matrix_row< M >::size ( ) const
inline

Returns the size of the vector.

Definition at line 528 of file matrix_proxy.hpp.

Referenced by shark::TwoStateSpace< State1, State2 >::state().

§ storage()

template<class M>
pointer shark::blas::matrix_row< M >::storage ( ) const
inline

Returns the pointer to the beginning of the vector storage.

Grants low-level access to the vector internals. to access element i use storage()[i*stride()].

Definition at line 545 of file matrix_proxy.hpp.

§ stride()

template<class M>
difference_type shark::blas::matrix_row< M >::stride ( ) const
inline

Returns the stride in memory between two elements.

Definition at line 537 of file matrix_proxy.hpp.

§ values()

template<class M>
const_pointer shark::blas::matrix_row< M >::values ( ) const
inline

Array of values of the nonzero elements.

Definition at line 558 of file matrix_proxy.hpp.


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