Thyra::VectorBase objects and allowing for operator-overloading linear algebra.
More...
#include <Thyra_VectorDecl.hpp>
Inheritance diagram for Thyra::Vector< Scalar >:
Product vector operations | |
| void | setBlock (int i, const ConstVector< Scalar > &v) |
| set block | |
| void | setBlock (int i, const Vector< Scalar > &v) |
| set block | |
| Vector< Scalar > | getBlock (int i) |
| get modifiable block | |
Public Member Functions | |
| Vector (const VectorSpace< Scalar > &space) | |
| Construct from a vector space . | |
| template<class Node1, class Node2> | |
| Vector (const Thyra::LC2< Scalar, Node1, Node2 > &x) | |
| Construct a vector from a 2-term LC. | |
| template<class Node> | |
| Vector (const Thyra::OpTimesLC< Scalar, Node > &x) | |
| Construct a vector from an operator times a linear combination. | |
| template<class Node1, class Node2> | |
| Vector & | operator= (const Thyra::LC2< Scalar, Node1, Node2 > &x) |
| Assign a linear combination of vectors to this vector. | |
| template<class Node1, class Node2> | |
| Vector & | operator+= (const Thyra::LC2< Scalar, Node1, Node2 > &x) |
| Add and assign a linear combination of vectors to this vector. | |
| template<class Node> | |
| Vector & | operator= (const Thyra::OpTimesLC< Scalar, Node > &x) |
| Assign a scaled linear combination to this vector. | |
| template<class Node> | |
| Vector & | operator+= (const Thyra::OpTimesLC< Scalar, Node > &x) |
| Add and assign a scaled linear combination to this vector. | |
| Vector< Scalar > & | acceptCopyOf (const ConstVector< Scalar > &x) |
| Scalar | operator[] (Index globalIndex) const |
| | |
| IndexObject | operator[] (Index globalIndex) |
| Index operator that allows changes to the element. | |
Related Functions | |
| (Note that these are not member functions.) | |
| OpTimesLC< Scalar, Thyra::ConstVector< Scalar > > | operator * (const Scalar &alpha, const Thyra::ConstVector< Scalar > &x) |
| Overloaded multiplication operator for scalar times vector. | |
| OpTimesLC< Scalar, Thyra::ConstVector< Scalar > > | operator * (const Thyra::ConstVector< Scalar > &x, const Scalar &alpha) |
| Overloaded multiplication operator for scalar times vector. | |
| Thyra::Vector< Scalar > | formVector (const Thyra::Vector< Scalar > &x) |
| Form a Vector from this object. | |
| Vector< Scalar > | dotStar (const Converter< Scalar, ConstVector< Scalar > > &x, const Converter< Scalar, ConstVector< Scalar > > &y) |
| return[i] = x[i] * y[i]. | |
| Vector< Scalar > | dotSlash (const Converter< Scalar, ConstVector< Scalar > > &x, const Converter< Scalar, ConstVector< Scalar > > &y) |
| return[i] = x[i] / y[i]. | |
| Scalar | maxloc (const Converter< Scalar, ConstVector< Scalar > > &x, Index &index) |
| Return the max of a vector and its location. | |
| Scalar | minloc (const Converter< Scalar, ConstVector< Scalar > > &x, Index &index) |
| Return the min of a vector and its location. | |
| Scalar | minloc (const Converter< Scalar, ConstVector< Scalar > > &x, const Scalar &bound, Index &index) |
| Return the minimum element and its location (lowest index). | |
| Scalar | maxloc (const Converter< Scalar, ConstVector< Scalar > > &x, const Scalar &bound, Index &index) |
| Return the maxium element and its location (lowest index). | |
| void | scaleInto (const Converter< Scalar, ConstVector< Scalar > > &x, const Scalar &alpha, Vector< Scalar > &result) |
| result = alpha*x. | |
| void | scale (Vector< Scalar > &x, const Scalar &alpha) |
| x = alpha*x. | |
| void | axpy (const Scalar &alpha, const Converter< Scalar, ConstVector< Scalar > > &x, Vector< Scalar > &y) |
| y = alpha*x + y. | |
Thyra::VectorBase objects and allowing for operator-overloading linear algebra.
Definition at line 189 of file Thyra_VectorDecl.hpp.
|
||||||||||
|
Construct from a vector space .
Definition at line 84 of file Thyra_VectorImpl.hpp. |
|
||||||||||||||
|
Construct a vector from a 2-term LC.
Definition at line 594 of file Thyra_LinearCombinationImpl.hpp. |
|
||||||||||||||
|
Construct a vector from an operator times a linear combination.
Definition at line 603 of file Thyra_LinearCombinationImpl.hpp. |
|
||||||||||||||
|
Assign a linear combination of vectors to this vector.
Definition at line 546 of file Thyra_LinearCombinationImpl.hpp. |
|
||||||||||||||
|
Add and assign a linear combination of vectors to this vector.
Definition at line 567 of file Thyra_LinearCombinationImpl.hpp. |
|
||||||||||||||
|
Assign a scaled linear combination to this vector.
Definition at line 516 of file Thyra_LinearCombinationImpl.hpp. |
|
||||||||||||||
|
Add and assign a scaled linear combination to this vector.
Definition at line 537 of file Thyra_LinearCombinationImpl.hpp. |
|
||||||||||
|
Write the contents of another vector into this vector Definition at line 90 of file Thyra_VectorImpl.hpp. |
|
||||||||||
|
Reimplemented from Thyra::ConstVector< Scalar >. Definition at line 275 of file Thyra_VectorDecl.hpp. |
|
||||||||||
|
Index operator that allows changes to the element.
Note: The object returned is of type Definition at line 285 of file Thyra_VectorDecl.hpp. |
|
||||||||||||||||
|
set block
Definition at line 169 of file Thyra_VectorImpl.hpp. |
|
||||||||||||||||
|
set block
Definition at line 181 of file Thyra_VectorImpl.hpp. |
|
||||||||||
|
get modifiable block
Definition at line 152 of file Thyra_VectorImpl.hpp. |
|
||||||||||||||||
|
Overloaded multiplication operator for scalar times vector.
Definition at line 171 of file Thyra_LinearCombinationImpl.hpp. |
|
||||||||||||||||
|
Overloaded multiplication operator for scalar times vector.
Definition at line 183 of file Thyra_LinearCombinationImpl.hpp. |
|
||||||||||
|
Form a Vector from this object. For Vector, the operation is simply a pass-through. Definition at line 314 of file Thyra_VectorDecl.hpp. |
|
||||||||||||||||
|
return[i] = x[i] * y[i].
Definition at line 124 of file Thyra_VectorHandleOpsImpl.hpp. |
|
||||||||||||||||
|
return[i] = x[i] / y[i].
Definition at line 145 of file Thyra_VectorHandleOpsImpl.hpp. |
|
||||||||||||||||
|
Return the max of a vector and its location.
Definition at line 71 of file Thyra_VectorHandleOpsImpl.hpp. |
|
||||||||||||||||
|
Return the min of a vector and its location.
Definition at line 81 of file Thyra_VectorHandleOpsImpl.hpp. |
|
||||||||||||||||||||
|
Return the minimum element and its location (lowest index). <scalar> Definition at line 91 of file Thyra_VectorHandleOpsImpl.hpp. |
|
||||||||||||||||||||
|
Return the maxium element and its location (lowest index).
Definition at line 102 of file Thyra_VectorHandleOpsImpl.hpp. |
|
||||||||||||||||||||
|
result = alpha*x.
Definition at line 174 of file Thyra_VectorHandleOpsImpl.hpp. |
|
||||||||||||||||
|
x = alpha*x.
Definition at line 166 of file Thyra_VectorHandleOpsImpl.hpp. |
|
||||||||||||||||||||
|
y = alpha*x + y.
Definition at line 155 of file Thyra_VectorHandleOpsImpl.hpp. |
1.3.9.1