Implementation of the NOX::Abstract::Vector interface for TSFExtended::Vector<double> (using TSFExtended handle to TSFCore). More...
Public Member Functions | |
| Vector (const NOX::TSF::Vector &source, NOX::CopyType type=DeepCopy) | |
| Copy constructor. | |
| Vector (const TSFExtended::Vector< double > &source, NOX::CopyType type=DeepCopy) | |
| Copy constructor. | |
| Vector (const NOX::TSF::Vector &source, int numdigits, NOX::CopyType type=DeepCopy) | |
| Copy constructor when user requests specific precision. | |
| Vector (const TSFExtended::Vector< double > &source, int numdigits, NOX::CopyType type=DeepCopy) | |
| Copy constructor when user requests specific precision. | |
| TSFExtended::Vector< double > & | getTSFVector () |
| Access to a writable reference to the underlying TSF vector. | |
| const TSFExtended::Vector < double > & | getTSFVector () const |
| Access to a read-only reference to the underlying TSF vector. | |
| int | getPrecision () const |
| Access to the vector precision expected by user. | |
| int | length () const |
| The length of a TSFExtended vector is known only by the vector space it belongs to We query the vector space and ask its dimension. | |
| ostream & | leftshift (std::ostream &stream) const |
| Prints out the vector to the specified stream. | |
| void | print () const |
| NOX::Abstract::Vector & | init (double value) |
| Initialize all elements to a constant. | |
| NOX::Abstract::Vector & | operator= (const NOX::TSF::Vector &y) |
| Assignment operator. | |
| NOX::Abstract::Vector & | operator= (const NOX::Abstract::Vector &y) |
| Assignment operator. | |
| NOX::Abstract::Vector & | abs (const NOX::TSF::Vector &y) |
| Element-wise absolute value. | |
| NOX::Abstract::Vector & | abs (const NOX::Abstract::Vector &y) |
| Element-wise absolute value. | |
| NOX::Abstract::Vector & | reciprocal (const NOX::TSF::Vector &y) |
| Element-wise reciprocal. | |
| NOX::Abstract::Vector & | reciprocal (const NOX::Abstract::Vector &y) |
| Element-wise reciprocal. | |
| NOX::Abstract::Vector & | scale (double gamma) |
| NOX::Abstract::Vector & | scale (const NOX::TSF::Vector &a) |
| NOX::Abstract::Vector & | scale (const NOX::Abstract::Vector &a) |
| NOX::Abstract::Vector & | update (double alpha, const NOX::TSF::Vector &a, double gamma=0.0) |
| NOX::Abstract::Vector & | update (double alpha, const NOX::Abstract::Vector &a, double gamma=0.0) |
| NOX::Abstract::Vector & | update (double alpha, const NOX::TSF::Vector &a, double beta, const NOX::TSF::Vector &b, double gamma=0.0) |
| NOX::Abstract::Vector & | update (double alpha, const NOX::Abstract::Vector &a, double beta, const NOX::Abstract::Vector &b, double gamma=0.0) |
| RCP< NOX::Abstract::Vector > | clone (NOX::CopyType type=NOX::DeepCopy) const |
| double | norm (NOX::Abstract::Vector::NormType type=NOX::Abstract::Vector::TwoNorm) const |
| double | norm (const NOX::TSF::Vector &weights) const |
| double | norm (const NOX::Abstract::Vector &weights) const |
| double | dot (const NOX::TSF::Vector &y) const |
| double | dot (const NOX::Abstract::Vector &y) const |
| double | innerProduct (const NOX::Abstract::Vector &y) const |
Private Attributes | |
| int | precision |
| user-specified precision for printing vectors | |
| TSFExtended::Vector< double > | x |
| The TSF vector owned by this object. | |
Implementation of the NOX::Abstract::Vector interface for TSFExtended::Vector<double> (using TSFExtended handle to TSFCore).
Definition at line 56 of file NOX_TSF_Vector.H.
| NOX::TSF::Vector::Vector | ( | const NOX::TSF::Vector & | source, |
| NOX::CopyType | type = DeepCopy |
||
| ) |
Copy constructor.
Definition at line 45 of file NOX_TSF_Vector.C.
References TSFExtended::Vector< Scalar >::copy(), and x.
| NOX::TSF::Vector::Vector | ( | const TSFExtended::Vector< double > & | source, |
| NOX::CopyType | type = DeepCopy |
||
| ) |
Copy constructor.
Definition at line 66 of file NOX_TSF_Vector.C.
References TSFExtended::Vector< Scalar >::copy(), and x.
| NOX::TSF::Vector::Vector | ( | const NOX::TSF::Vector & | source, |
| int | numdigits, | ||
| NOX::CopyType | type = DeepCopy |
||
| ) |
Copy constructor when user requests specific precision.
Definition at line 89 of file NOX_TSF_Vector.C.
References TSFExtended::Vector< Scalar >::copy(), and x.
| NOX::TSF::Vector::Vector | ( | const TSFExtended::Vector< double > & | source, |
| int | numdigits, | ||
| NOX::CopyType | type = DeepCopy |
||
| ) |
Copy constructor when user requests specific precision.
Definition at line 112 of file NOX_TSF_Vector.C.
References TSFExtended::Vector< Scalar >::copy(), and x.
| NOX::Abstract::Vector & NOX::TSF::Vector::abs | ( | const NOX::TSF::Vector & | y | ) |
| NOX::Abstract::Vector & NOX::TSF::Vector::abs | ( | const NOX::Abstract::Vector & | y | ) |
Element-wise absolute value.
Definition at line 175 of file NOX_TSF_Vector.C.
| RCP< NOX::Abstract::Vector > NOX::TSF::Vector::clone | ( | NOX::CopyType | type = NOX::DeepCopy | ) | const |
Definition at line 266 of file NOX_TSF_Vector.C.
| double NOX::TSF::Vector::dot | ( | const NOX::TSF::Vector & | y | ) | const |
Definition at line 322 of file NOX_TSF_Vector.C.
| double NOX::TSF::Vector::dot | ( | const NOX::Abstract::Vector & | y | ) | const |
Definition at line 312 of file NOX_TSF_Vector.C.
| int NOX::TSF::Vector::getPrecision | ( | ) | const |
Access to the vector precision expected by user.
Definition at line 147 of file NOX_TSF_Vector.C.
| const TSFExtended::Vector< double > & NOX::TSF::Vector::getTSFVector | ( | ) | const |
Access to a read-only reference to the underlying TSF vector.
Definition at line 142 of file NOX_TSF_Vector.C.
| TSFExtended::Vector< double > & NOX::TSF::Vector::getTSFVector | ( | ) |
Access to a writable reference to the underlying TSF vector.
Definition at line 137 of file NOX_TSF_Vector.C.
Referenced by NOX::TSF::Group::applyJacobian(), NOX::TSF::Group::applyJacobianInverse(), NOX::TSF::Group::applyJacobianTranspose(), NOX::TSF::Group::Group(), norm(), operator=(), NOX::TSF::Group::setX(), and TSFExtended::NOXSolver::solve().
| NOX::Abstract::Vector & NOX::TSF::Vector::init | ( | double | value | ) |
Initialize all elements to a constant.
Definition at line 168 of file NOX_TSF_Vector.C.
| double NOX::TSF::Vector::innerProduct | ( | const NOX::Abstract::Vector & | y | ) | const |
Definition at line 317 of file NOX_TSF_Vector.C.
| ostream & NOX::TSF::Vector::leftshift | ( | std::ostream & | stream | ) | const |
Prints out the vector to the specified stream.
For example, a vector would appear as
It will be all on one line, with a single space between each entry, bracketed on either side.
Definition at line 340 of file NOX_TSF_Vector.C.
Referenced by std::operator<<().
| int NOX::TSF::Vector::length | ( | ) | const |
The length of a TSFExtended vector is known only by the vector space it belongs to We query the vector space and ask its dimension.
Definition at line 333 of file NOX_TSF_Vector.C.
| double NOX::TSF::Vector::norm | ( | NOX::Abstract::Vector::NormType | type = NOX::Abstract::Vector::TwoNorm | ) | const |
Definition at line 272 of file NOX_TSF_Vector.C.
References Sundance::value.
| double NOX::TSF::Vector::norm | ( | const NOX::Abstract::Vector & | weights | ) | const |
Definition at line 297 of file NOX_TSF_Vector.C.
| double NOX::TSF::Vector::norm | ( | const NOX::TSF::Vector & | weights | ) | const |
Definition at line 302 of file NOX_TSF_Vector.C.
References getTSFVector(), and length().
| NOX::Abstract::Vector & NOX::TSF::Vector::operator= | ( | const NOX::Abstract::Vector & | y | ) |
Assignment operator.
Definition at line 152 of file NOX_TSF_Vector.C.
| NOX::Abstract::Vector & NOX::TSF::Vector::operator= | ( | const NOX::TSF::Vector & | y | ) |
Assignment operator.
Definition at line 158 of file NOX_TSF_Vector.C.
References TSFExtended::Vector< Scalar >::copy(), and getTSFVector().
| void NOX::TSF::Vector::print | ( | ) | const |
Definition at line 354 of file NOX_TSF_Vector.C.
| NOX::Abstract::Vector & NOX::TSF::Vector::reciprocal | ( | const NOX::Abstract::Vector & | y | ) |
Element-wise reciprocal.
Definition at line 189 of file NOX_TSF_Vector.C.
| NOX::Abstract::Vector & NOX::TSF::Vector::reciprocal | ( | const NOX::TSF::Vector & | y | ) |
| NOX::Abstract::Vector & NOX::TSF::Vector::scale | ( | const NOX::TSF::Vector & | a | ) |
Definition at line 254 of file NOX_TSF_Vector.C.
References x.
| NOX::Abstract::Vector & NOX::TSF::Vector::scale | ( | const NOX::Abstract::Vector & | a | ) |
Definition at line 248 of file NOX_TSF_Vector.C.
| NOX::Abstract::Vector & NOX::TSF::Vector::scale | ( | double | gamma | ) |
Definition at line 203 of file NOX_TSF_Vector.C.
| NOX::Abstract::Vector & NOX::TSF::Vector::update | ( | double | alpha, |
| const NOX::TSF::Vector & | a, | ||
| double | gamma = 0.0 |
||
| ) |
Definition at line 217 of file NOX_TSF_Vector.C.
References x.
| NOX::Abstract::Vector & NOX::TSF::Vector::update | ( | double | alpha, |
| const NOX::Abstract::Vector & | a, | ||
| double | gamma = 0.0 |
||
| ) |
Definition at line 209 of file NOX_TSF_Vector.C.
| NOX::Abstract::Vector & NOX::TSF::Vector::update | ( | double | alpha, |
| const NOX::Abstract::Vector & | a, | ||
| double | beta, | ||
| const NOX::Abstract::Vector & | b, | ||
| double | gamma = 0.0 |
||
| ) |
Definition at line 226 of file NOX_TSF_Vector.C.
| NOX::Abstract::Vector & NOX::TSF::Vector::update | ( | double | alpha, |
| const NOX::TSF::Vector & | a, | ||
| double | beta, | ||
| const NOX::TSF::Vector & | b, | ||
| double | gamma = 0.0 |
||
| ) |
Definition at line 237 of file NOX_TSF_Vector.C.
References x.
int NOX::TSF::Vector::precision [private] |
user-specified precision for printing vectors
Definition at line 200 of file NOX_TSF_Vector.H.
TSFExtended::Vector<double> NOX::TSF::Vector::x [private] |
The TSF vector owned by this object.
Definition at line 203 of file NOX_TSF_Vector.H.
Referenced by abs(), dot(), reciprocal(), scale(), update(), and Vector().