Schnek
schnek::Vector< T, length, CheckingPolicy > Class Template Reference
Inheritance diagram for schnek::Vector< T, length, CheckingPolicy >:
Collaboration diagram for schnek::Vector< T, length, CheckingPolicy >:

Additional Inherited Members

- Public Types inherited from schnek::Array< T, length, CheckingPolicy >
typedef T value_type
 
- Public Member Functions inherited from schnek::Array< T, length, CheckingPolicy >
SCHNEK_INLINE Array ()
 The default constructor.
 
SCHNEK_INLINE Array (const Array< T, Length, CheckingPolicy2 > &)
 Copy constructor copies the values.
 
SCHNEK_INLINE Array (const ArrayExpression< Operator, Length > &)
 Construct using an array expression.
 
SCHNEK_INLINE Array (const T &)
 Construct using an initializer list. More...
 
SCHNEK_INLINE Array (const T &, const T &)
 Constructor for length=2 arrays setting the data explicitely.
 
SCHNEK_INLINE Array (const T &, const T &, const T &)
 Constructor for length=3 arrays setting the data explicitely.
 
SCHNEK_INLINE Array (const T &, const T &, const T &, const T &)
 Constructor for length=4 arrays setting the data explicitely.
 
SCHNEK_INLINE Array (const T &, const T &, const T &, const T &, const T &)
 Constructor for length=5 arrays setting the data explicitely.
 
SCHNEK_INLINE Array (const T &, const T &, const T &, const T &, const T &, const T &)
 Constructor for length=6 arrays setting the data explicitely.
 
SCHNEK_INLINE Array (const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 Constructor for length=7 arrays setting the data explicitely.
 
SCHNEK_INLINE Array (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 Constructor for length=8 arrays setting the data explicitely.
 
SCHNEK_INLINE Array (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 Constructor for length=9 arrays setting the data explicitely.
 
SCHNEK_INLINE Array (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 Constructor for length=10 arrays setting the data explicitely.
 
SCHNEK_INLINE T & operator[] (size_t)
 Accessor operator.
 
SCHNEK_INLINE T operator[] (size_t) const
 Constant accessor operator.
 
SCHNEK_INLINE T & at (size_t)
 Accessor operator.
 
SCHNEK_INLINE T at (size_t) const
 Constant accessor operator.
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator= (const Array< T2, Length, CheckingPolicy2 > &)
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator= (const ArrayExpression< Operator, Length > &)
 Assignment operator using an array expression.
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator+= (const Array< T2, Length, CheckingPolicy2 > &)
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator+= (const T2)
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator+= (const ArrayExpression< Operator, Length > &)
 Addition Assignment operator using an array expression.
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator*= (const Array< T2, Length, CheckingPolicy2 > &)
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator*= (const T2)
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator*= (const ArrayExpression< Operator, Length > &)
 Element-wise multiplication assignment operator using an array expression.
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator/= (const Array< T2, Length, CheckingPolicy2 > &)
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator/= (const T2)
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator/= (const ArrayExpression< Operator, Length > &)
 Element-wise multiplication assignment operator using an array expression.
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator-= (const Array< T2, Length, CheckingPolicy2 > &)
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator-= (const T2)
 
SCHNEK_INLINE Array< T, Length, CheckingPolicy > & operator-= (const ArrayExpression< Operator, Length > &)
 Subtraction Assignment operator using an array expression.
 
Array< T, Length, CheckingPolicy > & clear ()
 Sets all fields to zero.
 
Array< T, Length, CheckingPolicy > & fill (const T &)
 Fills all fields with a given value.
 
Array< T, destLength, CheckingPolicy > project () const
 projects the Array onto an Array of shorter length
 
Array< T, Length-1, CheckingPolicy > projectDim (size_t dim) const
 
product () const
 Returns the product of all elements.
 
sum () const
 Returns the sum of all elements.
 
sqr () const
 Returns the sum of squares of all elements.
 
- Static Public Member Functions inherited from schnek::Array< T, length, CheckingPolicy >
static Array< T, Length, CheckingPolicy > Zero ()
 
static Array< T, Length, CheckingPolicy > Ones ()
 
- Static Public Attributes inherited from schnek::Array< T, length, CheckingPolicy >
static constexpr size_t length
 

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