MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
dense2D.hpp File Reference
#include <algorithm>
#include <cassert>
#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/matrix.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/mat/expr/expr_alias.hpp>
#include <mtl/detail/index.hpp>
#include <mtl/mat/dimension.hpp>
#include <mtl/mat/parameter.hpp>

Classes

class  mtl::mat::dense2D< Value, Parameters >
 Dense row/column-major matrix with configurable dimensions and storage. More...
struct  mtl::traits::category< mat::dense2D< Value, Parameters > >
struct  mtl::ashape::ashape<::mtl::mat::dense2D< Value, Parameters > >
class  mtl::dense2D< Value, Parameters >
 Dense row/column-major matrix with configurable dimensions and storage. More...

Namespaces

namespace  mtl
namespace  mtl::detail
 mat*vec multiply into pre-allocated y: y = A * x.
namespace  mtl::mat
namespace  mtl::traits
namespace  mtl::ashape

Typedefs

template<typename Value, typename Orientation = tag::row_major>
using mtl::mat::const_matrix_view
 A read-only dense matrix over memory the caller owns (tag::read_only): const access only, no allocation, no copy of the elements.

Functions

template<typename Value>
const_matrix_view< Value > mtl::mat::const_view (std::size_t rows, std::size_t cols, const Value *ptr)
 A read-only row-major view of the rows x cols elements at ptr.
template<typename Value, typename Parameters>
auto mtl::mat::const_view (const dense2D< Value, Parameters > &A)
 A read-only view of A's elements, in A's orientation and index base: hand a matrix to code that must not change it, without copying it.
template<typename Value, typename Parameters>
void mtl::mat::const_view (const dense2D< Value, Parameters > &&)=delete
 A view of a temporary would dangle at the end of the full-expression.
template<typename Value, typename Parameters>
auto mtl::mat::num_rows (const dense2D< Value, Parameters > &m)
template<typename Value, typename Parameters>
auto mtl::mat::num_cols (const dense2D< Value, Parameters > &m)
template<typename Value, typename Parameters>
auto mtl::mat::size (const dense2D< Value, Parameters > &m)

Variables

template<typename P1, typename P2>
constexpr bool mtl::detail::mat_params_differ_only_in_space_v
 True when two matrix parameter bundles agree in every axis but the memory space (#1012): a dense2D of one may be built from, and assigned, a dense2D of the other.