7#include <batchlas/export.hh>
24using getri =
Event(Queue&,
25 const MatrixView<T, MatrixFormat::Dense>&,
26 const MatrixView<T, MatrixFormat::Dense>&,
30using getri_buffer_size = size_t(Queue&,
31 const MatrixView<T, MatrixFormat::Dense>&);
35using getri_vendor =
Event(Queue&,
36 const MatrixView<T, MatrixFormat::Dense>&,
37 const MatrixView<T, MatrixFormat::Dense>&,
43using getri_vendor_buffer_size = size_t(Queue&,
44 const MatrixView<T, MatrixFormat::Dense>&);
60 "GETRI: Matrix dimensions cannot be negative (A: rows=" +
61 std::to_string(A.
rows()) +
", cols=" + std::to_string(A.
cols()) +
")");
75 "GETRI: Matrix dimensions cannot be negative (C: rows=" +
76 std::to_string(C.
rows()) +
", cols=" + std::to_string(C.
cols()) +
")");
110template <Backend B,
typename T>
121template <Backend B,
typename T>
134template <Backend B,
typename T>
148template <Backend B,
typename T>
159template <Backend B,
typename T>
Non-owning view of a batch of matrices: the argument type of every entry point.
T * data_ptr() const
Base pointer of item 0.
int rows() const
Rows per item (the capacity on a heterogeneous batch).
int cols() const
Columns per item (the capacity on a heterogeneous batch).
int batch_size() const
Number of batch items.
The call violates the API contract.
Enumerations, scalar traits and scalar concepts shared by every public header.
size_t getri_vendor_buffer_size(Queue &ctx, const MatrixView< T, MatrixFormat::Dense > &A)
Workspace query of the vendor arm of getri().
Event getri_vendor(Queue &ctx, const MatrixView< T, MatrixFormat::Dense > &A, const MatrixView< T, MatrixFormat::Dense > &C, Span< int64_t > pivots, Span< std::byte > work_space, Span< int32_t > info_out)
Vendor arm of getri(); called by getri() when it selects the vendor kernel family,...
size_t getri_buffer_size(Queue &ctx, const MatrixView< T, MatrixFormat::Dense > &A)
Workspace, in bytes, that getri() needs for A on this queue.
void getri_validate_params(const MatrixView< T, MatrixFormat::Dense > &A)
Validates A for getri_buffer_size(): non-negative extents only.
Event getri(Queue &ctx, const MatrixView< T, MatrixFormat::Dense > &A, const MatrixView< T, MatrixFormat::Dense > &C, Span< int64_t > pivots, Span< std::byte > work_space, Span< int32_t > info)
Batched inverse from the LU factors produced by getrf().
The batched containers: Matrix (owning), MatrixView (non-owning), KernelMatrixView (device-side),...
Span(T *, typename Span< T >::size_t) -> Span< T >
Backend deduction from the Queue and the USM pointer check.
#define BATCHLAS_DISPATCH_ON_QUEUE(NAME)
Completion handle of enqueued work, returned by every entry point.
Event()
An empty Event, already complete.
Where BatchLAS work runs: a device, a backend, an ordered SYCL queue and a workspace arena.
Non-owning view of size() contiguous elements of type T.
batchlas::Device, batchlas::Event and batchlas::Queue: where work runs and how it is ordered.
batchlas::Span, the non-owning pointer + length every entry point takes for 1-D data.