MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
map_view.hpp File Reference
#include <cstddef>
#include <stdexcept>
#include <vector>
#include <mtl/config.hpp>
#include <mtl/detail/exceptions.hpp>
#include <mtl/traits/category.hpp>
#include <mtl/traits/ashape.hpp>

Classes

class  mtl::mat::view::map_view< Matrix >
 Non-owning view with index remapping via permutation vectors. More...
struct  mtl::traits::category< mat::view::map_view< Matrix > >
struct  mtl::ashape::ashape<::mtl::mat::view::map_view< Matrix > >

Namespaces

namespace  mtl
namespace  mtl::mat
namespace  mtl::mat::view
namespace  mtl::traits
namespace  mtl::ashape

Functions

template<typename Matrix>
auto mtl::mapped (const Matrix &A, const std::vector< typename Matrix::size_type > &row_map, const std::vector< typename Matrix::size_type > &col_map)
 Create a map view with row and column remapping.
template<typename Matrix>
void mtl::mapped (const Matrix &&, const std::vector< typename Matrix::size_type > &, const std::vector< typename Matrix::size_type > &)=delete
 Deleted for an rvalue (#695): the view refers to its matrix, so a view of a temporary dangles once the full expression ends.