Class used to control data and kernels of various vector libraries. More...
#include <ManagedVectorOperations.h>

Public Member Functions | |
| void | abs (const VectorData &x, VectorData &z) override |
| Set this to the component-wise absolute value of a vector. \(z_i = |x_i|\). | |
| void | abs (const VectorData &x, VectorData &z) override |
| Set this to the component-wise absolute value of a vector. \(z_i = |x_i|\). | |
| virtual void | abs (const VectorData &x, VectorData &z)=0 |
| Set this to the component-wise absolute value of a vector. \(z_i = |x_i|\). | |
| void | add (const VectorData &x, const VectorData &y, VectorData &z) override |
| Adds two vectors. For Vectors, \(\mathit{this}_i = x_i + y_i\). | |
| void | add (const VectorData &x, const VectorData &y, VectorData &z) override |
| Adds two vectors. For Vectors, \(\mathit{this}_i = x_i + y_i\). | |
| virtual void | add (const VectorData &x, const VectorData &y, VectorData &z)=0 |
| Adds two vectors. For Vectors, \(\mathit{this}_i = x_i + y_i\). | |
| void | addScalar (const VectorData &x, const Scalar &alpha, VectorData &y) override |
| set vector to \(x + \alpha \bar{1}\). | |
| virtual void | addScalar (const VectorData &x, const Scalar &alpha, VectorData &y)=0 |
| set vector to \(x + \alpha \bar{1}\). | |
| void | axpby (const Scalar &alpha, const Scalar &beta, const VectorData &x, VectorData &y) override |
| Set this vector alpha * x + this. \(y_i = \alpha x_i + \beta y_i \). | |
| void | axpby (const Scalar &alpha, const Scalar &beta, const VectorData &x, VectorData &y) override |
| Set this vector alpha * x + this. \(y_i = \alpha x_i + \beta y_i \). | |
| virtual void | axpby (const Scalar &alpha, const Scalar &beta, const VectorData &x, VectorData &y)=0 |
| Set this vector alpha * x + this. \(y_i = \alpha x_i + \beta y_i \). | |
| void | axpy (const Scalar &alpha, const VectorData &x, const VectorData &y, VectorData &z) override |
| Set this vector to alpha * x + y. \(z_i = \alpha x_i + y_i\). | |
| void | axpy (const Scalar &alpha, const VectorData &x, const VectorData &y, VectorData &z) override |
| Set this vector to alpha * x + y. \(z_i = \alpha x_i + y_i\). | |
| virtual void | axpy (const Scalar &alpha, const VectorData &x, const VectorData &y, VectorData &z)=0 |
| Set this vector to alpha * x + y. \(z_i = \alpha x_i + y_i\). | |
| std::shared_ptr< VectorOperations > | cloneOperations () const override |
| Clone the operations. | |
| void | copy (const VectorData &src, VectorData &dst) override |
| Set vector equal to x For Vectors, \(z_i = x_i\). | |
| void | copyCast (const VectorData &src, VectorData &dst) override |
| Set vector equal to x (with different precision) For Vectors, \(z_i = x_i\). | |
| void | divide (const VectorData &x, const VectorData &y, VectorData &z) override |
| Component-wise divide one vector by another. For Vectors, \(z_i = x_i / y_i\). | |
| void | divide (const VectorData &x, const VectorData &y, VectorData &z) override |
| Component-wise divide one vector by another. For Vectors, \(z_i = x_i / y_i\). | |
| virtual void | divide (const VectorData &x, const VectorData &y, VectorData &z)=0 |
| Component-wise divide one vector by another. For Vectors, \(z_i = x_i / y_i\). | |
| virtual Scalar | dot (const VectorData &x, const VectorData &y) const |
| Return the dot product of this vector with the argument vector. | |
| Scalar | dot (const VectorData &x, const VectorData &y) const override |
| Return the dot product of this vector with the argument vector. | |
| virtual bool | equals (const VectorData &x, const VectorData &y, const Scalar &tol) const |
| Check if two vectors are equal. | |
| uint64_t | getID () const |
| Get a unique id hash for the vector. | |
| virtual Scalar | L1Norm (const VectorData &x) const |
| Return discrete \( L_1 \) -norm of this vector. | |
| Scalar | L1Norm (const VectorData &x) const override |
| Return discrete \( L_1 \) -norm of this vector. | |
| virtual Scalar | L2Norm (const VectorData &x) const |
| Return discrete \( L_2 \) -norm of this vector. | |
| Scalar | L2Norm (const VectorData &x) const override |
| Return discrete \( L_2 \) -norm of this vector. | |
| void | linearSum (const Scalar &alpha, const VectorData &x, const Scalar &beta, const VectorData &y, VectorData &z) override |
| Set a vector to be a linear combination of two vectors. \(z_i = \alpha x_i + \beta y_i\). | |
| void | linearSum (const Scalar &alpha, const VectorData &x, const Scalar &beta, const VectorData &y, VectorData &z) override |
| Set a vector to be a linear combination of two vectors. \(z_i = \alpha x_i + \beta y_i\). | |
| virtual void | linearSum (const Scalar &alpha, const VectorData &x, const Scalar &beta, const VectorData &y, VectorData &z)=0 |
| Set a vector to be a linear combination of two vectors. \(z_i = \alpha x_i + \beta y_i\). | |
| Scalar | localDot (const VectorData &x, const VectorData &y) const override |
| Return the local dot product of this vector with the argument vector. | |
| bool | localEquals (const VectorData &x, const VectorData &y, const Scalar &tol=0.000001) const override |
| Determine if the local portion of two vectors are equal using an absolute tolerance. | |
| virtual Scalar | localL1Norm (const VectorData &x) const =0 |
| Return local discrete \( L_1 \) -norm of this vector. | |
| Scalar | localL1Norm (const VectorData &x) const override |
| Return local discrete \( L_1 \) -norm of this vector. | |
| virtual Scalar | localL2Norm (const VectorData &x) const =0 |
| Return local discrete \( L_2 \) -norm of this vector. | |
| Scalar | localL2Norm (const VectorData &x) const override |
| Return local discrete \( L_2 \) -norm of this vector. | |
| Scalar | localMax (const VectorData &x) const override |
| Return the local maximum value of the vector. \(\max_i x_i\). | |
| virtual Scalar | localMaxNorm (const VectorData &x) const =0 |
| Return the local \( L_\infty \) -norm of this vector. | |
| Scalar | localMaxNorm (const VectorData &x) const override |
| Return the local \( L_\infty \) -norm of this vector. | |
| Scalar | localMin (const VectorData &x) const override |
| Return the local minimum value of the vector. \(\min_i x_i\). | |
| Scalar | localMinQuotient (const VectorData &x, const VectorData &y) const override |
| Returns the local minimum of the quotient of two vectors: | |
| Scalar | localSum (const VectorData &) const override |
| Return the local sum of the vector. | |
| Scalar | localWrmsNorm (const VectorData &x, const VectorData &y) const override |
| Return a weighted norm of a vector. | |
| Scalar | localWrmsNormMask (const VectorData &x, const VectorData &mask, const VectorData &y) const override |
| Return a weighted norm of a subset of a vector. | |
| ManagedVectorOperations () | |
| virtual Scalar | max (const VectorData &x) const |
| Return the maximum value of the vector. \(\max_i x_i\). | |
| Scalar | max (const VectorData &x) const override |
| Return the maximum value of the vector. \(\max_i x_i\). | |
| virtual Scalar | maxNorm (const VectorData &x) const |
| Return the \( L_\infty \) -norm of this vector. | |
| Scalar | maxNorm (const VectorData &x) const override |
| Return the \( L_\infty \) -norm of this vector. | |
| Scalar | mean (const VectorData &x) const |
| Return the mean of the values of the vector. | |
| virtual Scalar | min (const VectorData &x) const |
| Return the minimum value of the vector. \(\min_i x_i\). | |
| Scalar | min (const VectorData &x) const override |
| Return the minimum value of the vector. \(\min_i x_i\). | |
| virtual Scalar | minQuotient (const VectorData &x, const VectorData &y) const |
| Returns the minimum of the quotient of two vectors: | |
| void | multiply (const VectorData &x, const VectorData &y, VectorData &z) override |
| Component-wise multiply one vector with another. For Vectors, \(z_i = x_i y_i\). | |
| void | multiply (const VectorData &x, const VectorData &y, VectorData &z) override |
| Component-wise multiply one vector with another. For Vectors, \(z_i = x_i y_i\). | |
| virtual void | multiply (const VectorData &x, const VectorData &y, VectorData &z)=0 |
| Component-wise multiply one vector with another. For Vectors, \(z_i = x_i y_i\). | |
| void | reciprocal (const VectorData &x, VectorData &y) override |
| Set this to the component-wise reciprocal of a vector. \(y_i = 1/x_i\). | |
| void | reciprocal (const VectorData &x, VectorData &y) override |
| Set this to the component-wise reciprocal of a vector. \(y_i = 1/x_i\). | |
| virtual void | reciprocal (const VectorData &x, VectorData &y)=0 |
| Set this to the component-wise reciprocal of a vector. \(y_i = 1/x_i\). | |
| void | registerChildObjects (AMP::IO::RestartManager *manager) const override |
| Register any child objects. | |
| void | scale (const Scalar &alpha, const VectorData &x, VectorData &y) override |
| Set vector equal to scaled input. For Vectors, \(y_i = \alpha x_i\). | |
| void | scale (const Scalar &alpha, const VectorData &x, VectorData &y) override |
| Set vector equal to scaled input. For Vectors, \(y_i = \alpha x_i\). | |
| virtual void | scale (const Scalar &alpha, const VectorData &x, VectorData &y)=0 |
| Set vector equal to scaled input. For Vectors, \(y_i = \alpha x_i\). | |
| void | scale (const Scalar &alpha, VectorData &x) override |
| Scale a vector. For Vectors, \(x_i = \alpha x_i\). | |
| void | scale (const Scalar &alpha, VectorData &x) override |
| Scale a vector. For Vectors, \(x_i = \alpha x_i\). | |
| virtual void | scale (const Scalar &alpha, VectorData &x)=0 |
| Scale a vector. For Vectors, \(x_i = \alpha x_i\). | |
| void | setMax (const Scalar &val, VectorData &x) override |
| modify vector to set \(x_i = max(x_i, val)\). | |
| virtual void | setMax (const Scalar &val, VectorData &x)=0 |
| modify vector to set \(x_i = max(x_i, val)\). | |
| void | setMin (const Scalar &val, VectorData &x) override |
| modify vector to set \(x_i = min(x_i, val)\). | |
| virtual void | setMin (const Scalar &val, VectorData &x)=0 |
| modify vector to set \(x_i = min(x_i, val)\). | |
| void | setRandomValues (VectorData &x) override |
| Set data in this vector to random values. | |
| void | setRandomValues (VectorData &x) override |
| Set data in this vector to random values. | |
| virtual void | setRandomValues (VectorData &x)=0 |
| Set data in this vector to random values. | |
| void | setToScalar (const Scalar &alpha, VectorData &z) override |
| Set all compenents of a vector to a scalar. For Vectors, the components of z are set to \(\alpha\). | |
| void | subtract (const VectorData &x, const VectorData &y, VectorData &z) override |
| Subtracts one vector from another. For Vectors, \(z_i = x_i - y_i\). | |
| void | subtract (const VectorData &x, const VectorData &y, VectorData &z) override |
| Subtracts one vector from another. For Vectors, \(z_i = x_i - y_i\). | |
| virtual void | subtract (const VectorData &x, const VectorData &y, VectorData &z)=0 |
| Subtracts one vector from another. For Vectors, \(z_i = x_i - y_i\). | |
| virtual Scalar | sum (const VectorData &x) const |
| Return the sum of the values of the vector. | |
| std::string | VectorOpName () const override |
| Get the type name. | |
| void | writeRestart (int64_t fid) const override |
| Write restart data to file. | |
| virtual Scalar | wrmsNorm (const VectorData &x, const VectorData &y) const |
| Return a weighted norm of a vector. | |
| virtual Scalar | wrmsNormMask (const VectorData &x, const VectorData &mask, const VectorData &y) const |
| Return a weighted norm of a subset of a vector. | |
| void | zero (VectorData &z) override |
| Set vector entries (including ghosts) to zero. | |
Protected Attributes | |
| uint64_t | d_hash = 0 |
Class used to control data and kernels of various vector libraries.
ManagedVectorOperations wraps the vector operations to call the native vector operations with the native data
Definition at line 14 of file ManagedVectorOperations.h.
|
inline |
Definition at line 18 of file ManagedVectorOperations.h.
|
overridevirtual |
Set this to the component-wise absolute value of a vector. \(z_i = |x_i|\).
| [in] | x | a vector |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set this to the component-wise absolute value of a vector. \(z_i = |x_i|\).
| [in] | x | a vector |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Set this to the component-wise absolute value of a vector. \(z_i = |x_i|\).
| [in] | x | a vector |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Adds two vectors. For Vectors, \(\mathit{this}_i = x_i + y_i\).
| [in] | x | Input vector x |
| [in] | y | Input vector y |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Adds two vectors. For Vectors, \(\mathit{this}_i = x_i + y_i\).
| [in] | x | Input vector x |
| [in] | y | Input vector y |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Adds two vectors. For Vectors, \(\mathit{this}_i = x_i + y_i\).
| [in] | x | Input vector x |
| [in] | y | Input vector y |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
set vector to \(x + \alpha \bar{1}\).
for vectors, \(y_i = x_i + \alpha\).
| [in] | x | a vector |
| [in] | alpha | a scalar |
| [out] | y | Output vector y |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
set vector to \(x + \alpha \bar{1}\).
for vectors, \(y_i = x_i + \alpha\).
| [in] | x | a vector |
| [in] | alpha | a scalar |
| [out] | y | Output vector y |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set this vector alpha * x + this. \(y_i = \alpha x_i + \beta y_i \).
| [in] | alpha | a scalar |
| [in] | beta | a scalar |
| [in] | x | a vector |
| [in,out] | y | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set this vector alpha * x + this. \(y_i = \alpha x_i + \beta y_i \).
| [in] | alpha | a scalar |
| [in] | beta | a scalar |
| [in] | x | a vector |
| [in,out] | y | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Set this vector alpha * x + this. \(y_i = \alpha x_i + \beta y_i \).
| [in] | alpha | a scalar |
| [in] | beta | a scalar |
| [in] | x | a vector |
| [in,out] | y | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set this vector to alpha * x + y. \(z_i = \alpha x_i + y_i\).
| [in] | alpha | a scalar |
| [in] | x | a vector |
| [in] | y | a vector |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set this vector to alpha * x + y. \(z_i = \alpha x_i + y_i\).
| [in] | alpha | a scalar |
| [in] | x | a vector |
| [in] | y | a vector |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Set this vector to alpha * x + y. \(z_i = \alpha x_i + y_i\).
| [in] | alpha | a scalar |
| [in] | x | a vector |
| [in] | y | a vector |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
Clone the operations.
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set vector equal to x For Vectors, \(z_i = x_i\).
| [in] | x | a vector |
| [out] | z | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set vector equal to x (with different precision) For Vectors, \(z_i = x_i\).
| [in] | x | a vector |
| [out] | z | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Component-wise divide one vector by another. For Vectors, \(z_i = x_i / y_i\).
| [in] | x | Input vector x |
| [in] | y | Input vector y |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Component-wise divide one vector by another. For Vectors, \(z_i = x_i / y_i\).
| [in] | x | Input vector x |
| [in] | y | Input vector y |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Component-wise divide one vector by another. For Vectors, \(z_i = x_i / y_i\).
| [in] | x | Input vector x |
| [in] | y | Input vector y |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Return the dot product of this vector with the argument vector.
Returns
\[\sum_i x_i y_i\]
| [in] | x | a vector |
| [in,out] | y | a vector |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Return the dot product of this vector with the argument vector.
Returns
\[\sum_i x_i y_i\]
| [in] | x | a vector |
| [in,out] | y | a vector |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
virtual |
Check if two vectors are equal.
Returns true if all values are equal within tolerance
| [in] | x | a vector |
| [in] | y | a vector |
| [in] | tol | tolerance to use |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
inherited |
Get a unique id hash for the vector.
|
virtual |
Return discrete \( L_1 \) -norm of this vector.
Returns
\[\sum_i |x_i|\]
| [in] | x | a vector |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Return discrete \( L_1 \) -norm of this vector.
Returns
\[\sum_i |x_i|\]
| [in] | x | a vector |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
virtual |
Return discrete \( L_2 \) -norm of this vector.
Returns
\[\sqrt{\sum_i x_i^2}\]
| [in] | x | a vector |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Return discrete \( L_2 \) -norm of this vector.
Returns
\[\sqrt{\sum_i x_i^2}\]
| [in] | x | a vector |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set a vector to be a linear combination of two vectors. \(z_i = \alpha x_i + \beta y_i\).
| [in] | alpha | a scalar |
| [in] | x | a vector |
| [in] | beta | a scalar |
| [in] | y | a vector |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set a vector to be a linear combination of two vectors. \(z_i = \alpha x_i + \beta y_i\).
| [in] | alpha | a scalar |
| [in] | x | a vector |
| [in] | beta | a scalar |
| [in] | y | a vector |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Set a vector to be a linear combination of two vectors. \(z_i = \alpha x_i + \beta y_i\).
| [in] | alpha | a scalar |
| [in] | x | a vector |
| [in] | beta | a scalar |
| [in] | y | a vector |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
Return the local dot product of this vector with the argument vector.
Returns
\[\sum_i x_i y_i\]
| [in] | x | a vector |
| [in] | y | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
Determine if the local portion of two vectors are equal using an absolute tolerance.
| [in] | x | a vector |
| [in] | y | a vector |
| [in] | tol | Tolerance of comparison |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtualinherited |
Return local discrete \( L_1 \) -norm of this vector.
Returns
\[\sum_i |x_i|\]
| [in] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
Return local discrete \( L_1 \) -norm of this vector.
Returns
\[\sum_i |x_i|\]
| [in] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtualinherited |
Return local discrete \( L_2 \) -norm of this vector.
Returns
\[\sqrt{\sum_i x_i^2}\]
| [in] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
Return local discrete \( L_2 \) -norm of this vector.
Returns
\[\sqrt{\sum_i x_i^2}\]
| [in] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
Return the local maximum value of the vector. \(\max_i x_i\).
| [in] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtualinherited |
Return the local \( L_\infty \) -norm of this vector.
Returns
\[\max_i |x_i|\]
| [in] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
Return the local \( L_\infty \) -norm of this vector.
Returns
\[\max_i |x_i|\]
| [in] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
Return the local minimum value of the vector. \(\min_i x_i\).
| [in] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
Returns the local minimum of the quotient of two vectors:
\[\min_{i,y_i\neq0} x_i/y_i\]
| [in] | x | a vector |
| [in] | y | a vector |
\[\min_{i,y_i\neq0} x_i/y_i\]
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
Return the local sum of the vector.
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
Return a weighted norm of a vector.
| [in] | x | a vector |
| [in] | y | a vector |
\[\sqrt{\frac{\displaystyle \sum_i x^2_i y^2_i}{n}}\]
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
Return a weighted norm of a subset of a vector.
| [in] | x | a vector |
| [in] | y | a vector |
| [in] | mask | a vector |
\[\sqrt{\frac{\displaystyle \sum_{i,\mathit{mask}_i>0} y^2_iy^2_i}{n}}\]
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Return the maximum value of the vector. \(\max_i x_i\).
| [in] | x | a vector |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Return the maximum value of the vector. \(\max_i x_i\).
| [in] | x | a vector |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
virtual |
Return the \( L_\infty \) -norm of this vector.
Returns
\[\max_i |x_i|\]
| [in] | x | a vector |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Return the \( L_\infty \) -norm of this vector.
Returns
\[\max_i |x_i|\]
| [in] | x | a vector |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
inherited |
Return the mean of the values of the vector.
| [in] | x | a vector |
|
virtual |
Return the minimum value of the vector. \(\min_i x_i\).
| [in] | x | a vector |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Return the minimum value of the vector. \(\min_i x_i\).
| [in] | x | a vector |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
virtual |
Returns the minimum of the quotient of two vectors:
\[\min_{i,y_i\neq0} x_i/x_i\]
| [in] | x | a vector |
| [in] | y | a vector |
\[\min_{i,y_i\neq0} x_i/y_i\]
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Component-wise multiply one vector with another. For Vectors, \(z_i = x_i y_i\).
| [in] | x | Input vector x |
| [in] | y | Input vector y |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Component-wise multiply one vector with another. For Vectors, \(z_i = x_i y_i\).
| [in] | x | Input vector x |
| [in] | y | Input vector y |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Component-wise multiply one vector with another. For Vectors, \(z_i = x_i y_i\).
| [in] | x | Input vector x |
| [in] | y | Input vector y |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set this to the component-wise reciprocal of a vector. \(y_i = 1/x_i\).
| x | a vector |
| y | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set this to the component-wise reciprocal of a vector. \(y_i = 1/x_i\).
| x | a vector |
| y | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Set this to the component-wise reciprocal of a vector. \(y_i = 1/x_i\).
| x | a vector |
| y | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
Register any child objects.
This function will register child objects with the manager
| manager | Restart manager |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set vector equal to scaled input. For Vectors, \(y_i = \alpha x_i\).
| [in] | alpha | a scalar |
| [in] | x | a vector |
| [out] | y | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set vector equal to scaled input. For Vectors, \(y_i = \alpha x_i\).
| [in] | alpha | a scalar |
| [in] | x | a vector |
| [out] | y | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Set vector equal to scaled input. For Vectors, \(y_i = \alpha x_i\).
| [in] | alpha | a scalar |
| [in] | x | a vector |
| [out] | y | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Scale a vector. For Vectors, \(x_i = \alpha x_i\).
| [in] | alpha | a scalar |
| [in,out] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Scale a vector. For Vectors, \(x_i = \alpha x_i\).
| [in] | alpha | a scalar |
| [in,out] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Scale a vector. For Vectors, \(x_i = \alpha x_i\).
| [in] | alpha | a scalar |
| [in,out] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
modify vector to set \(x_i = max(x_i, val)\).
| [in] | x | a vector |
| [in] | val | a scalar |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtualinherited |
modify vector to set \(x_i = max(x_i, val)\).
| [in] | x | a vector |
| [in] | val | a scalar |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtualinherited |
modify vector to set \(x_i = min(x_i, val)\).
| [in] | x | a vector |
| [in] | val | a scalar |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtualinherited |
modify vector to set \(x_i = min(x_i, val)\).
| [in] | x | a vector |
| [in] | val | a scalar |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set data in this vector to random values.
| [out] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set data in this vector to random values.
| [out] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Set data in this vector to random values.
| [out] | x | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set all compenents of a vector to a scalar. For Vectors, the components of z are set to \(\alpha\).
| [in] | alpha | scalar value |
| [out] | z | a vector |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Subtracts one vector from another. For Vectors, \(z_i = x_i - y_i\).
| [in] | x | Input vector x |
| [in] | y | Input vector y |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Subtracts one vector from another. For Vectors, \(z_i = x_i - y_i\).
| [in] | x | Input vector x |
| [in] | y | Input vector y |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtual |
Subtracts one vector from another. For Vectors, \(z_i = x_i - y_i\).
| [in] | x | Input vector x |
| [in] | y | Input vector y |
| [out] | z | Output vector z |
Implements AMP::LinearAlgebra::VectorOperations.
|
virtualinherited |
Return the sum of the values of the vector.
| [in] | x | a vector |
|
inlineoverridevirtual |
Get the type name.
Implements AMP::LinearAlgebra::VectorOperations.
Definition at line 23 of file ManagedVectorOperations.h.
|
overridevirtualinherited |
Write restart data to file.
This function will write the mesh to an HDF5 file
| fid | File identifier to write |
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
virtual |
Return a weighted norm of a vector.
| [in] | x | a vector |
| [in] | y | a vector |
\[\sqrt{\frac{\displaystyle \sum_i x^2_iy^2_i}{n}}\]
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
virtual |
Return a weighted norm of a subset of a vector.
| [in] | x | a vector |
| [in] | y | a vector |
| [in] | mask | a vector |
\[\sqrt{\frac{\displaystyle \sum_{i,\mathit{mask}_i>0} x^2_iy^2_i}{n}}\]
Reimplemented from AMP::LinearAlgebra::VectorOperations.
|
overridevirtual |
Set vector entries (including ghosts) to zero.
This is equivalent (but more efficient) to calling setToScalar ( 0.0 ) followed by a makeConsistent(SET)
Implements AMP::LinearAlgebra::VectorOperations.
|
protectedinherited |
Definition at line 399 of file VectorOperations.h.
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:42. Comments on this page |