mf
Media Framework
|
Vector of n-dimensional coordinates. More...
#include <ndcoord.h>
Public Types | |
using | value_type = T |
using | reference = T & |
using | const_reference = const T & |
using | iterator = typename std::array< T, Dim >::iterator |
using | const_iterator = typename std::array< T, Dim >::const_iterator |
using | size_type = std::size_t |
using | difference_type = std::ptrdiff_t |
Public Member Functions | |
ndcoord (T value=0) noexcept | |
template<typename It > | |
ndcoord (It begin, It end) | |
ndcoord (std::initializer_list< T > l) noexcept | |
ndcoord (const ndcoord &)=default | |
template<typename T2 > | |
ndcoord (const ndcoord< Dim, T2 > &coord) | |
T & | operator[] (std::ptrdiff_t i) noexcept |
const T & | operator[] (std::ptrdiff_t i) const noexcept |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
const_iterator | cbegin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
const_iterator | cend () const noexcept |
size_type | size () const noexcept |
template<typename Unary > | |
ndcoord & | transform_inplace (Unary fct) |
template<typename Binary > | |
ndcoord & | transform_inplace (const ndcoord &c, Binary fct) |
ndcoord & | operator+= (const ndcoord &c) noexcept |
ndcoord & | operator-= (const ndcoord &c) noexcept |
ndcoord & | operator*= (const ndcoord &c) noexcept |
ndcoord & | operator/= (const ndcoord &c) noexcept |
ndcoord & | operator*= (T val) noexcept |
ndcoord & | operator/= (T val) noexcept |
ndcoord | operator+ () noexcept |
ndcoord | operator- () noexcept |
T | product () const noexcept |
const T & | front () const noexcept |
T & | front () noexcept |
const T & | back () const noexcept |
T & | back () noexcept |
template<std::size_t Section_dim = Dim - 1> | |
auto | tail () const noexcept |
template<std::size_t Section_dim = Dim - 1> | |
auto | head () const noexcept |
ndcoord< Dim-1, T > | erase (std::ptrdiff_t i) const noexcept |
Friends | |
ndcoord | operator+ (const ndcoord &a, const ndcoord &b) noexcept |
ndcoord | operator- (const ndcoord &a, const ndcoord &b) noexcept |
ndcoord | operator* (const ndcoord &a, const ndcoord &b) noexcept |
ndcoord | operator/ (const ndcoord &a, const ndcoord &b) noexcept |
ndcoord | operator* (const ndcoord &a, T val) noexcept |
ndcoord | operator/ (const ndcoord &a, T val) noexcept |
bool | operator== (const ndcoord &a, const ndcoord &b) noexcept |
bool | operator!= (const ndcoord &a, const ndcoord &b) noexcept |
Vector of n-dimensional coordinates.
Vector of size Dim
with items of arithmetic type T
. Used mainly for coordinates of ndarray_view
. For real-values vectors expressing positions or directions in space, the Eigen
vector types are used instead.
using mf::ndcoord< Dim, T >::const_iterator = typename std::array<T, Dim>::const_iterator |
using mf::ndcoord< Dim, T >::const_reference = const T& |
using mf::ndcoord< Dim, T >::difference_type = std::ptrdiff_t |
using mf::ndcoord< Dim, T >::iterator = typename std::array<T, Dim>::iterator |
using mf::ndcoord< Dim, T >::reference = T& |
using mf::ndcoord< Dim, T >::size_type = std::size_t |
using mf::ndcoord< Dim, T >::value_type = T |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
default |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |