25template <
class BackendSelector, uni20::MutableRankedTensorView<2> MatrixTensor,
class Scalar>
35template <uni20::MutableRankedTensorView<2> MatrixTensor,
class Scalar>
39 set_matrix(selector, std::forward<MatrixTensor>(matrix), diagonal, off_diagonal, region);
Reference CPU backend for structured dense matrix initialization.
Concept for numeric scalar types (integer, real, or complex).
Definition scalar_concepts.hpp:81
Operation-tag backend dispatch over tensor-view operands.
Definition linalg/async.hpp:28
void set_matrix(BackendSelector selector, async::Async< MatrixTensor > &matrix, Diagonal &&diagonal, OffDiagonal &&off_diagonal, MatrixRegion region=MatrixRegion::All)
Schedule structured matrix initialization through an explicit selector.
Definition async/matrix_set.hpp:58
constexpr auto select_backend(Operation const &operation, FirstTensor const &, RestTensors const &...)
Select the default backend list for an operation on Tensor operands.
Definition backend_selector.hpp:252
void dispatch_kernel(BackendSelector &&selector, Op op, Args &&... args)
Normalize a selector and dispatch or report that every eligible backend declined.
Definition dispatch.hpp:374
MatrixRegion
Matrix region selected by structured initialization operations.
Definition operation_tags.hpp:208
@ All
All entries, including rectangular portions of the matrix.
constexpr decltype(auto) mdspec_of(Tensor &tensor) noexcept(noexcept(tensor.mdspec()))
Return a tensor's immediate or descriptor-backed multidimensional metadata.
Definition tensor/concepts.hpp:50
Structured dense matrix initialization operation tag.
Definition operation_tags.hpp:219
MatrixRegion region
Definition operation_tags.hpp:221
Concepts for tensor-level objects that resolve mdspan kernel operands.