batmat develop
Batched linear algebra routines
Loading...
Searching...
No Matches
view.hpp File Reference

Detailed Description

Non-owning view of a batch of matrices.

Definition in file view.hpp.

#include <batmat/assume.hpp>
#include <batmat/config.hpp>
#include <batmat/matrix/layout.hpp>
#include <guanaqo/mat-view.hpp>
#include <type_traits>

Go to the source code of this file.

Classes

struct  batmat::matrix::View< T, I, S, D, L, O >
 Non-owning view of an array of matrices, stored in an efficient batched format. More...
struct  batmat::matrix::View< T, I, S, D, L, O >::PlainBatchedMatrixView
 POD helper struct to enable designated initializers during construction. More...
struct  batmat::matrix::View< T, I, S, D, L, O >::linear_iterator
 Iterator over all elements of a view. More...

Namespaces

namespace  batmat
namespace  batmat::matrix

Functions

template<class T, class I, class S, class D, class L, StorageOrder P>
bool batmat::matrix::operator== (std::default_sentinel_t s, typename View< T, I, S, D, L, P >::linear_iterator i)
template<class T, class I, class S, class D, class L, StorageOrder P>
bool batmat::matrix::operator!= (std::default_sentinel_t s, typename View< T, I, S, D, L, P >::linear_iterator i)
template<class T, class I, class S, class D, class L, StorageOrder P>
bool batmat::matrix::operator!= (typename View< T, I, S, D, L, P >::linear_iterator i, std::default_sentinel_t s)
template<class T, class I, class S, class D, class L, StorageOrder O>
constexpr auto batmat::matrix::data (const View< T, I, S, D, L, O > &v)
template<class T, class I, class S, class D, class L, StorageOrder O>
constexpr auto batmat::matrix::rows (const View< T, I, S, D, L, O > &v)
template<class T, class I, class S, class D, class L, StorageOrder O>
constexpr auto batmat::matrix::cols (const View< T, I, S, D, L, O > &v)
template<class T, class I, class S, class D, class L, StorageOrder O>
constexpr auto batmat::matrix::outer_stride (const View< T, I, S, D, L, O > &v)
template<class T, class I, class S, class D, class L, StorageOrder O>
constexpr auto batmat::matrix::depth (const View< T, I, S, D, L, O > &v)

Class Documentation

◆ batmat::matrix::View::PlainBatchedMatrixView

struct batmat::matrix::View::PlainBatchedMatrixView
Class Members
value_type * data = nullptr
depth_type depth = guanaqo::default_stride<depth_type>::value
index_type rows = 0
index_type cols = rows == 0 ? 0 : 1
index_type outer_stride = is_row_major ? cols : rows
batch_size_type batch_size
layer_stride_type layer_stride