Trivially copyable view of a MatrixView for use inside a SYCL kernel.
Obtained from Matrix::kernel_view() or MatrixView::kernel_view() on the host and captured by value. It holds raw pointers and extents only: no ownership, no backend handle, no bounds checks beyond debug-build asserts. Specialised on the format so format-specific paths resolve at compile time; slicing is dense-only. The fields are public so kernels can read them without a call.
| T | scalar type |
| MType | MatrixFormat::Dense or MatrixFormat::CSR |
#include <batchlas/blas/matrix.hh>
|
default |
A null 0 x 0 view with batch size 1.
|
default |
|
default |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| KernelMatrixView batchlas::KernelMatrixView< T, MType >::operator() | ( | Slice | rows_slice, |
| Slice | cols_slice = {} ) const |
Dense sub-block view; same pointer arithmetic as MatrixView::operator()(Slice, Slice).
|
inline |
| VectorView< T > batchlas::KernelMatrixView< T, MType >::operator() | ( | int32_t | row, |
| Slice | cols_slice ) const |
Part of row row as a batched VectorView (inc = ld_, stride = stride_).
| VectorView< T > batchlas::KernelMatrixView< T, MType >::operator() | ( | Slice | rows_slice, |
| int32_t | col ) const |
Part of column col as a batched VectorView (inc = 1, stride = stride_).
|
default |
|
default |
| T* batchlas::KernelMatrixView< T, MType >::data_ = nullptr |
| int batchlas::KernelMatrixView< T, MType >::rows_ = 0 |
| int batchlas::KernelMatrixView< T, MType >::cols_ = 0 |
| int batchlas::KernelMatrixView< T, MType >::batch_size_ = 1 |
| int batchlas::KernelMatrixView< T, MType >::ld_ = 0 |
| int batchlas::KernelMatrixView< T, MType >::stride_ = 0 |
| int* batchlas::KernelMatrixView< T, MType >::active_rows_ = nullptr |
| int* batchlas::KernelMatrixView< T, MType >::active_cols_ = nullptr |
| int* batchlas::KernelMatrixView< T, MType >::row_offsets_ = nullptr |
| int* batchlas::KernelMatrixView< T, MType >::col_indices_ = nullptr |
| int batchlas::KernelMatrixView< T, MType >::nnz_ = 0 |
| int batchlas::KernelMatrixView< T, MType >::matrix_stride_ = 0 |
| int batchlas::KernelMatrixView< T, MType >::offset_stride_ = 0 |