Skip to content

Function render

function render(Expr &&) base

template <typename Expr, typename T = expression_value_type<Expr>>
KFR_INTRINSIC univector<T> render(Expr&& expr)

Converts an expression to a dynamically sized univector.

The expression must be one-dimensional and finite; the result is resized to the expression's shape and filled with its elements.

Template parameters
Expr Type of the expression.
T Element type of the result (deduced from Expr).
Parameters
expr Expression to render.
Returns
A univector holding the evaluated expression.

Fully qualified name: kfr::render(Expr &&)

Function render

function render(Expr &&, size_t, size_t) base

template <typename Expr, typename T = expression_value_type<Expr>>
KFR_INTRINSIC univector<T> render(Expr&& expr, size_t size, size_t offset = 0)

Converts a slice of an expression to a dynamically sized univector of the given size.

Template parameters
Expr Type of the expression.
T Element type of the result (deduced from Expr).
Parameters
expr Expression to render.
size Number of elements to render.
offset Index of the first element to render.
Returns
A univector holding the evaluated slice.

Fully qualified name: kfr::render(Expr &&, size_t, size_t)

Function render

function render(Expr &&, csize_t<Size>) base

template <typename Expr, size_t Size, typename T = expression_value_type<Expr>>
KFR_INTRINSIC univector<T, Size> render(Expr&& expr, csize_t<Size>)

Converts an expression to a fixed-size univector.

Template parameters
Expr Type of the expression.
Size Compile-time size of the result.
T Element type of the result (deduced from Expr).
Parameters
expr Expression to render.
Returns
A univector<T, Size> holding the evaluated expression.

Fully qualified name: kfr::render(Expr &&, csize_t<Size>)

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.