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

Structured dense matrix initialization operation. More...

#include <uni20/linalg/backends/cpu/matrix_set.hpp>
#include <uni20/linalg/dispatch.hpp>
#include <uni20/linalg/operation_tags.hpp>
#include <uni20/tensor/concepts.hpp>
#include <utility>
Include dependency graph for ops/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<class BackendSelector , uni20::MutableRankedTensorView< 2 > MatrixTensor, class Scalar >
void uni20::linalg::set_matrix (BackendSelector &&selector, MatrixTensor &&matrix, Scalar diagonal, Scalar off_diagonal, MatrixRegion region=MatrixRegion::All)
 Set diagonal and off-diagonal entries in a selected matrix region.
 
template<uni20::MutableRankedTensorView< 2 > MatrixTensor, class Scalar >
void uni20::linalg::set_matrix (MatrixTensor &&matrix, Scalar diagonal, Scalar off_diagonal, MatrixRegion region=MatrixRegion::All)
 Apply the set_matrix region contract using the matrix storage's backend selector.
 

Detailed Description

Structured dense matrix initialization operation.