35 #ifndef NEKTAR_LIB_UTILITIES_NEK_VECTOR_HPP 36 #define NEKTAR_LIB_UTILITIES_NEK_VECTOR_HPP 50 #include <type_traits> 51 #include <boost/call_traits.hpp> 55 template<
typename DataType>
72 typename boost::call_traits<DataType>::const_reference
y,
73 typename boost::call_traits<DataType>::const_reference
z);
188 template<
typename DataType>
193 template<
typename DataType>
198 template<
typename DataType>
202 template<
typename DataType>
213 template<
typename ResultDataType,
typename InputDataType>
218 template<
typename ResultDataType,
typename InputDataType>
223 template<
typename ResultDataType,
typename InputDataType>
227 template<
typename ResultDataType,
typename InputDataType>
231 template<
typename DataType>
240 template<
typename ResultDataType,
typename InputDataType>
245 template<
typename ResultDataType>
249 template<
typename DataType>
255 template<
typename ResultDataType,
typename InputDataType>
260 template<
typename ResultDataType,
typename InputDataType>
264 template<
typename DataType,
typename InputDataType>
269 template<
typename ResultDataType,
typename InputDataType>
274 template<
typename ResultDataType>
278 template<
typename DataType>
283 template<
typename ResultDataType,
typename InputDataType>
288 template<
typename ResultDataType,
typename InputDataType>
293 template<
typename DataType>
298 template<
typename DataType>
305 template<
typename DataType>
312 template<
typename DataType>
319 template<
typename DataType>
326 template<
typename DataType>
330 return Add(lhs, rhs);
333 template<
typename DataType>
340 template<
typename DataType>
343 template<
typename DataType>
346 template<
typename DataType>
349 template<
typename DataType>
352 template<
typename DataType>
355 template<
typename DataType>
358 template<
typename DataType>
362 template<
typename DataType>
366 template<
typename DataType>
369 template<
typename DataType>
372 template<
typename DataType>
375 template<
typename DataType>
378 template<
typename DataType>
384 template<
typename DataType>
387 template<
typename DataType>
390 template<
typename DataType>
395 #endif // NEKTAR_LIB_UTILITIES_NEK_VECTOR_HPP NekVector()
Creates an empty vector.
void SetData(const Array< OneD, DataType > &newData)
void SubtractNegatedLhs(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< LhsDataType, LhsMatrixType > &lhs, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
boost::call_traits< DataType >::reference operator[](unsigned int i)
Array< OneD, DataType > m_data
boost::call_traits< DataType >::reference x()
void SetZ(typename boost::call_traits< DataType >::const_reference val)
void SetX(typename boost::call_traits< DataType >::const_reference val)
NekVector< DataType > & operator/=(typename boost::call_traits< DataType >::const_reference rhs)
void MultiplyEqual(NekMatrix< LhsDataType, StandardMatrixTag > &lhs, typename boost::call_traits< LhsDataType >::const_reference rhs)
void SetWrapperType(PointerWrapper p)
NekVector< DataType > createVectorFromPoints(const NekPoint< DataType > &source, const NekPoint< DataType > &dest)
void SetY(typename boost::call_traits< DataType >::const_reference val)
void Resize(unsigned int newSize)
void MultiplyInvertedLhs(NekVector< ResultDataType > &result, const NekDouble &lhs, const NekVector< InputDataType > &rhs)
bool operator==(const Array< OneD, NekDouble > &lhs, const Array< OneD, NekDouble > &rhs)
const DataType * const_iterator
DataType Dot(const NekVector< DataType > &rhs) const
RhsMatrixType void AddEqual(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
void DivideEqual(NekVector< ResultDataType > &result, const NekDouble &rhs)
void Multiply(NekMatrix< ResultDataType, StandardMatrixTag > &result, const NekMatrix< LhsDataType, LhsMatrixType > &lhs, const ResultDataType &rhs)
NekVector< DataType > & operator-=(const NekVector< DataType > &rhs)
void AddEqualNegatedLhs(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
NekPoint< DataType > findPointAlongVector(const NekVector< DataType > &lhs, const DataType &t)
void Divide(NekVector< ResultDataType > &result, const NekVector< InputDataType > &lhs, const NekDouble &rhs)
NekVector< DataType > & operator*=(typename boost::call_traits< DataType >::const_reference rhs)
DNekMat void SubtractEqual(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
NekPoint< DataType > operator/(const NekPoint< DataType > &lhs, typename boost::call_traits< DataType >::param_type rhs)
std::string AsString() const
NekVector< DataType > operator*(const NekMatrix< LhsDataType, MatrixType > &lhs, const NekVector< DataType > &rhs)
NekVector< DataType > & operator+=(const NekVector< DataType > &rhs)
void SubtractEqualNegatedLhs(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
bool operator!=(const Array< OneD, T1 > &lhs, const Array< OneD, T2 > &rhs)
boost::call_traits< DataType >::reference operator()(unsigned int i)
Returns i^{th} element.
#define LIB_UTILITIES_EXPORT
NekVector< DataType > operator-() const
PointerWrapper GetWrapperType() const
std::vector< DataType > FromString(const std::string &str)
DataType Magnitude() const
PointerWrapper
Specifies if the pointer passed to a NekMatrix or NekVector is copied into an internal representation...
Array< OneD, DataType > & GetData()
void AddNegatedLhs(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< LhsDataType, LhsMatrixType > &lhs, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
boost::call_traits< DataType >::reference z()
DataType InfinityNorm() const
NekVector< DataType > Cross(const NekVector< DataType > &rhs) const
NekVector< DataType > Negate(const NekVector< DataType > &v)
DNekMat void Add(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< LhsDataType, LhsMatrixType > &lhs, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
unsigned int GetDimension() const
Returns the number of dimensions for the point.
PointerWrapper m_wrapperType
boost::call_traits< DataType >::reference y()
StandardMatrixTag boost::call_traits< LhsDataType >::const_reference rhs
unsigned int GetRows() const
void InvertInPlace(NekDouble &v)
NekVector< DataType > & operator=(const NekVector< DataType > &rhs)
RhsMatrixType void Subtract(NekMatrix< DataType, StandardMatrixTag > &result, const NekMatrix< LhsDataType, LhsMatrixType > &lhs, const NekMatrix< RhsDataType, RhsMatrixType > &rhs)
1D Array of constant elements with garbage collection and bounds checking.
void NegateInPlace(NekVector< DataType > &v)
Array< OneD, DataType > operator+(const Array< OneD, DataType > &lhs, size_t offset)
Array< OneD, DataType > & GetPtr()
void SetSize(unsigned int s)