18 #ifndef NDARRAY_MATRIX_H 19 #define NDARRAY_MATRIX_H 30 template <index_t Rows = dynamic, index_t Cols = dynamic>
35 template <
class T, index_t Rows = dynamic, index_t Cols = dynamic,
class Alloc = std::allocator<T>>
37 template <
class T, index_t Rows = dynamic, index_t Cols = dynamic>
39 template <
class T, index_t Rows = dynamic, index_t Cols = dynamic>
43 template <index_t Length = dynamic>
46 template <
class T, index_t Length = dynamic,
class Alloc = std::allocator<T>>
48 template <
class T, index_t Length = dynamic>
50 template <
class T, index_t Length = dynamic>
55 template <
class T, index_t Rows, index_t Cols>
57 template <
class T, index_t Length>
61 template <
class Shape,
class Fn>
65 fn(std::tuple<index_t, index_t>(i, j));
70 template <index_t Rows, index_t Cols>
80 template <
class Ptr,
class Fn>
81 static void for_each_value(
const shape_type& s, Ptr base, Fn&& fn) {
89 #endif // NDARRAY_MATRIX_H index_of_rank< rank()> index_type
Definition: array.h:1076
static NDARRAY_HOST_DEVICE void for_each_value(const Shape &shape, Ptr base, Fn &&fn)
Definition: array.h:1882
Main header for array library.
std::ptrdiff_t index_t
Definition: array.h:87
void for_each_matrix_index(const Shape &s, Fn &&fn)
Definition: matrix.h:62
static NDARRAY_HOST_DEVICE void for_each_index(const Shape &shape, Fn &&fn)
Definition: array.h:1874