Thyra::VectorBase objects and allowing for operator-overloading linear algebra.
More...
#include <Thyra_VectorDecl.hpp>
Inheritance diagram for Thyra::ConstVector< Scalar >:
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 -th block. If the std::vector is not a product std::vector, this function will throw an std::exception if , 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. | |
Thyra::VectorBase objects and allowing for operator-overloading linear algebra.
Definition at line 106 of file Thyra_VectorDecl.hpp.
| Thyra::ConstVector< Scalar >::ConstVector | ( | const Thyra::ConvertibleToVector< Scalar > & | x | ) |
Construct a std::vector from the result of an overloaded operator.
Definition at line 581 of file Thyra_LinearCombinationImpl.hpp.
| ConstVector<Scalar> Thyra::ConstVector< Scalar >::convert | ( | ) | const [inline, virtual] |
Implements Thyra::Converter< Scalar, TargetType >.
Definition at line 117 of file Thyra_VectorDecl.hpp.
| bool Thyra::ConstVector< Scalar >::containsVector | ( | const Thyra::VectorBase< Scalar > * | vec | ) | const [inline, virtual] |
Implements Thyra::Converter< Scalar, TargetType >.
Definition at line 54 of file Thyra_VectorImpl.hpp.
| void Thyra::ConstVector< Scalar >::evalInto | ( | Vector< Scalar > & | other | ) | const [inline, virtual] |
Implements Thyra::Converter< Scalar, TargetType >.
Definition at line 60 of file Thyra_VectorImpl.hpp.
| void Thyra::ConstVector< Scalar >::addInto | ( | Vector< Scalar > & | other, | |
| Thyra::LCSign | sign | |||
| ) | const [inline, virtual] |
Implements Thyra::Converter< Scalar, TargetType >.
Definition at line 66 of file Thyra_VectorImpl.hpp.
| 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.
| int Thyra::ConstVector< Scalar >::numBlocks | ( | ) | const [inline] |
| ConstVector<Scalar> Thyra::ConstVector< Scalar >::getBlock | ( | Index | i | ) | const |
Read-only access to the
-th block. If the std::vector is not a product std::vector, this function will throw an std::exception if
, or otherwise return the whole std::vector.
| Index dim | ( | const ConstVector< Scalar > & | x | ) | [related] |
| VectorSpace< Scalar > space | ( | const ConstVector< Scalar > & | x | ) | [related] |
Return the std::vector space for a std::vector.
Definition at line 111 of file Thyra_VectorImpl.hpp.
| std::ostream & operator<< | ( | std::ostream & | os, | |
| const ConstVector< Scalar > & | v | |||
| ) | [related] |
| Thyra::Vector< Scalar > formVector | ( | const Thyra::ConstVector< Scalar > & | x | ) | [related] |
1.4.7