Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
basic_tensor.hpp File Reference

Owning tensor implementation and configurable extents alias. More...

#include "concepts.hpp"
#include "layout.hpp"
#include <uni20/common/initialization.hpp>
#include <uni20/common/trace.hpp>
#include <uni20/mdspan/mdspan.hpp>
#include <uni20/mdspan/mdspec.hpp>
#include <uni20/storage/host_storage.hpp>
#include <uni20/tensor/copy_into.hpp>
#include <array>
#include <concepts>
#include <cstddef>
#include <ranges>
#include <tuple>
#include <type_traits>
#include <utility>
Include dependency graph for basic_tensor.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  uni20::DefaultAccessorFactory
 Factory that provides default accessors for tensor storage containers. More...
 
class  uni20::Tensor< ElementType, Rank, StoragePolicy, LayoutPolicy, AccessorFactory, Extents >
 General-purpose owning tensor with immediate or deferred mdspan metadata. More...
 

Namespaces

namespace  uni20
 

Typedefs

template<typename ElementType , typename Extents , typename StoragePolicy = HostStorage, typename LayoutPolicy = stdex::layout_left, typename AccessorFactory = detail::tensor_accessor_factory_t<StoragePolicy>>
using uni20::BasicTensor = Tensor< ElementType, Extents::rank(), StoragePolicy, LayoutPolicy, AccessorFactory, Extents >
 Configurable owning tensor with an explicit mdspan extents type.
 

Functions

template<TensorView InputTensor>
 uni20::Tensor (InputTensor const &) -> Tensor< tensor_element_t< InputTensor >, tensor_mdspec_t< InputTensor >::rank(), HostStorage, detail::materialized_layout_t< void, tensor_mdspec_t< InputTensor > >, DefaultAccessorFactory >
 Deduce a runtime-extents host tensor that materializes a tensor view.
 

Variables

template<typename ElementType , std::size_t Rank, typename StoragePolicy , typename LayoutPolicy , typename AccessorFactory , typename Extents >
constexpr bool uni20::enable_owning_tensor< Tensor< ElementType, Rank, StoragePolicy, LayoutPolicy, AccessorFactory, Extents > > = true
 

Detailed Description

Owning tensor implementation and configurable extents alias.