scaled1D<RandomAccessContainerRef> [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:containers,adaptors Component type:type
Description
This class in not meant to be used directly. Instead it is created automatically when the scaled(x,alpha) function is invoked. See the documentation for "Shortcut for Creating A Scaled Vector". This vector type is READ ONLY therefore there are only const versions of things ie. there is no iterator typedef, just const_iterator.
Example
Definition
scaled1D.h
Template Parameters

ParameterDescriptionDefault
RandomAccessContainerRefThe type of underlying container 
Model of
RandomAccessRefContainerRef
Members
Member Where defined Description
enum { N = RandomAccessContainerRef::N }   Static size, 0 if dynamic size
value_type   The value type
size_type   The unsigned integral type for dimensions and indices
dimension   The dimension, should be 1D
iterator   The iterator type (do not use this)
const_iterator   The const iterator type
const_reverse_iterator   The const reverse iterator type
pointer   The pointer to the value type
reference   The reference type
const_reference   The const reference type
difference_type   The difference type
scaled_type   The scaled type
sparsity   The sparsity tag (dense_tag or sparse_tag)
subrange_type    
IndexArray   The type for the index array
IndexArrayRef   The reference type to the index array
scaled1D ()   Default constructor
scaled1D (const Vector& r, value_type scale_)   Normal constructor
scaled1D (const Vector& r, value_type scale_, do_scaled)    
scaled1D (const self& x)   Copy constructor
self& operator= (const self& x)   Assignment operator
~scaled1D ()   Destructor
operator Vector& ()   Access base containers
const_iterator begin () const Container Return a const iterator pointing to the beginning of the vector
const_iterator end () const Container Return a const iterator pointing past the end of the vector
const_reverse_iterator rbegin () const Reversible Container Return a const reverse iterator pointing to the last element of the vector
const_reverse_iterator rend () const Reversible Container Return a const reverse iterator pointing past the end of the vector
const_reference operator[] (size_type i) const   Return a const reference to the element with index i
subrange_type operator() (size_type s, size_type f) const    
size_type size () const Container Return the size of the vector
size_type nnz () const Vector Return the number of non-zeroes
self& adjust_index (size_type i)    
New members
Notes
See also

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