Skip to content

Function slice

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

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

Creates an expression that exposes a sub-region of another expression.

Parameters
arg the input expression
start starting offset of the slice
size size of the slice (defaults to infinite_size)
Returns
an expression_slice

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

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