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

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 -- Generated on 19 May 2009 by Doxygen 1.5.5 -- Copyright 2007 by the Trustees of Indiana University.