Logo MTL4

mtl::AlgebraicCollection< T > Struct Template Reference
[Concepts]

Concept AlgebraicCollection: common requirements of matrices, vectors, and scalars in computations. More...

#include <collection.hpp>

Inherits Collection< T >.

Collaboration diagram for mtl::AlgebraicCollection< T >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<typename T>
struct mtl::AlgebraicCollection< T >

Concept AlgebraicCollection: common requirements of matrices, vectors, and scalars in computations.

For more design clarity we consider them all as matrices (as Matlab does) and we regard Scalar and Vector as special cases (see there). However, the implementation of vectors is supposed to differ from the ones of matrices in order to provide efficient computations and storage.

Refinement of:
Notation:
Valid expressions:
  • Number of rows:
    num_rows(x)
    Return Type: size_type
  • Number of columns:
    num_cols(x)
    Return Type: size_type
  • Number of elements:
    size(x)
    Return Type: size_type
    Sematics: num_rows(x) * num_cols(x) (but possibly faster implemented)

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


mtl::AlgebraicCollection< T > Struct Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine -- Gen. with rev. 7542 on 7 Apr 2011 by doxygen 1.5.9 -- © 2010 by SimuNova UG.