scaled2D<TwoD, T> [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:containers,adaptors Component type:type
Description
This class is not meant to be used directly. Instead, use the scaled() function to create a scaled matrix to pass into an MTL algorithm.
Example
Definition
Template Parameters
Model of
Members
Member Where defined Description
template <class SubMatrix>
struct partitioned
   
enum { M = TwoD::M, N = TwoD::N }    
size_type   The unsigned integral type for dimensions and indices
value_type   The 1D container type
reference   The type for references to value type
const_reference   The type for const references to value type
iterator   The iterator type (not used)
const_iterator   The const iterator type
reverse_iterator   The reverse iterator type (not used)
const_reverse_iterator   The const reverse iterator type
sparsity   Either sparse_tag or dense_tag
strideability   Whether the underlying 2D container is strideable
storage_loc   Either internal or external storage
transpose_type   The transpose type
scaled2D ()   Default Constructor
scaled2D (const TwoD& x, const T& a)   Normal Constructor
const_iterator begin () const   Return a const iterator pointing to the first 1D container
const_iterator end () const   Return a const iterator pointing past the end of the 2D container
const_reverse_iterator rbegin () const   Return a const reverse iterator pointing to the last 1D container
const_reverse_iterator rend () const   Return a const reverse iterator pointing past the start of the 2D container
reference operator[] (int i) const   Return a const reference to the ith 1D container
T operator() (int i, int j) const   Return a const reference to the (i,j) element, where (i,j) is in the 2D coordinate system
int major () const   The dimension of the 2D container
int minor () const   The dimension of the 1D containers
size_type nnz () const   The number of non-zeros
New members
Notes
See also

[MTL Home] Copyright © 1998,1999 University of Notre Dame. All Rights Reserved.