Function linspace¶
function linspace(T1, T2, size_t, bool, cbool_t<truncated>) base¶
template <typename T = void, bool precise = false, bool truncated = false, typename T1, typename T2,
typename Tout = or_type<T, ftype<std::common_type_t<T1, T2>>>>
KFR_INTRINSIC expression_linspace<Tout, truncated> linspace(T1 start, T2 stop, size_t size,
bool endpoint = false, cbool_t<truncated> = { … } Creates an expression that returns evenly spaced numbers over a specified interval.
| start | the starting value of the sequence |
| stop | the end value of the sequence; if endpoint is false , the last value is excluded |
| size | number of samples to generate |
| endpoint | if true , stop is the last sample; otherwise, it is not included |
| truncated | if true , linspace returns exactly size elements, otherwise, returns an infinite sequence |
| precise | no longer used since KFR5; calculations are always precise |
Fully qualified name: kfr::linspace(T1, T2, size_t, bool, cbool_t<truncated>)
Declared at base/basic_expressions.hpp:978
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.