Logo MTL4
mtl::AlgebraicCollection< T > Struct Template Reference

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

#include <collection.hpp>

Inheritance diagram for mtl::AlgebraicCollection< T >:
Inheritance graph
[legend]
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 Sat Aug 11 2012 by doxygen 1.7.6.1 -- © 2010 by SimuNova UG.