MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
strided_vector_ref.hpp File Reference
#include <cassert>
#include <cstddef>
#include <iterator>
#include <type_traits>
#include <utility>
#include <mtl/tag/sparsity.hpp>
#include <mtl/traits/category.hpp>
#include <mtl/traits/ashape.hpp>

Classes

class  mtl::vec::strided_vector_ref< Value >
 Non-owning reference to strided data: pointer + length + stride. More...
class  mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >
struct  mtl::traits::category< vec::strided_vector_ref< Value > >
struct  mtl::ashape::ashape<::mtl::vec::strided_vector_ref< Value > >
class  mtl::strided_vector_ref< Value >
 Non-owning reference to strided data: pointer + length + stride. More...

Namespaces

namespace  mtl
namespace  mtl::vec
namespace  mtl::traits
namespace  mtl::ashape

Functions

template<typename Value>
strided_vector_ref< Value > mtl::vec::sub_vector (strided_vector_ref< Value > &v, std::size_t start, std::size_t finish)
 Extract a sub-vector [start, finish) from a strided_vector_ref.
template<typename Value>
strided_vector_ref< const Value > mtl::vec::sub_vector (const strided_vector_ref< Value > &v, std::size_t start, std::size_t finish)