#include <Epetra_SerialDenseVector.h>
Inheritance diagram for Epetra_SerialDenseVector:


Public Member Functions | |
Constructors/destructors | |
| Epetra_SerialDenseVector () | |
| Default constructor; defines a zero size object. | |
| Epetra_SerialDenseVector (int Length) | |
| Sized constructor; defines a variable-sized object. | |
| Epetra_SerialDenseVector (Epetra_DataAccess CV, double *Values, int Length) | |
| Set object values from one-dimensional array. | |
| Epetra_SerialDenseVector (const Epetra_SerialDenseVector &Source) | |
| Epetra_SerialDenseVector copy constructor. | |
| virtual | ~Epetra_SerialDenseVector () |
| Epetra_SerialDenseVector destructor. | |
Post-construction modification routines | |
| int | Size (int Length) |
| Set length of a Epetra_SerialDenseVector object; init values to zero. | |
| int | Resize (int Length) |
| Resize a Epetra_SerialDenseVector object. | |
Element access methods | |
| Epetra_SerialDenseVector & | operator= (const Epetra_SerialDenseVector &Source) |
| Value copy from one vector to another. | |
| double & | operator() (int Index) |
| Element access function. | |
| const double & | operator() (int Index) const |
| Element access function. | |
| double & | operator[] (int Index) |
| Element access function. | |
| const double & | operator[] (int Index) const |
| Column access function. | |
Mathematical methods | |
| int | Random () |
| Set vector values to random numbers. | |
| double | Dot (const Epetra_SerialDenseVector &x) const |
| Compute 1-norm of each vector in multi-vector. | |
| double | Norm1 () const |
| Compute 1-norm of each vector in multi-vector. | |
| double | Norm2 () const |
| Compute 2-norm of each vector in multi-vector. | |
| double | NormInf () const |
| Compute Inf-norm of each vector in multi-vector. | |
Attribute access methods | |
| int | Length () const |
| Returns length of vector. | |
| double * | Values () const |
| Returns pointer to the values in vector. | |
| Epetra_DataAccess | CV () const |
| Returns the data access mode of the this vector. | |
I/O methods | |
| virtual void | Print (ostream &os) const |
| Print service methods; defines behavior of ostream << operator. | |
The Epetra_SerialDenseVector class enables the construction and use of real-valued, double-precision dense vectors. It is built on the BLAS and LAPACK and derives from the Epetra_SerialDenseMatrix class.
The Epetra_SerialDenseVector class is intended to provide convenient vector notation but derives all signficant functionality from Epetra_SerialDenseMatrix.
Constructing Epetra_SerialDenseVector Objects
There are four Epetra_SerialDenseVector constructors. The first constructs a zero-length object which should be made to appropriate length using the Size() or Resize() functions and then filled with the [] or () operators. The second constructs an object sized to the dimension specified, which should be filled with the [] or () operators. The third is a constructor that accepts user data as a 1D array, and the fourth is a copy constructor. The third constructor has two data access modes (specified by the Epetra_DataAccess argument):
Once a Epetra_SerialDenseVector is constructed, it is possible to view the data via access functions.
| Epetra_SerialDenseVector::Epetra_SerialDenseVector | ( | ) |
Default constructor; defines a zero size object.
Epetra_SerialDenseVector objects defined by the default constructor should be sized with the Size() or Resize functions. Values should be defined by using the [] or () operators.
| Epetra_SerialDenseVector::Epetra_SerialDenseVector | ( | int | Length | ) |
Sized constructor; defines a variable-sized object.
| In | Length - Length of vector. |
| Epetra_SerialDenseVector::Epetra_SerialDenseVector | ( | Epetra_DataAccess | CV, | |
| double * | Values, | |||
| int | Length | |||
| ) |
Set object values from one-dimensional array.
| In | Epetra_DataAccess - Enumerated type set to Copy or View. | |
| In | Values - Pointer to an array of double precision numbers containing the values. | |
| In | Length - Length of vector. |
| double Epetra_SerialDenseVector::Dot | ( | const Epetra_SerialDenseVector & | x | ) | const |
Compute 1-norm of each vector in multi-vector.
| x | (In) Input vector x. |
| double Epetra_SerialDenseVector::Norm1 | ( | ) | const |
Compute 1-norm of each vector in multi-vector.
| double Epetra_SerialDenseVector::Norm2 | ( | ) | const |
Compute 2-norm of each vector in multi-vector.
| Out |
| double Epetra_SerialDenseVector::NormInf | ( | ) | const [virtual] |
Compute Inf-norm of each vector in multi-vector.
Reimplemented from Epetra_SerialDenseMatrix.
| const double & Epetra_SerialDenseVector::operator() | ( | int | Index | ) | const [inline] |
Element access function.
Returns the specified element of the vector. Bounds checking is enforced.
| double & Epetra_SerialDenseVector::operator() | ( | int | Index | ) | [inline] |
Element access function.
Returns the specified element of the vector. Bounds checking is enforced.
| Epetra_SerialDenseVector& Epetra_SerialDenseVector::operator= | ( | const Epetra_SerialDenseVector & | Source | ) |
Value copy from one vector to another.
The operator= allows one to copy the values from one existing SerialDenseVector to another, as long as there is enough room in the target to hold the source.
| const double & Epetra_SerialDenseVector::operator[] | ( | int | Index | ) | const [inline] |
Column access function.
Returns the specified element of the vector.
Reimplemented from Epetra_SerialDenseMatrix.
| double & Epetra_SerialDenseVector::operator[] | ( | int | Index | ) | [inline] |
Element access function.
Returns the specified element of the vector.
Reimplemented from Epetra_SerialDenseMatrix.
| int Epetra_SerialDenseVector::Random | ( | ) |
Set vector values to random numbers.
SerialDenseVector uses the random number generator provided by Epetra_Util. The vector values will be set to random values on the interval (-1.0, 1.0).
Reimplemented from Epetra_SerialDenseMatrix.
| int Epetra_SerialDenseVector::Resize | ( | int | Length | ) | [inline] |
Resize a Epetra_SerialDenseVector object.
| In | Length - Length of vector object. |
| int Epetra_SerialDenseVector::Size | ( | int | Length | ) | [inline] |
Set length of a Epetra_SerialDenseVector object; init values to zero.
| In | Length - Length of vector object. |
1.4.7