|
Uni20
Asynchronous tensor and runtime library.
|
Non-owning read-only view of a tensor-level object. More...
#include <conjugate.hpp>
Public Types | |
| using | async_alias_tag = void |
| Marks this descriptor as a structurally copied async alias. | |
| using | storage_policy = tensor_storage_policy_t< tensor_type > |
| using | tensor_type = std::remove_cvref_t< Tensor > |
Public Member Functions | |
| constexpr decltype(auto) | backend_selector () const noexcept(noexcept(std::declval< tensor_type const & >().backend_selector())) |
| Return the underlying tensor's backend selector. | |
| constexpr tensor_type const & | base () const noexcept |
| Return the tensor referenced by this view. | |
| constexpr | ConstTensorView (tensor_type const &tensor) noexcept |
| Bind a read-only view to an existing tensor. | |
| constexpr | ConstTensorView (tensor_type const *tensor) noexcept |
| Bind a read-only view to externally retained tensor storage. | |
| constexpr decltype(auto) | extent (std::size_t axis) const noexcept(noexcept(std::declval< tensor_type const & >().extent(axis))) |
| Return one underlying tensor extent. | |
| constexpr decltype(auto) | extents () const noexcept(noexcept(std::declval< tensor_type const & >().extents())) |
| Return the underlying tensor extents. | |
| constexpr decltype(auto) | mdspan () const noexcept(noexcept(std::declval< tensor_type const & >().mdspan())) |
| Resolve the underlying tensor's read-only mdspan. | |
| constexpr decltype(auto) | mdspec () const noexcept(noexcept(mdspec_of(std::declval< tensor_type const & >()))) |
| Return the underlying tensor's read-only immediate or deferred metadata. | |
Non-owning read-only view of a tensor-level object.
| using uni20::ConstTensorView< Tensor >::async_alias_tag = void |
Marks this descriptor as a structurally copied async alias.
| using uni20::ConstTensorView< Tensor >::storage_policy = tensor_storage_policy_t<tensor_type> |
| using uni20::ConstTensorView< Tensor >::tensor_type = std::remove_cvref_t<Tensor> |
|
inlineexplicitconstexprnoexcept |
Bind a read-only view to an existing tensor.
|
inlineexplicitconstexprnoexcept |
Bind a read-only view to externally retained tensor storage.
|
inlineconstexprnoexcept |
Return the underlying tensor's backend selector.
|
inlineconstexprnoexcept |
Return the tensor referenced by this view.
|
inlineconstexprnoexcept |
Return one underlying tensor extent.
|
inlineconstexprnoexcept |
Return the underlying tensor extents.
|
inlineconstexprnoexcept |
Resolve the underlying tensor's read-only mdspan.
|
inlineconstexprnoexcept |
Return the underlying tensor's read-only immediate or deferred metadata.