Skip to content

Function truncate

function truncate(Arg &&, std::type_identity_t<shape<Dims>>) base

template <expression_argument Arg, index_t Dims = expression_dims<Arg>>
KFR_INTRINSIC expression_slice<Arg> truncate(Arg&& arg, std::type_identity_t<shape<Dims>> size)

Creates an expression that exposes arg starting at the origin with the given size.

Parameters
arg the input expression
size size of the truncated region
Returns
an expression_slice

Fully qualified name: kfr::truncate(Arg &&, std::type_identity_t<shape<Dims>>)

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