Skip to content

Tensors

The owning tensor, and the functions that make one from an expression.

Types

Name Description
Tensor A tensor that owns its elements: dense memory in order O.

Functions

assign

template <typename T, typename S, typename O, typename Memory, typename E>
constexpr void assign(Tensor<T, S, O, Memory> &destination, const E &expression)

Assigns the values of expression to the elements of destination.

Variables

eval

constexpr detail::eval_fn eval {}

The values of an expression now, in a new tensor: eval(x) or x | eval.

The tensor that Tensor t = x makes.