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

Backend-dispatched tensor copies and inferred owning materialization. More...

#include <uni20/mdspan/concepts.hpp>
#include <uni20/tensor/copy_into.hpp>
#include <uni20/tensor/output.hpp>
#include <uni20/tensor/tensor.hpp>
#include <concepts>
#include <cstddef>
#include <type_traits>
#include <utility>
Include dependency graph for tensor/copy.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  uni20
 

Functions

template<class RequestedLayout = void, class BackendSelector , MdspanLike InputMdspan>
auto uni20::make_tensor (BackendSelector &&selector, InputMdspan &&input)
 Materialize a bare mdspan-like view as an inferred owning host tensor.
 
template<class RequestedLayout = void, TensorView InputTensor>
auto uni20::make_tensor (InputTensor const &input)
 Materialize a tensor view as an inferred owning host tensor.
 
template<class RequestedLayout = void, TensorView InputTensor, std::integral... Extents>
requires (!OwningTensor<InputTensor> && (std::is_void_v<RequestedLayout> || detail::CanonicalReshapeLayout<RequestedLayout>) && (!std::is_void_v<RequestedLayout> || !StridedTensorView<InputTensor> || detail::CanonicalReshapeLayout<typename tensor_mdspec_t<InputTensor>::layout_type>))
auto uni20::reshape (InputTensor const &input, Extents... requested_extents)
 Materialize an owning reshape of a non-owning or generated tensor view.
 

Detailed Description

Backend-dispatched tensor copies and inferred owning materialization.