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

Compact read-only tensors whose values are generated from their indices. More...

#include <uni20/common/trace.hpp>
#include <uni20/core/compiler_attributes.hpp>
#include <uni20/core/scalar_concepts.hpp>
#include <uni20/mdspan/generated_accessor.hpp>
#include <uni20/mdspan/generated_layout.hpp>
#include <uni20/mdspan/mdspan.hpp>
#include <uni20/storage/generated_storage.hpp>
#include <uni20/tensor/concepts.hpp>
#include <uni20/tensor/shape.hpp>
#include <array>
#include <concepts>
#include <cstddef>
#include <tuple>
#include <type_traits>
#include <utility>
Include dependency graph for generated.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  uni20::GeneratedTensor< ElementType, Extents, Generator >
 Compact read-only tensor evaluated from logical indices. More...
 

Namespaces

namespace  uni20
 

Functions

template<Scalar ElementType, std::integral... Extents>
auto uni20::eye (Extents... extents)
 Return a generated tensor equal to one exactly when all indices agree.
 
template<Scalar ElementType, std::integral... Extents>
auto uni20::full (ElementType value, Extents... extents)
 Return a generated tensor filled with one scalar value.
 
template<Scalar ElementType, std::integral... Extents>
auto uni20::ones (Extents... extents)
 Return a generated tensor filled with scalar ones.
 
template<Scalar ElementType, std::integral... Extents>
auto uni20::zeros (Extents... extents)
 Return a generated tensor filled with scalar zeros.
 

Detailed Description

Compact read-only tensors whose values are generated from their indices.