Thyra::ConstVector< Scalar > Class Template Reference
[Development of linear Abstract Numerical Algorithms (ANAs)]

Read-only handle class for wrapping Thyra::VectorBase objects and allowing for operator-overloading linear algebra. More...

#include <Thyra_VectorDecl.hpp>

Inheritance diagram for Thyra::ConstVector< Scalar >:

Inheritance graph
[legend]
List of all members.

Implementation of the Converter interface

bool containsVector (const Thyra::VectorBase< Scalar > *vec) const
 
void evalInto (Vector< Scalar > &other) const
 
void addInto (Vector< Scalar > &other, Thyra::LCSign sign) const
 
virtual Scalar operator[] (Index globalIndex) const
 Read-only access to an element.

Block-related functions

int numBlocks () const
 copy
ConstVector< Scalar > getBlock (Index i) const
 Read-only access to the $i$-th block. If the std::vector is not a product std::vector, this function will throw an std::exception if $i\ne 0$, or otherwise return the whole std::vector.

Public Member Functions

 ConstVector (const Thyra::ConvertibleToVector< Scalar > &x)
 Construct a std::vector from the result of an overloaded operator.
ConstVector< Scalar > convert () const
 

Related Functions

(Note that these are not member functions.)

Index dim (const ConstVector< Scalar > &x)
 Return the dimension of the std::vector.
VectorSpace< Scalar > space (const ConstVector< Scalar > &x)
 Return the std::vector space for a std::vector.
std::ostream & operator<< (std::ostream &os, const ConstVector< Scalar > &v)
 Write to a stream.
Thyra::Vector< Scalar > formVector (const Thyra::ConstVector< Scalar > &x)
 Form a Vector from this object.

Detailed Description

template<class Scalar>
class Thyra::ConstVector< Scalar >

Read-only handle class for wrapping Thyra::VectorBase objects and allowing for operator-overloading linear algebra.
Examples:

sillierCgSolve.hpp, and silliestCgSolve.hpp.

Definition at line 118 of file Thyra_VectorDecl.hpp.


Constructor & Destructor Documentation

template<class Scalar>
Thyra::ConstVector< Scalar >::ConstVector ( const Thyra::ConvertibleToVector< Scalar > &  x  ) 

Construct a std::vector from the result of an overloaded operator.

Definition at line 582 of file Thyra_LinearCombinationImpl.hpp.


Member Function Documentation

template<class Scalar>
ConstVector<Scalar> Thyra::ConstVector< Scalar >::convert (  )  const [inline, virtual]

Implements Thyra::Converter< Scalar, TargetType >.

Definition at line 129 of file Thyra_VectorDecl.hpp.

template<class Scalar>
bool Thyra::ConstVector< Scalar >::containsVector ( const Thyra::VectorBase< Scalar > *  vec  )  const [inline, virtual]

Implements Thyra::Converter< Scalar, TargetType >.

Definition at line 55 of file Thyra_VectorImpl.hpp.

template<class Scalar>
void Thyra::ConstVector< Scalar >::evalInto ( Vector< Scalar > &  other  )  const [inline, virtual]

Implements Thyra::Converter< Scalar, TargetType >.

Definition at line 61 of file Thyra_VectorImpl.hpp.

template<class Scalar>
void Thyra::ConstVector< Scalar >::addInto ( Vector< Scalar > &  other,
Thyra::LCSign  sign 
) const [inline, virtual]

Implements Thyra::Converter< Scalar, TargetType >.

Definition at line 67 of file Thyra_VectorImpl.hpp.

template<class Scalar>
Scalar Thyra::ConstVector< Scalar >::operator[] ( Index  globalIndex  )  const [inline, virtual]

Read-only access to an element.

Reimplemented in Thyra::Vector< Scalar >.

Definition at line 48 of file Thyra_VectorImpl.hpp.

template<class Scalar>
int Thyra::ConstVector< Scalar >::numBlocks (  )  const [inline]

copy

Definition at line 122 of file Thyra_VectorImpl.hpp.

template<class Scalar>
ConstVector<Scalar> Thyra::ConstVector< Scalar >::getBlock ( Index  i  )  const

Read-only access to the $i$-th block. If the std::vector is not a product std::vector, this function will throw an std::exception if $i\ne 0$, or otherwise return the whole std::vector.


Friends And Related Function Documentation

template<class Scalar>
Index dim ( const ConstVector< Scalar > &  x  )  [related]

Return the dimension of the std::vector.

Definition at line 106 of file Thyra_VectorImpl.hpp.

template<class Scalar>
VectorSpace< Scalar > space ( const ConstVector< Scalar > &  x  )  [related]

Return the std::vector space for a std::vector.

Definition at line 112 of file Thyra_VectorImpl.hpp.

template<class Scalar>
std::ostream & operator<< ( std::ostream &  os,
const ConstVector< Scalar > &  v 
) [related]

Write to a stream.

Definition at line 74 of file Thyra_VectorImpl.hpp.

template<class Scalar>
Thyra::Vector< Scalar > formVector ( const Thyra::ConstVector< Scalar > &  x  )  [related]

Form a Vector from this object.

Definition at line 333 of file Thyra_VectorDecl.hpp.


The documentation for this class was generated from the following files:
Generated on Wed May 12 21:42:34 2010 for Thyra Operator/Vector Support by  doxygen 1.4.7