Public Member Functions | |
| Vector (const NOX::NOXPlaya::Vector &source, NOX::CopyType type=DeepCopy) | |
| Copy constructor. | |
| Vector (const Playa::Vector< double > &source, NOX::CopyType type=DeepCopy) | |
| Copy constructor. | |
| Vector (const NOX::NOXPlaya::Vector &source, int numdigits, NOX::CopyType type=DeepCopy) | |
| Copy constructor when user requests specific precision. | |
| Vector (const Playa::Vector< double > &source, int numdigits, NOX::CopyType type=DeepCopy) | |
| Copy constructor when user requests specific precision. | |
| Playa::Vector< double > & | getPlayaVector () |
| const Playa::Vector< double > & | getPlayaVector () const |
| int | getPrecision () const |
| NOX::size_type | length () const |
| The length of a Playa vector is known only by the vector space it belongs to We query the vector space and ask its dimension. | |
| std::ostream & | leftshift (std::ostream &stream) const |
| Prints out the vector to the specified stream. | |
| void | print () const |
| NOX::Abstract::Vector & | init (double value) |
| NOX::Abstract::Vector & | operator= (const NOX::NOXPlaya::Vector &y) |
| NOX::Abstract::Vector & | operator= (const NOX::Abstract::Vector &y) |
| NOX::Abstract::Vector & | abs (const NOX::NOXPlaya::Vector &y) |
| NOX::Abstract::Vector & | abs (const NOX::Abstract::Vector &y) |
| NOX::Abstract::Vector & | reciprocal (const NOX::NOXPlaya::Vector &y) |
| NOX::Abstract::Vector & | reciprocal (const NOX::Abstract::Vector &y) |
| NOX::Abstract::Vector & | scale (double gamma) |
| NOX::Abstract::Vector & | scale (const NOX::NOXPlaya::Vector &a) |
| NOX::Abstract::Vector & | scale (const NOX::Abstract::Vector &a) |
| NOX::Abstract::Vector & | update (double alpha, const NOX::NOXPlaya::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::NOXPlaya::Vector &a, double beta, const NOX::NOXPlaya::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::NOXPlaya::Vector &weights) const |
| double | norm (const NOX::Abstract::Vector &weights) const |
| double | dot (const NOX::NOXPlaya::Vector &y) const |
| double | dot (const NOX::Abstract::Vector &y) const |
| double | innerProduct (const NOX::Abstract::Vector &y) const |
Private Attributes | |
| int | precision |
| Playa::Vector< double > | x |
Implementation of the NOX::Abstract::Vector interface for Playa::Vector<double> (using Playa handle to PlayaCore).
Definition at line 75 of file NOX_Playa_Vector.hpp.
| NOX::NOXPlaya::Vector::Vector | ( | const NOX::NOXPlaya::Vector & | source, |
| NOX::CopyType | type = DeepCopy |
||
| ) |
Copy constructor.
Definition at line 65 of file NOX_Playa_Vector.cpp.
References Playa::Vector< Scalar >::copy(), and x.
| NOX::NOXPlaya::Vector::Vector | ( | const Playa::Vector< double > & | source, |
| NOX::CopyType | type = DeepCopy |
||
| ) |
Copy constructor.
Definition at line 86 of file NOX_Playa_Vector.cpp.
References Playa::Vector< Scalar >::copy(), and x.
| NOX::NOXPlaya::Vector::Vector | ( | const NOX::NOXPlaya::Vector & | source, |
| int | numdigits, | ||
| NOX::CopyType | type = DeepCopy |
||
| ) |
Copy constructor when user requests specific precision.
Definition at line 109 of file NOX_Playa_Vector.cpp.
References Playa::Vector< Scalar >::copy(), and x.
| NOX::NOXPlaya::Vector::Vector | ( | const Playa::Vector< double > & | source, |
| int | numdigits, | ||
| NOX::CopyType | type = DeepCopy |
||
| ) |
Copy constructor when user requests specific precision.
Definition at line 132 of file NOX_Playa_Vector.cpp.
References Playa::Vector< Scalar >::copy(), and x.
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::abs | ( | const NOX::NOXPlaya::Vector & | y | ) |
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::abs | ( | const NOX::Abstract::Vector & | y | ) |
Element-wise absolute value
Definition at line 195 of file NOX_Playa_Vector.cpp.
References Playa::abs().
| RCP< NOX::Abstract::Vector > NOX::NOXPlaya::Vector::clone | ( | NOX::CopyType | type = NOX::DeepCopy | ) | const |
Definition at line 286 of file NOX_Playa_Vector.cpp.
| double NOX::NOXPlaya::Vector::dot | ( | const NOX::NOXPlaya::Vector & | y | ) | const |
Definition at line 342 of file NOX_Playa_Vector.cpp.
| double NOX::NOXPlaya::Vector::dot | ( | const NOX::Abstract::Vector & | y | ) | const |
Definition at line 332 of file NOX_Playa_Vector.cpp.
| Playa::Vector< double > & NOX::NOXPlaya::Vector::getPlayaVector | ( | ) |
Access to a writable reference to the underlying Playa vector
Definition at line 157 of file NOX_Playa_Vector.cpp.
Referenced by NOX::NOXPlaya::Group::applyJacobian(), NOX::NOXPlaya::Group::applyJacobianInverse(), NOX::NOXPlaya::Group::applyJacobianTranspose(), norm(), operator=(), NOX::NOXPlaya::Group::setX(), and Playa::NOXSolver::solve().
| const Playa::Vector< double > & NOX::NOXPlaya::Vector::getPlayaVector | ( | ) | const |
Access to a read-only reference to the underlying Playa vector
Definition at line 162 of file NOX_Playa_Vector.cpp.
| int NOX::NOXPlaya::Vector::getPrecision | ( | ) | const |
Access to the vector precision expected by user
Definition at line 167 of file NOX_Playa_Vector.cpp.
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::init | ( | double | value | ) |
Initialize all elements to a constant
Definition at line 188 of file NOX_Playa_Vector.cpp.
| double NOX::NOXPlaya::Vector::innerProduct | ( | const NOX::Abstract::Vector & | y | ) | const |
Definition at line 337 of file NOX_Playa_Vector.cpp.
| ostream & NOX::NOXPlaya::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 360 of file NOX_Playa_Vector.cpp.
Referenced by std::operator<<().
| NOX::size_type NOX::NOXPlaya::Vector::length | ( | ) | const |
The length of a Playa vector is known only by the vector space it belongs to We query the vector space and ask its dimension.
Definition at line 353 of file NOX_Playa_Vector.cpp.
| double NOX::NOXPlaya::Vector::norm | ( | NOX::Abstract::Vector::NormType | type = NOX::Abstract::Vector::TwoNorm | ) | const |
Definition at line 292 of file NOX_Playa_Vector.cpp.
References Sundance::value.
| double NOX::NOXPlaya::Vector::norm | ( | const NOX::NOXPlaya::Vector & | weights | ) | const |
Definition at line 322 of file NOX_Playa_Vector.cpp.
References getPlayaVector(), and length().
| double NOX::NOXPlaya::Vector::norm | ( | const NOX::Abstract::Vector & | weights | ) | const |
Definition at line 317 of file NOX_Playa_Vector.cpp.
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::operator= | ( | const NOX::NOXPlaya::Vector & | y | ) |
Assignment operator
Definition at line 178 of file NOX_Playa_Vector.cpp.
References Playa::Vector< Scalar >::copy(), and getPlayaVector().
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::operator= | ( | const NOX::Abstract::Vector & | y | ) |
Assignment operator
Definition at line 172 of file NOX_Playa_Vector.cpp.
| void NOX::NOXPlaya::Vector::print | ( | ) | const |
Definition at line 374 of file NOX_Playa_Vector.cpp.
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::reciprocal | ( | const NOX::NOXPlaya::Vector & | y | ) |
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::reciprocal | ( | const NOX::Abstract::Vector & | y | ) |
Element-wise reciprocal
Definition at line 209 of file NOX_Playa_Vector.cpp.
References Playa::reciprocal().
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::scale | ( | double | gamma | ) |
Definition at line 223 of file NOX_Playa_Vector.cpp.
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::scale | ( | const NOX::NOXPlaya::Vector & | a | ) |
Definition at line 274 of file NOX_Playa_Vector.cpp.
References x.
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::scale | ( | const NOX::Abstract::Vector & | a | ) |
Definition at line 268 of file NOX_Playa_Vector.cpp.
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::update | ( | double | alpha, |
| const NOX::NOXPlaya::Vector & | a, | ||
| double | gamma = 0.0 |
||
| ) |
Definition at line 237 of file NOX_Playa_Vector.cpp.
References x.
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::update | ( | double | alpha, |
| const NOX::Abstract::Vector & | a, | ||
| double | gamma = 0.0 |
||
| ) |
Definition at line 229 of file NOX_Playa_Vector.cpp.
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::update | ( | double | alpha, |
| const NOX::NOXPlaya::Vector & | a, | ||
| double | beta, | ||
| const NOX::NOXPlaya::Vector & | b, | ||
| double | gamma = 0.0 |
||
| ) |
Definition at line 257 of file NOX_Playa_Vector.cpp.
References x.
| NOX::Abstract::Vector & NOX::NOXPlaya::Vector::update | ( | double | alpha, |
| const NOX::Abstract::Vector & | a, | ||
| double | beta, | ||
| const NOX::Abstract::Vector & | b, | ||
| double | gamma = 0.0 |
||
| ) |
Definition at line 246 of file NOX_Playa_Vector.cpp.
int NOX::NOXPlaya::Vector::precision [private] |
user-specified precision for printing vectors
Definition at line 219 of file NOX_Playa_Vector.hpp.
Playa::Vector<double> NOX::NOXPlaya::Vector::x [private] |
The Playa vector owned by this object.
Definition at line 222 of file NOX_Playa_Vector.hpp.
Referenced by abs(), dot(), reciprocal(), scale(), update(), and Vector().