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

An identity matrix with values of type T. More...

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

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

Public Member Functions

 identity_matrix ()
 
 identity_matrix (std::size_t size)
 
- Public Member Functions inherited from shark::blas::diagonal_matrix< scalar_vector< T > >
 diagonal_matrix ()
 
 diagonal_matrix (scalar_vector< T > const &diagonal)
 
size_type size1 () const
 
size_type size2 () const
 
const_reference operator() (index_type i, index_type j) const
 
void set_element (size_type i, size_type j, value_type t)
 
diagonal_matrixoperator= (diagonal_matrix const &m)
 
void swap (diagonal_matrix &m)
 
const_row_iterator row_begin (index_type i) const
 
const_row_iterator row_end (index_type i) const
 
const_column_iterator column_begin (index_type i) const
 
const_column_iterator column_end (index_type i) const
 
- Public Member Functions inherited from shark::blas::matrix_container< diagonal_matrix< scalar_vector< 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() ()
 

Additional Inherited Members

- Public Types inherited from shark::blas::diagonal_matrix< scalar_vector< T > >
typedef scalar_vector< T > ::const_reference const_reference
 
typedef scalar_vector< T > ::reference reference
 
typedef scalar_vector< T > ::pointer pointer
 
typedef scalar_vector< T > ::const_pointer const_pointer
 
typedef index_type const * const_index_pointer
 
typedef index_type index_pointer
 
typedef sparse_tag storage_category
 
typedef elementwise_tag evaluation_category
 
typedef row_major orientation
 
typedef const_row_iterator const_column_iterator
 
typedef const_row_iterator row_iterator
 
typedef const_column_iterator column_iterator
 

Detailed Description

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

An identity matrix with values of type T.

Elements or cordinates \((i,i)\) are equal to 1 (one) and all others to 0 (zero).

Definition at line 1296 of file matrix_expression.hpp.

Constructor & Destructor Documentation

§ identity_matrix() [1/2]

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

Definition at line 1299 of file matrix_expression.hpp.

§ identity_matrix() [2/2]

template<class T>
shark::blas::identity_matrix< T >::identity_matrix ( std::size_t  size)
inline

Definition at line 1300 of file matrix_expression.hpp.


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