NOX::NOXPlaya::Vector Class Reference

#include <NOX_Playa_Vector.hpp>

List of all members.

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
int length () const
ostream & leftshift (std::ostream &stream) const
 Prints out the vector to the specified stream.
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)


Detailed Description

Implementation of the NOX::Abstract::Vector interface for Playa::Vector<double> (using Playa handle to PlayaCore).

Author:
Jill Reese and Kevin Long

Definition at line 31 of file NOX_Playa_Vector.hpp.


Constructor & Destructor Documentation

NOX::NOXPlaya::Vector::Vector ( const NOX::NOXPlaya::Vector source,
NOX::CopyType  type = DeepCopy 
)

Copy constructor.

Definition at line 20 of file NOX_Playa_Vector.cpp.

NOX::NOXPlaya::Vector::Vector ( const Playa::Vector< double > &  source,
NOX::CopyType  type = DeepCopy 
)

Copy constructor.

Definition at line 41 of file NOX_Playa_Vector.cpp.

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 64 of file NOX_Playa_Vector.cpp.

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 87 of file NOX_Playa_Vector.cpp.


Member Function Documentation

Playa::Vector< double > & NOX::NOXPlaya::Vector::getPlayaVector (  ) 

Access to a writable reference to the underlying Playa vector

Definition at line 112 of file NOX_Playa_Vector.cpp.

const Playa::Vector< double > & NOX::NOXPlaya::Vector::getPlayaVector (  )  const

Access to a read-only reference to the underlying Playa vector

Definition at line 117 of file NOX_Playa_Vector.cpp.

int NOX::NOXPlaya::Vector::getPrecision (  )  const

Access to the vector precision expected by user

Definition at line 122 of file NOX_Playa_Vector.cpp.

NOX::Abstract::Vector & NOX::NOXPlaya::Vector::init ( double  value  ) 

Initialize all elements to a constant

Definition at line 143 of file NOX_Playa_Vector.cpp.

NOX::Abstract::Vector & NOX::NOXPlaya::Vector::operator= ( const NOX::NOXPlaya::Vector y  ) 

Assignment operator

Definition at line 133 of file NOX_Playa_Vector.cpp.

NOX::Abstract::Vector & NOX::NOXPlaya::Vector::operator= ( const NOX::Abstract::Vector &  y  ) 

Assignment operator

Definition at line 127 of file NOX_Playa_Vector.cpp.

NOX::Abstract::Vector & NOX::NOXPlaya::Vector::abs ( const NOX::NOXPlaya::Vector y  ) 

Element-wise absolute value

Definition at line 156 of file NOX_Playa_Vector.cpp.

NOX::Abstract::Vector & NOX::NOXPlaya::Vector::abs ( const NOX::Abstract::Vector &  y  ) 

Element-wise absolute value

Definition at line 150 of file NOX_Playa_Vector.cpp.

NOX::Abstract::Vector & NOX::NOXPlaya::Vector::reciprocal ( const NOX::NOXPlaya::Vector y  ) 

Element-wise reciprocal

Definition at line 170 of file NOX_Playa_Vector.cpp.

NOX::Abstract::Vector & NOX::NOXPlaya::Vector::reciprocal ( const NOX::Abstract::Vector &  y  ) 

Element-wise reciprocal

Definition at line 164 of file NOX_Playa_Vector.cpp.

int 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 308 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

\[ \left[ \; 0.1 \; 2.34 \; 5 \; \right] \]

It will be all on one line, with a single space between each entry, bracketed on either side.

Definition at line 315 of file NOX_Playa_Vector.cpp.


The documentation for this class was generated from the following files:

doxygen