|
Uni20
Asynchronous tensor and runtime library.
|
Writable proxy for one structural diagonal or off-diagonal element. More...
#include <diagonal_accessor.hpp>
Public Member Functions | |
| UNI20_HOST_DEVICE constexpr | diagonal_reference () noexcept=default |
| UNI20_HOST_DEVICE constexpr | diagonal_reference (ElementType *element) noexcept |
| UNI20_HOST_DEVICE constexpr | operator ElementType () const noexcept |
| UNI20_HOST_DEVICE constexpr auto | operator= (diagonal_reference const &other) noexcept -> diagonal_reference & |
| UNI20_HOST_DEVICE constexpr auto | operator= (ElementType const &value) noexcept -> diagonal_reference & |
Writable proxy for one structural diagonal or off-diagonal element.
Reading an off-diagonal proxy returns zero. Assigning an off-diagonal proxy has the precondition that the assigned value is zero, preserving the compressed diagonal representation.
| ElementType | Stored non-const element type. |
|
constexprdefaultnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |