Non-owning view of a batch of strided vectors: the vector argument type of the entry points.
Entry i of item b is at data_ptr()[b * stride() + i * inc()]; a stride of 0 means size * inc (items back to back). The memory must be USM the Queue's device can access and must outlive every use.
#include <batchlas/blas/matrix.hh>
| using batchlas::VectorView< T >::value_type = T |
| using batchlas::VectorView< T >::pointer = T* |
| using batchlas::VectorView< T >::reference = T& |
| using batchlas::VectorView< T >::const_reference = const T& |
|
inline |
|
inline |
Views data with the given layout.
| data | storage; must hold required_span_length() elements (debug-asserted) |
| size | entries per item |
| batch_size | number of items |
| inc | element distance between entries |
| stride | element distance between items; 0 means size * inc |
|
inline |
Views a UnifiedVector's storage; parameters as the Span overload.
|
inline |
|
inline |
|
inline |
Views a UnifiedVector's storage.
|
inline |
|
default |
|
defaultnoexcept |
|
inlinestaticconstexpr |
|
default |
|
defaultnoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Every item index, 0 .. batch_size() - 1.
|
inline |
{0, batch_size() / 2, batch_size() - 1}, sorted and de-duplicated ({} for batch 0): what a check reads by default, as MatrixView::default_items().
|
static |
Enqueues dest := src on ctx, honouring each side's inc and stride.
| batchlas::invalid_argument | if the sizes or batch sizes differ |
|
static |
True when every entry of a and b agrees to relative tolerance tol; waits on ctx.
|
inline |
Entry i of item batch; usable on the host and in a kernel.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |