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

General-purpose owning tensors with runtime extents. More...

#include "access.hpp"
#include "basic_tensor.hpp"
#include "conjugate.hpp"
#include "generated.hpp"
#include "mdspec_tensor_view.hpp"
#include "output.hpp"
#include "precision.hpp"
#include "reshape.hpp"
#include <cstddef>
#include <type_traits>
Include dependency graph for tensor.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  uni20
 

Typedefs

using uni20::ColumnMajor = stdex::layout_left
 Conventional column-major contiguous mdspan layout.
 
template<typename ElementType , std::size_t Rank, typename StoragePolicy = HostStorage, typename AccessorFactory = detail::tensor_accessor_factory_t<StoragePolicy>>
using uni20::ColumnMajorTensor = Tensor< ElementType, Rank, StoragePolicy, ColumnMajor, AccessorFactory >
 Owning runtime-extents tensor with canonical column-major storage.
 
template<typename ElementType , typename LayoutPolicy = ColumnMajor>
using uni20::DenseMatrix = Tensor< ElementType, 2, HostStorage, LayoutPolicy >
 Owning dense host matrix with a compile-time contiguous layout.
 
using uni20::RowMajor = stdex::layout_right
 Conventional row-major contiguous mdspan layout.
 
template<typename ElementType , std::size_t Rank, typename StoragePolicy = HostStorage, typename AccessorFactory = detail::tensor_accessor_factory_t<StoragePolicy>>
using uni20::RowMajorTensor = Tensor< ElementType, Rank, StoragePolicy, RowMajor, AccessorFactory >
 Owning runtime-extents tensor with canonical row-major storage.
 
template<typename ElementType , typename StoragePolicy = HostStorage, typename AccessorFactory = detail::tensor_accessor_factory_t<StoragePolicy>>
using uni20::ScalarTensor = Tensor< ElementType, 0, StoragePolicy, ColumnMajor, AccessorFactory >
 Owning rank-zero tensor that retains storage and backend semantics.
 
template<typename ElementType , std::size_t Rank, typename StoragePolicy = HostStorage, typename AccessorFactory = detail::tensor_accessor_factory_t<StoragePolicy>>
using uni20::StridedTensor = Tensor< ElementType, Rank, StoragePolicy, stdex::layout_stride, AccessorFactory >
 Owning runtime-extents tensor with an explicitly strided mapping.
 

Detailed Description

General-purpose owning tensors with runtime extents.