|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
#include <algorithm>#include <cassert>#include <concepts>#include <cstddef>#include <initializer_list>#include <stdexcept>#include <type_traits>#include <utility>#include <vector>#include <mtl/config.hpp>#include <mtl/detail/exceptions.hpp>#include <mtl/tag/orientation.hpp>#include <mtl/tag/storage.hpp>#include <mtl/tag/sparsity.hpp>#include <mtl/traits/category.hpp>#include <mtl/traits/ashape.hpp>#include <mtl/concepts/scalar.hpp>#include <mtl/concepts/vector.hpp>#include <mtl/traits/is_expression.hpp>#include <mtl/detail/contiguous_memory_block.hpp>#include <mtl/detail/ewise.hpp>#include <mtl/detail/same_object.hpp>#include <mtl/vec/dimension.hpp>#include <mtl/vec/parameter.hpp>Classes | |
| class | mtl::vec::dense_vector< Value, Parameters > |
| Dense vector with configurable orientation, storage, and dimensions. More... | |
| struct | mtl::traits::category< vec::dense_vector< Value, Parameters > > |
| struct | mtl::ashape::ashape< vec::dense_vector< Value, Parameters > > |
| class | mtl::dense_vector< Value, Parameters > |
| Dense vector with configurable orientation, storage, and dimensions. More... | |
Namespaces | |
| namespace | mtl |
| namespace | mtl::detail |
| mat*vec multiply into pre-allocated y: y = A * x. | |
| namespace | mtl::vec |
| namespace | mtl::traits |
| namespace | mtl::ashape |
Typedefs | |
| template<typename Value, typename Orientation = tag::col_major> | |
| using | mtl::vec::const_vector_view |
| A read-only dense vector over memory the caller owns (tag::read_only): const access only, no allocation, no copy of the elements. | |
Functions | |
| template<typename Value> | |
| const_vector_view< Value > | mtl::vec::const_view (std::size_t n, const Value *ptr) |
| A read-only view of the n elements at ptr. | |
| template<typename Value, typename Parameters> | |
| auto | mtl::vec::const_view (const dense_vector< Value, Parameters > &v) |
| A read-only view of v's elements, in v's orientation: hand a vector to code that must not change it, without copying it. | |
| template<typename Value, typename Parameters> | |
| void | mtl::vec::const_view (const dense_vector< Value, Parameters > &&)=delete |
| A view of a temporary would dangle at the end of the full-expression. | |
| template<typename Value, typename Parameters> | |
| auto | mtl::vec::size (const dense_vector< Value, Parameters > &v) |
| template<typename Value, typename Parameters> | |
| auto | mtl::vec::num_rows (const dense_vector< Value, Parameters > &v) |
| template<typename Value, typename Parameters> | |
| auto | mtl::vec::num_cols (const dense_vector< Value, Parameters > &v) |
| template<typename Value, typename Parameters> requires (!dense_vector<Value, Parameters>::read_only) | |
| void | mtl::vec::fill (dense_vector< Value, Parameters > &v, const std::type_identity_t< Value > &val) |
Variables | |
| template<typename P1, typename P2> | |
| constexpr bool | mtl::detail::vec_params_differ_only_in_space_v |
| True when two vector parameter bundles agree in every axis but the memory space (#1012): a dense_vector of one may be built from, and assigned, a dense_vector of the other. | |