|
constexpr | Vector () any_platform |
|
constexpr | Vector (const Vector &rhs) any_platform |
|
constexpr | Vector (Vector &&rhs) any_platform |
|
template<typename W , typename IMPL > |
constexpr | Vector (const ScalarVector< W, D, IMPL > &rhs) any_platform |
|
template<typename... I, typename std::enable_if_t<(sizeof...(I) > 1 &&(meta::is_arithmetic< I >::value &&...) &&sizeof...(I)==D), int > = 0> |
constexpr | Vector (I... indexes) any_platform |
|
template<typename U > |
constexpr | Vector (const U *v) any_platform |
|
constexpr | Vector (const std::vector< T > &v) |
|
constexpr | Vector (std::initializer_list< T > v) |
|
constexpr | Vector (T scalar) any_platform |
|
template<typename F , typename = decltype(std::declval<F&>()(std::size_t{0}))> |
constexpr | Vector (F &&f) any_platform |
| Construct with entries given by a lambda expression.
|
|
template<typename U , typename IMPL_ > |
constexpr Vector & | operator= (const GenericVector< U, D, IMPL_ > &rhs) any_platform |
|
constexpr Vector & | operator= (const Vector &rhs) any_platform |
|
constexpr Vector & | operator= (const Vector &&rhs) any_platform |
|
constexpr const T * | data () const any_platform |
|
constexpr T * | data () any_platform |
|
constexpr auto | begin () |
|
constexpr auto | end () |
|
constexpr int | getDim () const any_platform |
|
constexpr Vector< T, D+1 > | withPrefix (T prefix) const any_platform |
|
constexpr std::size_t | getNblock () const |
|
constexpr std::size_t | getSerializableSize () const |
|
bool * | getBlock (std::size_t iBlock, std::size_t &sizeBlock, bool loadingMode) |
|
constexpr | ScalarVector ()=default |
|
| ScalarVector (const ScalarVector &)=delete |
|
| ScalarVector (ScalarVector &&)=delete |
|
constexpr | GenericVector ()=default |
|
| GenericVector (const GenericVector &)=delete |
|
| GenericVector (GenericVector &&)=delete |
|
GenericVector & | operator= (GenericVector &&rhs)=delete |
|
constexpr const T & | operator[] (unsigned iDim) const any_platform |
|
constexpr T & | operator[] (unsigned iDim) any_platform |
|
template<typename IMPL_ > |
constexpr IMPL & | operator= (const GenericVector< T, D, IMPL_ > &rhs) any_platform |
|
template<typename U , typename IMPL_ > |
constexpr IMPL & | operator+= (const GenericVector< U, D, IMPL_ > &rhs) any_platform |
|
template<typename IMPL_ > |
constexpr IMPL & | operator-= (const GenericVector< T, D, IMPL_ > &rhs) any_platform |
|
template<typename U , typename IMPL_ > |
constexpr IMPL & | operator*= (const GenericVector< U, D, IMPL_ > &rhs) any_platform |
|
template<typename U > |
constexpr meta::enable_if_arithmetic_t< U, IMPL & > | operator+= (const U &rhs) any_platform |
|
template<typename U > |
constexpr meta::enable_if_arithmetic_t< U, IMPL & > | operator-= (const U &rhs) any_platform |
|
template<typename U > |
constexpr meta::enable_if_arithmetic_t< U, IMPL & > | operator*= (const U &rhs) any_platform |
|
template<typename U > |
constexpr meta::enable_if_arithmetic_t< U, IMPL & > | operator/= (const U &rhs) any_platform |
|
template<typename IMPL_ > |
constexpr bool | operator== (const GenericVector< T, D, IMPL_ > &rhs) const any_platform |
|
template<typename IMPL_ > |
constexpr bool | operator!= (const GenericVector< T, D, IMPL_ > &rhs) const any_platform |
|
template<typename T, unsigned D>
class olb::Vector< T, D >
Plain old scalar vector.
Definition at line 47 of file vector.h.
template<typename T , unsigned D>
template<typename F , typename = decltype(std::declval<F&>()(std::size_t{0}))>
Construct with entries given by a lambda expression.
Definition at line 129 of file vector.h.
130 {
131 for (unsigned iDim=0; iDim < D; ++iDim) {
132 _data[iDim] = f(iDim);
133 }
134 }