shark::blas::scalar_matrix< T > Class Template Reference

A matrix with all values of type T equal to the same value. More...

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

+ Inheritance diagram for shark::blas::scalar_matrix< T >:

Public Types

typedef const T & const_reference
 
typedef const_reference reference
 
typedef value_type const * const_pointer
 
typedef const_pointer pointer
 
typedef index_type const * const_index_pointer
 
typedef index_type index_pointer
 
typedef dense_tag storage_category
 
typedef unknown_orientation orientation
 
typedef elementwise_tag evaluation_category
 
typedef constant_iterator< value_type > const_row_iterator
 
typedef constant_iterator< value_type > const_column_iterator
 
typedef const_row_iterator row_iterator
 
typedef const_column_iterator column_iterator
 

Public Member Functions

 scalar_matrix ()
 
 scalar_matrix (size_type size1, size_type size2, const value_type &value=value_type(1))
 
 scalar_matrix (const scalar_matrix &m)
 
size_type size1 () const
 
size_type size2 () const
 
const_reference operator() (size_type, size_type) const
 
const_row_iterator row_begin (std::size_t i) const
 
const_row_iterator row_end (std::size_t i) const
 
const_row_iterator column_begin (std::size_t j) const
 
const_row_iterator column_end (std::size_t j) const
 
- Public Member Functions inherited from shark::blas::matrix_container< scalar_matrix< T > >
const container_type & operator() () const
 
container_type & operator() ()
 
- Public Member Functions inherited from shark::blas::matrix_expression< E >
const expression_type & operator() () const
 
expression_type & operator() ()
 

Detailed Description

template<class T>
class shark::blas::scalar_matrix< T >

A matrix with all values of type T equal to the same value.

Template Parameters
Tthe type of object stored in the matrix (like double, float, complex, etc...)

Definition at line 229 of file matrix_expression.hpp.

Member Typedef Documentation

§ column_iterator

Definition at line 278 of file matrix_expression.hpp.

§ const_column_iterator

template<class T>
typedef constant_iterator<value_type> shark::blas::scalar_matrix< T >::const_column_iterator

Definition at line 276 of file matrix_expression.hpp.

§ const_index_pointer

template<class T>
typedef index_type const* shark::blas::scalar_matrix< T >::const_index_pointer

Definition at line 244 of file matrix_expression.hpp.

§ const_pointer

template<class T>
typedef value_type const* shark::blas::scalar_matrix< T >::const_pointer

Definition at line 239 of file matrix_expression.hpp.

§ const_reference

template<class T>
typedef const T& shark::blas::scalar_matrix< T >::const_reference

Definition at line 237 of file matrix_expression.hpp.

§ const_row_iterator

template<class T>
typedef constant_iterator<value_type> shark::blas::scalar_matrix< T >::const_row_iterator

Definition at line 275 of file matrix_expression.hpp.

§ evaluation_category

template<class T>
typedef elementwise_tag shark::blas::scalar_matrix< T >::evaluation_category

Definition at line 251 of file matrix_expression.hpp.

§ index_pointer

template<class T>
typedef index_type shark::blas::scalar_matrix< T >::index_pointer

Definition at line 245 of file matrix_expression.hpp.

§ orientation

template<class T>
typedef unknown_orientation shark::blas::scalar_matrix< T >::orientation

Definition at line 250 of file matrix_expression.hpp.

§ pointer

template<class T>
typedef const_pointer shark::blas::scalar_matrix< T >::pointer

Definition at line 241 of file matrix_expression.hpp.

§ reference

template<class T>
typedef const_reference shark::blas::scalar_matrix< T >::reference

Definition at line 238 of file matrix_expression.hpp.

§ row_iterator

Definition at line 277 of file matrix_expression.hpp.

§ storage_category

template<class T>
typedef dense_tag shark::blas::scalar_matrix< T >::storage_category

Definition at line 249 of file matrix_expression.hpp.

Constructor & Destructor Documentation

§ scalar_matrix() [1/3]

template<class T>
shark::blas::scalar_matrix< T >::scalar_matrix ( )
inline

Definition at line 254 of file matrix_expression.hpp.

§ scalar_matrix() [2/3]

template<class T>
shark::blas::scalar_matrix< T >::scalar_matrix ( size_type  size1,
size_type  size2,
const value_type &  value = value_type(1) 
)
inline

Definition at line 256 of file matrix_expression.hpp.

§ scalar_matrix() [3/3]

template<class T>
shark::blas::scalar_matrix< T >::scalar_matrix ( const scalar_matrix< T > &  m)
inline

Definition at line 258 of file matrix_expression.hpp.

Member Function Documentation

§ column_begin()

template<class T>
const_row_iterator shark::blas::scalar_matrix< T >::column_begin ( std::size_t  j) const
inline

Definition at line 287 of file matrix_expression.hpp.

§ column_end()

template<class T>
const_row_iterator shark::blas::scalar_matrix< T >::column_end ( std::size_t  j) const
inline

§ operator()()

template<class T>
const_reference shark::blas::scalar_matrix< T >::operator() ( size_type  ,
size_type   
) const
inline

Definition at line 270 of file matrix_expression.hpp.

§ row_begin()

template<class T>
const_row_iterator shark::blas::scalar_matrix< T >::row_begin ( std::size_t  i) const
inline

Definition at line 280 of file matrix_expression.hpp.

§ row_end()

template<class T>
const_row_iterator shark::blas::scalar_matrix< T >::row_end ( std::size_t  i) const
inline

§ size1()

template<class T>
size_type shark::blas::scalar_matrix< T >::size1 ( ) const
inline

Definition at line 262 of file matrix_expression.hpp.

§ size2()

template<class T>
size_type shark::blas::scalar_matrix< T >::size2 ( ) const
inline

Definition at line 265 of file matrix_expression.hpp.


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