Skip to content

Function arange

function arange(T, T, T, cbool_t<truncated>) base

template <typename T, bool precise = false, bool truncated = false, typename Tout = ftype<T>>
KFR_INTRINSIC expression_linspace<Tout, true> arange(T start, T stop, T step = 1, cbool_t<truncated> = { … }

Creates an expression that returns values spanning [start, stop) with the given step.

Template parameters
T value type
precise unused, kept for backwards compatibility
truncated always true for the result of arange
Parameters
start first value
stop end value (exclusive)
step step between consecutive values
Returns
an expression_linspace of exactly the right number of elements

Fully qualified name: kfr::arange(T, T, T, cbool_t<truncated>)

Function arange

function arange(T, cbool_t<truncated>) base

template <typename T, bool precise = false, bool truncated = false, typename Tout = ftype<T>>
KFR_INTRINSIC expression_linspace<Tout, true> arange(T stop, cbool_t<truncated> = { … }

Creates an expression that returns integer values spanning [0, stop) with step 1.

Template parameters
T value type
precise unused, kept for backwards compatibility
truncated always true for the result of arange
Parameters
stop end value (exclusive)
Returns
an expression_linspace containing the integers [0, stop)

Fully qualified name: kfr::arange(T, cbool_t<truncated>)

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