35#ifndef NEKTAR_LIB_UTILITIES_NEK_VECTOR_HPP
36#define NEKTAR_LIB_UTILITIES_NEK_VECTOR_HPP
75 const DataType *
const ptr);
192template <
typename DataType>
197template <
typename DataType>
202template <
typename DataType>
206template <
typename DataType>
210template <
typename LhsDataType,
typename RhsDataType>
214template <
typename ResultDataType,
typename InputDataType>
219template <
typename ResultDataType,
typename InputDataType>
224template <
typename ResultDataType,
typename InputDataType>
228template <
typename ResultDataType,
typename InputDataType>
232template <
typename DataType>
236template <
typename ResultDataType,
typename InputDataType>
241template <
typename ResultDataType>
245template <
typename DataType>
249template <
typename ResultDataType,
typename InputDataType>
254template <
typename ResultDataType,
typename InputDataType>
258template <
typename DataType,
typename InputDataType>
262template <
typename ResultDataType,
typename InputDataType>
267template <
typename ResultDataType>
271template <
typename DataType>
275template <
typename ResultDataType,
typename InputDataType>
280template <
typename ResultDataType,
typename InputDataType>
285template <
typename DataType>
289template <
typename DataType>
296template <
typename DataType>
303template <
typename DataType>
310template <
typename DataType>
317template <
typename DataType>
321 return Add(lhs, rhs);
324template <
typename DataType>
331template <
typename DataType>
333 const NekVector<DataType> &rhs);
335template <
typename DataType>
337 const NekPoint<DataType> &source,
const NekPoint<DataType> &dest);
339template <
typename DataType>
341 const NekVector<DataType> &lhs,
const DataType &t);
343template <
typename DataType>
345 const NekVector<DataType> &rhs);
347template <
typename DataType>
349 const NekVector<DataType> &rhs);
351template <
typename DataType>
354template <
typename DataType>
356 const NekVector<DataType> &rhs);
358template <
typename DataType>
362template <
typename DataType>
365template <
typename DataType>
368template <
typename DataType>
371template <
typename DataType>
374template <
typename DataType>
380template <
typename DataType>
383template <
typename DataType>
385 const NekVector<DataType> &rhs);
386template <
typename DataType>
#define LIB_UTILITIES_EXPORT
void SetWrapperType(PointerWrapper p)
Array< OneD, DataType > & GetData()
NekVector< DataType > Cross(const NekVector< DataType > &rhs) const
Array< OneD, DataType > & GetPtr()
unsigned int GetDimension() const
Returns the number of dimensions for the point.
NekVector< DataType > & operator/=(const DataType &rhs)
NekVector< DataType > & operator+=(const NekVector< DataType > &rhs)
NekVector< DataType > & operator=(const NekVector< DataType > &rhs)
PointerWrapper GetWrapperType() const
void SetZ(const DataType &val)
void SetY(const DataType &val)
Array< OneD, DataType > m_data
void Resize(unsigned int newSize)
void SetX(const DataType &val)
PointerWrapper m_wrapperType
DataType Dot(const NekVector< DataType > &rhs) const
unsigned int GetRows() const
std::string AsString() const
void SetSize(unsigned int s)
const DataType * const_iterator
NekVector< DataType > & operator*=(const DataType &rhs)
DataType & operator()(unsigned int i)
Returns i^{th} element.
DataType & operator[](unsigned int i)
DataType InfinityNorm() const
DataType Magnitude() const
NekVector< DataType > & operator-=(const NekVector< DataType > &rhs)
NekVector()
Creates an empty vector.
void SetData(const Array< OneD, DataType > &newData)
NekVector< DataType > operator-() const
std::ostream & operator<<(std::ostream &os, const BasisKey &rhs)
void Normalize(NekVector< DataType > &v)
std::string AsString(const NekVector< DataType > &v)
bool operator==(const Array< OneD, T1 > &lhs, const Array< OneD, T2 > &rhs)
void InvertInPlace(NekDouble &v)
SNekMat SNekMat void SubtractEqual(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
NekMatrix< typename NekMatrix< LhsDataType, LhsMatrixType >::NumberType, StandardMatrixTag > operator-(const NekMatrix< LhsDataType, LhsMatrixType > &lhs, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
void MultiplyInvertedLhs(NekVector< ResultDataType > &result, const NekDouble &lhs, const NekVector< InputDataType > &rhs)
void AddEqualNegatedLhs(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
SNekMat void AddEqual(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
DataType InfinityNorm(const NekVector< DataType > &v)
void Divide(NekVector< ResultDataType > &result, const NekVector< InputDataType > &lhs, const NekDouble &rhs)
NekVector< DataType > Negate(const NekVector< DataType > &v)
void Subtract(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< LhsDataType, LhsMatrixType > &lhs, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
NekPoint< DataType > operator/(const NekPoint< DataType > &lhs, const typename NekPoint< DataType >::DataType rhs)
std::vector< DataType > FromString(const std::string &str)
Array< OneD, DataType > operator+(const Array< OneD, DataType > &lhs, typename Array< OneD, DataType >::size_type offset)
void Multiply(NekMatrix< ResultDataType, StandardMatrixTag > &result, const NekMatrix< LhsDataType, LhsMatrixType > &lhs, const ResultDataType &rhs)
NekVector< DataType > operator*(const NekMatrix< LhsDataType, MatrixType > &lhs, const NekVector< DataType > &rhs)
void DivideEqual(NekVector< ResultDataType > &result, const NekDouble &rhs)
NekVector< DataType > createVectorFromPoints(const NekPoint< DataType > &source, const NekPoint< DataType > &dest)
void AddNegatedLhs(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< LhsDataType, LhsMatrixType > &lhs, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
void SubtractEqualNegatedLhs(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
void NegateInPlace(NekVector< DataType > &v)
DataType Magnitude(const NekVector< DataType > &v)
NekVector< DataType > Cross(const NekVector< DataType > &lhs, const NekVector< DataType > &rhs)
void SubtractNegatedLhs(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< LhsDataType, LhsMatrixType > &lhs, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
DataType L2Norm(const NekVector< DataType > &v)
DataType L1Norm(const NekVector< DataType > &v)
NekPoint< DataType > findPointAlongVector(const NekVector< DataType > &lhs, const DataType &t)
const NekSingle void MultiplyEqual(NekMatrix< LhsDataType, StandardMatrixTag > &lhs, const typename NekMatrix< LhsDataType, StandardMatrixTag >::NumberType &rhs)
bool operator!=(const Array< OneD, T1 > &lhs, const Array< OneD, T2 > &rhs)
PointerWrapper
Specifies if the pointer passed to a NekMatrix or NekVector is copied into an internal representation...
SNekMat SNekMat void Add(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< LhsDataType, LhsMatrixType > &lhs, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
DataType Dot(const NekVector< DataType > &lhs, const NekVector< DataType > &rhs)