Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Namespaces | Functions
matrix_set.hpp File Reference

Reference CPU backend for structured dense matrix initialization. More...

#include <uni20/common/trace.hpp>
#include <uni20/core/scalar_concepts.hpp>
#include <uni20/linalg/dispatch.hpp>
#include <uni20/linalg/operation_tags.hpp>
#include <uni20/mdspan/concepts.hpp>
#include <uni20/tensor/access.hpp>
#include <uni20/tensor/concepts.hpp>
#include <concepts>
#include <type_traits>
#include <utility>
Include dependency graph for backends/cpu/matrix_set.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  uni20
 
namespace  uni20::linalg
 

Functions

template<uni20::MutableRankedMdspecLike< 2 > MatrixMdspan, uni20::Scalar Scalar>
requires uni20::HostWritableMdspec<MatrixMdspan>
consteval auto uni20::linalg::kernel_accepts_types (CpuReferenceBackend const &, matrix_set_op const &, MatrixMdspan &, Scalar const &, Scalar const &)
 Report eligibility for host-accessible mdspec matrix initialization.
 
template<uni20::MutableRankedMdspecLike< 2 > MatrixMdspan, uni20::Scalar Scalar>
requires uni20::HostWritableMdspec<MatrixMdspan>
KernelAttempt uni20::linalg::try_kernel (CpuReferenceBackend, matrix_set_op const &op, MatrixMdspan &matrix, Scalar diagonal, Scalar off_diagonal)
 Resolve host access and initialize the matrix.
 

Detailed Description

Reference CPU backend for structured dense matrix initialization.