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

Classes

class  mtl::mat::view::banded_view< Matrix >
 Non-owning banded view: A(r,c) is zero unless c - r in [-lower, upper]. More...
struct  mtl::traits::category< mat::view::banded_view< Matrix > >
struct  mtl::ashape::ashape<::mtl::mat::view::banded_view< Matrix > >

Namespaces

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

Functions

template<typename Matrix>
auto mtl::banded (const Matrix &A, std::ptrdiff_t lower, std::ptrdiff_t upper)
 Create a banded view of matrix A with given lower and upper bandwidth.
template<typename Matrix>
void mtl::banded (const Matrix &&, std::ptrdiff_t, std::ptrdiff_t)=delete
 Deleted for an rvalue (#695): the view refers to its matrix, so a view of a temporary dangles once the full expression ends.