1 #ifndef MF_NDARRAY_GENERIC_H_
2 #define MF_NDARRAY_GENERIC_H_
6 #include "../ndarray.h"
7 #include "../../elem.h"
8 #include "../../os/memory.h"
32 template<
typename Allocator = raw_allocator>
std::size_t frame_length() const noexcept
Definition: ndarray_generic.h:21
Generic ndarray_view where lower dimension(s) are type-erased.
Definition: ndarray_view_generic.h:25
ndarray_generic(const ndarray_generic_properties &, std::size_t padding=0, const Allocator &=Allocator())
Definition: ndarray_generic.tcc:5
const frame_format & format() const noexcept
Definition: ndarray_generic.h:45
ndarray_generic_properties(const frame_format &format, std::size_t frame_length, std::size_t array_length)
Definition: ndarray_generic.h:25
std::size_t padding() const noexcept
Definition: ndarray.h:104
std::size_t frame_length_
Number of elements in one frame.
Definition: ndarray_generic.h:17
Multidimensional array container.
Definition: ndarray.h:26
view_type view()
Definition: ndarray_generic.h:47
std::size_t frame_size() const noexcept
Definition: ndarray_generic.h:23
view_type view()
Definition: ndarray.h:81
std::size_t array_length_
Number of frames.
Definition: ndarray_generic.h:18
Array container with type erased multidimensional frames.
Definition: ndarray_generic.h:33
ndarray_view_generic< 2 > view_type
Definition: ndarray_generic.h:40
frame_format format_
Element type and alignment of frame.
Definition: ndarray_generic.h:16
Properties for construction of ndarray_generic and derived container objects.
Definition: ndarray_generic.h:15
const frame_format & format() const noexcept
Definition: ndarray_generic.h:20
std::size_t array_length() const noexcept
Definition: ndarray_generic.h:22