template<typename V, size_t Size1, size_t Size2, bool InitPadding>
class Vc::Common::Memory< V, Size1, Size2, InitPadding >
A helper class for fixed-size two-dimensional arrays.
- Parameters
-
| V | The vector type you want to operate on. (e.g. float_v or uint_v) |
| Size1 | Number of rows |
| Size2 | Number of columns |
Definition at line 67 of file memory.h.
|
| template<typename Parent, typename RM> |
| Memory & | operator= (const MemoryBase< V, Parent, 2, RM > &rhs) |
| | Copies the data from a different object.
|
| Memory & | operator= (const V &v) |
| | Initialize all data with the given vector.
|
| std::enable_if<!std::is_convertible< Flags, int >::value, vector_reference< Flags > >::type | vector (size_t i, Flags=Flags()) |
| std::enable_if<!std::is_convertible< Flags, int >::value, const_vector_reference< Flags > >::type | vector (size_t i, Flags=Flags()) const |
| | Const overload of the above function.
|
| std::enable_if< std::is_convertible< ShiftT, int >::value, vector_reference< decltype(std::declval< Flags >()|Unaligned)> >::type | vector (size_t i, ShiftT shift, Flags=Flags()) |
|
std::enable_if< std::is_convertible< ShiftT, int >::value, const_vector_reference< decltype(std::declval< Flags >()|Unaligned)> >::type | vector (size_t i, ShiftT shift, Flags=Flags()) const |
| | Const overload of the above function.
|
| size_t | entriesCount () const |
| size_t | vectorsCount () const |
|
MemoryVectorIterator< V, Flags > | begin (Flags flags=Flags()) |
| | Return a (vectorized) iterator to the start of this memory object.
|
|
MemoryVectorIterator< V, Flags > | end (Flags flags=Flags()) |
| | Return a (vectorized) iterator to the end of this memory object.
|
| vector_reference< Flags > | vectorAt (size_t i, Flags flags=Flags()) |
| vector_reference< Flags > | firstVector (Flags f=Flags()) |
| vector_reference< Flags > | lastVector (Flags f=Flags()) |
|
void | setZero () |
| | Zero the whole memory area.
|
|
Memory< V, Size1, Size2, InitPadding > & | operator+= (const MemoryBase< V, P2, Dimension, RM > &rhs) |
| | (Inefficient) shorthand to add up two arrays.
|
|
Memory< V, Size1, Size2, InitPadding > & | operator-= (const MemoryBase< V, P2, Dimension, RM > &rhs) |
| | (Inefficient) shorthand to subtract two arrays.
|
|
Memory< V, Size1, Size2, InitPadding > & | operator*= (const MemoryBase< V, P2, Dimension, RM > &rhs) |
| | (Inefficient) shorthand to multiply two arrays.
|
|
Memory< V, Size1, Size2, InitPadding > & | operator/= (const MemoryBase< V, P2, Dimension, RM > &rhs) |
| | (Inefficient) shorthand to divide two arrays.
|
|
bool | operator== (const MemoryBase< V, P2, Dimension, RM > &rhs) const |
| | (Inefficient) shorthand compare equality of two arrays.
|
|
bool | operator!= (const MemoryBase< V, P2, Dimension, RM > &rhs) const |
| | (Inefficient) shorthand compare two arrays.
|
|
bool | operator< (const MemoryBase< V, P2, Dimension, RM > &rhs) const |
| | (Inefficient) shorthand compare two arrays.
|
|
bool | operator<= (const MemoryBase< V, P2, Dimension, RM > &rhs) const |
| | (Inefficient) shorthand compare two arrays.
|
|
bool | operator> (const MemoryBase< V, P2, Dimension, RM > &rhs) const |
| | (Inefficient) shorthand compare two arrays.
|
|
bool | operator>= (const MemoryBase< V, P2, Dimension, RM > &rhs) const |
| | (Inefficient) shorthand compare two arrays.
|