OKlibrary  0.2.1.6
Matrices::QuadMatrix< i_type, v_type, dimension, st > Class Template Reference

Simple square-matrices class, wrapping arrays. More...

#include <Matrices.hpp>

List of all members.

Public Types

typedef const v_type array_type [dimension][dimension]
typedef v_type array_type_mutable [dimension][dimension]
typedef i_type index_type
typedef v_type value_type

Public Member Functions

 QuadMatrix (const array_type &a_)
template<storage_class stc>
 QuadMatrix (const QuadMatrix< i_type, v_type, dimension, stc > &M)
value_type operator() (index_type i, index_type j) const
const v_type * operator[] (index_type i) const

Static Public Attributes

static const index_type dim = dimension

Detailed Description

template<typename i_type, typename v_type, i_type dimension, storage_class st = non_mutable_elements>
class Matrices::QuadMatrix< i_type, v_type, dimension, st >

Simple square-matrices class, wrapping arrays.

Providing

  • dimension
  • equality test
  • type-safe assignment
  • element-access via operator ()
  • row-access via operator []
  • two version for non-mutable (default) and mutable elements

Definition at line 47 of file Matrices.hpp.


Member Typedef Documentation

template<typename i_type, typename v_type, i_type dimension, storage_class st = non_mutable_elements>
typedef const v_type Matrices::QuadMatrix< i_type, v_type, dimension, st >::array_type[dimension][dimension]

Definition at line 49 of file Matrices.hpp.

template<typename i_type, typename v_type, i_type dimension, storage_class st = non_mutable_elements>
typedef v_type Matrices::QuadMatrix< i_type, v_type, dimension, st >::array_type_mutable[dimension][dimension]

Definition at line 50 of file Matrices.hpp.

template<typename i_type, typename v_type, i_type dimension, storage_class st = non_mutable_elements>
typedef i_type Matrices::QuadMatrix< i_type, v_type, dimension, st >::index_type

Definition at line 51 of file Matrices.hpp.

template<typename i_type, typename v_type, i_type dimension, storage_class st = non_mutable_elements>
typedef v_type Matrices::QuadMatrix< i_type, v_type, dimension, st >::value_type

Definition at line 52 of file Matrices.hpp.


Constructor & Destructor Documentation

template<typename i_type, typename v_type, i_type dimension, storage_class st = non_mutable_elements>
Matrices::QuadMatrix< i_type, v_type, dimension, st >::QuadMatrix ( const array_type a_) [inline]

Definition at line 56 of file Matrices.hpp.

template<typename i_type, typename v_type, i_type dimension, storage_class st = non_mutable_elements>
template<storage_class stc>
Matrices::QuadMatrix< i_type, v_type, dimension, st >::QuadMatrix ( const QuadMatrix< i_type, v_type, dimension, stc > &  M) [inline]

Definition at line 58 of file Matrices.hpp.


Member Function Documentation

template<typename i_type, typename v_type, i_type dimension, storage_class st = non_mutable_elements>
value_type Matrices::QuadMatrix< i_type, v_type, dimension, st >::operator() ( index_type  i,
index_type  j 
) const [inline]

Definition at line 60 of file Matrices.hpp.

template<typename i_type, typename v_type, i_type dimension, storage_class st = non_mutable_elements>
const v_type* Matrices::QuadMatrix< i_type, v_type, dimension, st >::operator[] ( index_type  i) const [inline]

Definition at line 61 of file Matrices.hpp.


Member Data Documentation

template<typename i_type, typename v_type, i_type dimension, storage_class st = non_mutable_elements>
const QuadMatrix< i_type, v_type, dimension, st >::index_type Matrices::QuadMatrix< i_type, v_type, dimension, st >::dim = dimension [static]

Definition at line 54 of file Matrices.hpp.


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