Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Namespaces | Functions
precision.hpp File Reference
#include "basic_tensor.hpp"
Include dependency graph for tensor/precision.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<TensorView Input>
auto uni20::at_precision (Input const &input, Precision p)
 Materialize an owning tensor with every element converted to p.
 
template<TensorView A, TensorView B>
constexpr Precision uni20::common_default_precision (A const &a, B const &b)
 Select a binary operation's default without inspecting element precisions.
 
template<TensorView Input>
constexpr Precision uni20::precision_of (Input const &input)
 Resolve a tensor's default without reading elements; fixed types use native precision.