27 template<
typename datatype,
size_t numdim>
class Array {
35 static_assert(numdim == 1,
"Dimensions mismatch");
42 static_assert(numdim == 2,
"Dimensions mismatch");
50 static_assert(numdim == 3,
"Dimensions mismatch");
59 static_assert(numdim == 4,
"Dimensions mismatch");
70 static_assert(numdim == 1,
"Dimensions mismatch");
75 static_assert(numdim == 2,
"Dimensions mismatch");
80 static_assert(numdim == 3,
"Dimensions mismatch");
85 static_assert(numdim == 4,
"Dimensions mismatch");
89 const datatype&
operator()(
size_t c,
size_t x,
size_t y,
size_t z)
const {
90 static_assert(numdim == 4,
"Dimensions mismatch");
Multidimensional array container with data access facilities The number of dimensions is compile time...
datatype & operator()(size_t x, size_t y)
Array(size_t channels, size_t width, size_t height, size_t depth)
datatype & operator()(size_t i)
const datatype & operator()(size_t c, size_t x, size_t y, size_t z) const
std::vector< datatype > storage
Array(size_t width, size_t height, size_t depth)
Array(size_t width, size_t height)
datatype & operator()(size_t x, size_t y, size_t z)
datatype & operator()(size_t c, size_t x, size_t y, size_t z)
JNIEnv jobject jint jint jint channels
jlong jstring jint jint jint z
jobject jlong jint jint y