AbstractLinAlgPack::VectorSpaceSerial Class Reference

Subclass for serial vector space objects that create VectorMutableDense vector and MultiVectorMutableDense multi-vector objects. More...

#include <AbstractLinAlgPack_VectorSpaceSerial.hpp>

Inheritance diagram for AbstractLinAlgPack::VectorSpaceSerial:

[legend]
List of all members.

Constructors / initializers

 VectorSpaceSerial (size_type dim=0)
 Calls this->initialize().
void initialize (size_type dim)
 Initialize given the dimension of the vector space.

Overridden from VectorSpece

bool is_compatible (const VectorSpace &vec_space) const
 Returns true if vec_space.dim() == this->dim().
bool is_in_core () const
 Returns true.
index_type dim () const
 Returns 0 if uninitialized.
space_fcty_ptr_t small_vec_spc_fcty () const
 Returns a VectorSpaceFactorySerial object.
space_ptr_t clone () const
 
vec_mut_ptr_t create_member () const
 Returns a VectorMutableDense object.
multi_vec_mut_ptr_t create_members (size_type num_vecs) const
 Returns a MultiVectorMutableDense object.
space_ptr_t sub_space (const Range1D &rng) const
 
space_ptr_t space (const GenPermMatrixSlice &P, BLAS_Cpp::Transp P_trans) const
 

Private Attributes

size_type dim_

Detailed Description

Subclass for serial vector space objects that create VectorMutableDense vector and MultiVectorMutableDense multi-vector objects.

The default constructor, copy constructor and assignment operators are allowed since they have the correct semantics.

Definition at line 43 of file AbstractLinAlgPack_VectorSpaceSerial.hpp.


Constructor & Destructor Documentation

AbstractLinAlgPack::VectorSpaceSerial::VectorSpaceSerial size_type  dim = 0  ) 
 

Calls this->initialize().

Definition at line 50 of file AbstractLinAlgPack_VectorSpaceSerial.cpp.


Member Function Documentation

void AbstractLinAlgPack::VectorSpaceSerial::initialize size_type  dim  ) 
 

Initialize given the dimension of the vector space.

Parameters:
dim [in] The dimension of the vector space.

Definition at line 56 of file AbstractLinAlgPack_VectorSpaceSerial.cpp.

bool AbstractLinAlgPack::VectorSpaceSerial::is_compatible const VectorSpace vec_space  )  const [virtual]
 

Returns true if vec_space.dim() == this->dim().

The assumption here is that Vector::get_sub_vector() and VectorMutable::get_sub_vector() can be used to implement all of the methods on an SMP machine in an efficient manner.

Implements AbstractLinAlgPack::VectorSpace.

Definition at line 64 of file AbstractLinAlgPack_VectorSpaceSerial.cpp.

bool AbstractLinAlgPack::VectorSpaceSerial::is_in_core  )  const [virtual]
 

Returns true.

Reimplemented from AbstractLinAlgPack::VectorSpace.

Definition at line 70 of file AbstractLinAlgPack_VectorSpaceSerial.cpp.

index_type AbstractLinAlgPack::VectorSpaceSerial::dim  )  const [virtual]
 

Returns 0 if uninitialized.

Implements AbstractLinAlgPack::VectorSpace.

Definition at line 75 of file AbstractLinAlgPack_VectorSpaceSerial.cpp.

VectorSpace::space_fcty_ptr_t AbstractLinAlgPack::VectorSpaceSerial::small_vec_spc_fcty  )  const [virtual]
 

Returns a VectorSpaceFactorySerial object.

Reimplemented from AbstractLinAlgPack::VectorSpace.

Definition at line 82 of file AbstractLinAlgPack_VectorSpaceSerial.cpp.

VectorSpace::space_ptr_t AbstractLinAlgPack::VectorSpaceSerial::clone  )  const [virtual]
 

Implements AbstractLinAlgPack::VectorSpace.

Definition at line 89 of file AbstractLinAlgPack_VectorSpaceSerial.cpp.

VectorSpace::vec_mut_ptr_t AbstractLinAlgPack::VectorSpaceSerial::create_member  )  const [virtual]
 

Returns a VectorMutableDense object.

Implements AbstractLinAlgPack::VectorSpace.

Definition at line 97 of file AbstractLinAlgPack_VectorSpaceSerial.cpp.

VectorSpace::multi_vec_mut_ptr_t AbstractLinAlgPack::VectorSpaceSerial::create_members size_type  num_vecs  )  const [virtual]
 

Returns a MultiVectorMutableDense object.

Reimplemented from AbstractLinAlgPack::VectorSpace.

Definition at line 105 of file AbstractLinAlgPack_VectorSpaceSerial.cpp.

VectorSpace::space_ptr_t AbstractLinAlgPack::VectorSpaceSerial::sub_space const Range1D rng  )  const [virtual]
 

Reimplemented from AbstractLinAlgPack::VectorSpace.

Definition at line 113 of file AbstractLinAlgPack_VectorSpaceSerial.cpp.

VectorSpace::space_ptr_t AbstractLinAlgPack::VectorSpaceSerial::space const GenPermMatrixSlice P,
BLAS_Cpp::Transp  P_trans
const [virtual]
 

Reimplemented from AbstractLinAlgPack::VectorSpace.

Definition at line 132 of file AbstractLinAlgPack_VectorSpaceSerial.cpp.


Member Data Documentation

size_type AbstractLinAlgPack::VectorSpaceSerial::dim_ [private]
 

Definition at line 96 of file AbstractLinAlgPack_VectorSpaceSerial.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Sep 18 12:36:12 2008 for MOOCHO (Single Doxygen Collection) by doxygen 1.3.9.1