![]() |
Peano
|
#include <numvec.h>
Public Member Functions | |
NumVec ()=default | |
NumVec (T val) | |
NumVec (std::initializer_list< T > list) | |
NumVec (const T(&list)[LENGTH]) | |
NumVec (const NumVec &other) | |
template<typename... Args> | |
NumVec (T arg0, Args... args) | |
bool | operator== (const NumVec &other) const |
bool | operator!= (const NumVec &other) const |
bool | operator> (const NumVec &other) const |
bool | operator>= (const NumVec &other) const |
bool | operator< (const NumVec &other) const |
bool | operator<= (const NumVec &other) const |
T & | operator[] (u32 idx) |
const T & | operator[] (u32 idx) const |
bool | eq (const NumVec &other, const T eps=std::numeric_limits< T >::epsilon()) const |
T | sum () const |
T | prod () const |
NumVec | floor () const |
NumVec | ceil () const |
NumVec | abs () const |
NumVec | pow (float pow) const |
template<typename Q > | |
NumVec< Q, LENGTH > | castAs () const |
Static Public Member Functions | |
static constexpr u32 | size () |
Private Member Functions | |
template<u64 idx> | |
void | init (T arg0) |
template<u64 idx, typename... Args> | |
void | init (T arg0, Args... args) |
Private Attributes | |
T | vec [LENGTH] |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const NumVec &value) |
Referenced by NumVec< T, LENGTH >::abs(), NumVec< T, LENGTH >::ceil(), NumVec< T, LENGTH >::eq(), NumVec< T, LENGTH >::floor(), and NumVec< T, LENGTH >::pow().
Definition at line 37 of file numvec.h.
References NumVec< T, LENGTH >::vec.
Definition at line 191 of file numvec.h.
References std::abs(), and NumVec< T, LENGTH >::NumVec().
Definition at line 185 of file numvec.h.
References NumVec< T, LENGTH >::NumVec().
bool NumVec< T, LENGTH >::eq | ( | const NumVec< T, LENGTH > & | other, |
const T | eps = std::numeric_limits<T>::epsilon() ) const |
Definition at line 163 of file numvec.h.
References NumVec< T, LENGTH >::NumVec().
Definition at line 179 of file numvec.h.
References NumVec< T, LENGTH >::NumVec().
bool NumVec< T, LENGTH >::operator< | ( | const NumVec< T, LENGTH > & | other | ) | const |
Definition at line 93 of file numvec.h.
References NumVec< T, LENGTH >::vec.
bool NumVec< T, LENGTH >::operator<= | ( | const NumVec< T, LENGTH > & | other | ) | const |
Definition at line 100 of file numvec.h.
References NumVec< T, LENGTH >::vec.
bool NumVec< T, LENGTH >::operator== | ( | const NumVec< T, LENGTH > & | other | ) | const |
Definition at line 65 of file numvec.h.
References NumVec< T, LENGTH >::vec.
bool NumVec< T, LENGTH >::operator> | ( | const NumVec< T, LENGTH > & | other | ) | const |
Definition at line 79 of file numvec.h.
References NumVec< T, LENGTH >::vec.
bool NumVec< T, LENGTH >::operator>= | ( | const NumVec< T, LENGTH > & | other | ) | const |
Definition at line 86 of file numvec.h.
References NumVec< T, LENGTH >::vec.
Definition at line 197 of file numvec.h.
References NumVec< T, LENGTH >::NumVec(), and NumVec< T, LENGTH >::pow().
Referenced by NumVec< T, LENGTH >::pow().
|
staticconstexpr |
Definition at line 43 of file numvec.h.
Referenced by peano4.visualisation.input.Patch.Patch::__repr__(), kernel_impl.Enumerator::fetch(), kernel_impl.Enumerator::lower(), and kernel_impl.Enumerator::upper().
Definition at line 15 of file numvec.h.
Referenced by NumVec< T, LENGTH >::NumVec(), NumVec< T, LENGTH >::operator<(), NumVec< T, LENGTH >::operator<=(), NumVec< T, LENGTH >::operator==(), NumVec< T, LENGTH >::operator>(), and NumVec< T, LENGTH >::operator>=().