Skip to content

Function trange

function trange(std::optional<signed_index_t>, std::optional<signed_index_t>, std::optional<signed_index_t>) base

constexpr KFR_INTRINSIC tensor_range trange(std::optional<signed_index_t> start = std::nullopt,
                                            std::optional<signed_index_t> stop  = std::nullopt,
                                            std::optional<signed_index_t> step  = std::nullopt) { … }

Build a tensor_range from explicit start/stop/step values.

Parameters
start Optional starting index (inclusive).
stop Optional stopping index (exclusive).
step Optional step value.
Returns
A tensor_range holding the provided components.

Fully qualified name: kfr::trange(std::optional<signed_index_t>, std::optional<signed_index_t>, std::optional<signed_index_t>)

Declared at base/shape.hpp:923

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