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 >:

[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
 

[NOHEADER]

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 vector is not a product vector, this function will throw an exception if $i\ne 0$, or otherwise return the whole vector.

Public Member Functions

 ConstVector (const Thyra::ConvertibleToVector< Scalar > &x)
 Construct a 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 vector.
VectorSpace< Scalar > space (const ConstVector< Scalar > &x)
 Return the vector space for a 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 106 of file Thyra_VectorDecl.hpp.


Constructor & Destructor Documentation

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

Construct a vector from the result of an overloaded operator.

Definition at line 581 of file Thyra_LinearCombinationImpl.hpp.


Member Function Documentation

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

Implements Thyra::Converter< Scalar, ConstVector< Scalar > >.

Definition at line 117 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, ConstVector< Scalar > >.

Definition at line 54 of file Thyra_VectorImpl.hpp.

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

Implements Thyra::Converter< Scalar, ConstVector< Scalar > >.

Definition at line 60 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, ConstVector< Scalar > >.

Definition at line 66 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 47 of file Thyra_VectorImpl.hpp.

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

copy

Definition at line 121 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 vector is not a product vector, this function will throw an exception if $i\ne 0$, or otherwise return the whole vector.


Friends And Related Function Documentation

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

Return the dimension of the vector.

Definition at line 105 of file Thyra_VectorImpl.hpp.

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

Return the vector space for a vector.

Definition at line 111 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 73 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 321 of file Thyra_VectorDecl.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Sep 18 12:32:33 2008 for Thyra Operator/Vector Support by doxygen 1.3.9.1