small_vector< T > Class Template Reference

A synonym for small_matrix<T> having only one constructor (that with one size). More...

#include <small_matrix.hpp>

Inheritance diagram for small_vector< T >:

Inheritance graph
[legend]
Collaboration diagram for small_vector< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 small_vector ()
 Basic constructor.
 small_vector (int the_m, T *the_entries)
 Creates a small vector.
 small_vector (int the_m, T &first_entry)
 Creates a small vector.
small_vector< T > & operator= (small_matrix< T > &src)
 Assignment operator.
small_vector< T > & operator= (T *seg)
 Copying the entries from a memory segment.
void print_maple (std::ostream &s) const
 Prints the vector in the Maple form.

Detailed Description

template<class T>
class small_vector< T >

A synonym for small_matrix<T> having only one constructor (that with one size).


Constructor & Destructor Documentation

template<class T>
small_vector< T >::small_vector (  )  [inline]

Basic constructor.

Dummy objects are allowed.

template<class T>
small_vector< T >::small_vector ( int  the_m,
T *  the_entries 
) [inline]

Creates a small vector.

Parameters:
[in] the_m The size.
[in] the_entries The array of entries.

template<class T>
small_vector< T >::small_vector ( int  the_m,
T &  first_entry 
) [inline]

Creates a small vector.

The same but with T & instead of T *

Parameters:
[in] the_m The size.
[in] first_entry Reference of the first entry.


Member Function Documentation

template<class T>
small_vector<T>& small_vector< T >::operator= ( small_matrix< T > &  src  )  [inline]

Assignment operator.

Merely copies the entries of the source vector to the entries of the destination vector. The vectors should have the same size.

Parameters:
[in] src The source-vector.
Returns:
Reference to this vector.

template<class T>
small_vector<T>& small_vector< T >::operator= ( T *  seg  )  [inline]

Copying the entries from a memory segment.

Merely copies n * m values starting from a given pointer to the 'entry' array.

Parameters:
[in] seg Memory segment to copy.
Returns:
Reference to this vector.

template<class T>
void small_vector< T >::print_maple ( std::ostream &  s  )  const

Prints the vector in the Maple form.

Parameters:
[in] s The ostream to print to.

Reimplemented from small_matrix< T >.


The documentation for this class was generated from the following file:
Generated on Fri Sep 21 12:34:37 2007 for SG2 by  doxygen 1.5.2