|
FLAMES 0.1.0
Matrix-Empowered HLS Library
|
#include <tensor.hpp>
Public Types | |
| using | element_type = T |
| using | value_type = T |
| using | View = MatView<T, n_rows, n_cols, type> |
Public Member Functions | |
| Tensor () | |
| View | slice (size_t index) const |
| View | slice (size_t index) |
| View | operator[] (size_t index) const |
| View | operator[] (size_t index) |
Static Public Member Functions | |
| static constexpr size_t | matSize () noexcept |
| static constexpr size_t | size () noexcept |
Private Attributes | |
| T | _data [type==MatType::NORMAL ? n_slices *n_rows *n_cols :type==MatType::DIAGONAL ? n_slices *n_rows :type==MatType::SCALAR ? n_slices *1 :type==MatType::SUPPER ? n_slices *(n_rows - 1) *n_rows/2 :type==MatType::SLOWER ? n_slices *(n_rows - 1) *n_rows/2 :type==MatType::ASYM ? n_slices *(n_rows - 1) *n_rows/2 :n_slices *(1+n_rows) *n_rows/2] |
3-D data structure.
| T | Element type. |
| n_rows | Number of rows. |
| n_cols | Number of columns. |
| n_slices | Number of slices. |
| type | matrix type. |
| using flames::Tensor< T, n_rows, n_cols, n_slices, type >::element_type = T |
| using flames::Tensor< T, n_rows, n_cols, n_slices, type >::value_type = T |
| using flames::Tensor< T, n_rows, n_cols, n_slices, type >::View = MatView<T, n_rows, n_cols, type> |
|
inline |
|
inlinestaticconstexprnoexcept |
|
inline |
|
inline |
|
inlinestaticconstexprnoexcept |
|
inline |
|
inline |
|
private |