|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
#include <algorithm>#include <array>#include <cassert>#include <cstddef>#include <functional>#include <initializer_list>#include <numeric>#include <stdexcept>#include <string>#include <type_traits>#include <utility>#include <mtl/config.hpp>#include <mtl/tag/sparsity.hpp>#include <mtl/traits/category.hpp>#include <mtl/traits/ashape.hpp>#include <mtl/traits/is_expression.hpp>#include <mtl/detail/contiguous_memory_block.hpp>#include <mtl/detail/exceptions.hpp>#include <mtl/array/shape.hpp>Classes | |
| class | mtl::array::ndarray< Value, N, Order > |
| N-dimensional array with static rank and runtime shape. More... | |
| struct | mtl::traits::category<::mtl::array::ndarray< V, N, O > > |
| struct | mtl::traits::is_expression<::mtl::array::ndarray< V, N, O > > |
| struct | mtl::ashape::ashape<::mtl::array::ndarray< V, N, O > > |
Namespaces | |
| namespace | mtl |
| namespace | mtl::array |
| namespace | mtl::array::detail_nd |
| namespace | mtl::traits |
| namespace | mtl::ashape |
Functions | |
| template<typename Order, std::size_t N, std::size_t K, typename F> | |
| void | mtl::array::detail_nd::walk_offsets (const shape< N > &sh, const std::array< std::array< std::size_t, N >, K > &st, F &&f) |
| Calls f(off) for every element of an array of shape sh, in Order's index order – c_order: the last index fastest; f_order: the first – where off[k] is the element's offset under the strides st[k]. | |
| template<typename Value, std::size_t N> | |
| mtl::array::ndarray (Value *, shape< N >) -> ndarray< Value, N, c_order > | |
| template<typename Value, std::size_t N> | |
| mtl::array::ndarray (Value *, shape< N >, std::array< std::size_t, N >) -> ndarray< Value, N, c_order > | |