Functions¶
A¶
functionabs(E1 &&) Creates an expression that returns the absolute value ofx.functionabsmax(E1 &&, E2 &&) Creates an expression that returns the greater in magnitude ofxandy.functionabsmaxof(const E1 &) Returns the greatest in magnitude of all the elements in x.functionabsmin(E1 &&, E2 &&) Creates an expression that returns the smaller in magnitude ofxandy.functionabsminof(const E1 &) Returns the smallest in magnitude of all the elements in x.functionacos(E1 &&) Creates an expression that returns the arc cosine of x.functionadd(E &&...) Creates an expression that returns the sum of all the arguments passed to a function.functionadjacent(Fn &&, E1 &&) Creates an expression that returns the result of calling \(fn(x_i, x_{i-1})\) .functionarange(T, cbool_t<truncated>) Creates an expression that returns integer values spanning[0, stop)with step 1.functionarange(T, T, T, cbool_t<truncated>) Creates an expression that returns values spanning[start, stop)with the given step.functionasin(E1 &&) Creates an expression that returns the arc sine of x.functionatan2deg(E1 &&, E2 &&) Creates an expression that returns the arc tangent of y/x (expressed in degrees).functionatan2(E1 &&, E2 &&) Creates an expression that returns the arc tangent of y/x.functionatandeg(E1 &&) Creates an expression that returns the arc tangent of x, expressed in degrees.functionatan(E1 &&) Creates an expression that returns the arc tangent of x.functionaudio_sample_bit_depth(audio_sample_type) Returns the bit depth of the given audio sample type.functionaudio_sample_is_float(audio_sample_type) Reports whether the given sample type is floating point.functionaudio_sample_sizeof(audio_sample_type) Returns the storage size in bytes of a sample of the given type.
B¶
functionbegin_pass(const expression_handle<T, NDims> &, shape<NDims>, shape<NDims>) Internal ADL-provided implementation forexpression_handleexpressions.functionbegin_pass(const expression_with_arguments<Args...> &, shape<Dims>, shape<Dims>) Notifies all arguments of anexpression_with_argumentsthat a pass is beginning.functionbegin_pass(const internal_generic::anything &, shape<Dims>, shape<Dims>) No-op pass begin/end hooks for theanythingplaceholder type.functionbind_expression(Fn &&, Args &&...) Constructs anexpression_functionfrom a callable and arguments.
C¶
functioncabs(E1 &&) Creates an expression that returns the absolute value (magnitude) of the complex number x.functioncabssqr(E1 &&) Creates an expression that returns the squared absolute value (magnitude squared) of the complex number x.functioncarg(E1 &&) Creates an expression that returns the phase angle (argument) of the complex number x.functioncartesian(E1 &&) Creates an expression that converts a complex number to cartesian form.functioncast(Arg &&) Creates an expression that converts the values ofargto typeT.functioncast(Arg &&, ctype_t<T>) Creates an expression that converts the values ofargto typeT.functioncbrt(E1 &&) Creates an expression that returns the cube root of x.functioncconj(E1 &&) Creates an expression that returns the complex conjugate of the complex numberx.functionccos(E1 &&) Creates an expression that returns the cosine of the complex value x.functionccosh(E1 &&) Creates an expression that returns the hyperbolic cosine of the complex value x.functionceil(E1 &&) Creates an expression that returns the smallest integer value not less thanx.functioncexp10(E1 &&) Creates an expression that returns 10 raised to the complex number x.functioncexp2(E1 &&) Creates an expression that returns 2 raised to the complex number x.functioncexp(E1 &&) Creates an expression that returns \(e\) raised to the complex number x.functionclamp(E1 &&, E2 &&) Creates an expression that returns the first argument clamped to a range [0, hi]functionclamp(E1 &&, E2 &&, E3 &&) Creates an expression that returns the first argument clamped to a range [lo, hi]functionclog10(E1 &&) Creates an expression that returns the common (base-10) logarithm of the complex number x.functionclog2(E1 &&) Creates an expression that returns the binary (base-2) logarithm of the complex number x.functionclog(E1 &&) Creates an expression that returns the natural logarithm of the complex number x.functionconcatenate(Arg1 &&, Arg2 &&) Creates an expression that concatenates two input expressions along the given axis.functionconcatenate(Arg1 &&, Arg2 &&, Arg3 &&) Creates an expression that concatenates three input expressions along the given axis.functionconvert_endianness(T *, size_t) Reverses the byte order (endianness) of a contiguous array of values in place.functionconvert_sample(const Tin &) Converts a single audio sample between two different native types.functionconvert(Tout *, const Tin *, size_t) Converts audio samples between two compile-time-known formats.functionconvert(Tout *, const void *, audio_sample_type, size_t) Converts audio samples whose input format is selected at runtime.functionconvert(void *, audio_sample_type, const Tin *, size_t) Converts audio samples whose output format is selected at runtime.functioncosdeg(E1 &&) Creates an expression that returns the trigonometric cosine of x (expressed in degrees).functioncos(E1 &&) Creates an expression that returns the trigonometric cosine of x.functioncosh(E1 &&) Creates an expression that returns the hyperbolic cosine of x.functioncoshsinh(E1 &&) Creates an expression that returns the hyperbolic cosine of the even elements of x and the hyperbolic sine of the odd elements of x.functioncossindeg(E1 &&) Creates an expression that returns the trigonometric cosine of the even elements of x and sine of the odd elements. x must be expressed in degrees.functioncossin(E1 &&) Creates an expression that returns the trigonometric cosine of the even elements of x and sine of the odd elements. x must be a vector.functioncoth(E1 &&) Creates an expression that returns the hyperbolic cotangent of x.functioncounter(T) Creates a 1-Dexpression_counterwith step 1.functioncounter(T, Arg, Args...) Creates an N-dimensionalexpression_counterwith one step per dimension.functioncsin(E1 &&) Creates an expression that returns the sine of the complex value x.functioncsinh(E1 &&) Creates an expression that returns the hyperbolic sine of the complex number x.functioncsqr(E1 &&) Creates an expression that returns the square of the complex number x.functioncsqrt(E1 &&) Creates an expression that returns the square root of the complex number x.functioncub(E1 &&) Creates an expression that returns the cube ofx.
D¶
functiondeinterleave(Tout **, const Tin *, size_t, size_t) Deinterleaves and converts audio samples from a single buffer.functiondeinterleave(univector2d<Tout, Tag1, Tag2> &, const univector<Tin, Tag3> &) Deinterleaves and converts audio samples into a 2D univector.functiondimensions(E1 &&) Creates an expression that adjusts the dimensionality of another expression.functiondotproduct(E1 &&, E2 &&) Returns the dot product of two vectors.
E¶
functionend_pass(const expression_handle<T, NDims> &, shape<NDims>, shape<NDims>) Internal ADL-provided implementation forexpression_handleexpressions.functionend_pass(const expression_with_arguments<Args...> &, shape<Dims>, shape<Dims>) Notifies all arguments of anexpression_with_argumentsthat a pass has ended.functionend_pass(const internal_generic::anything &, shape<Dims>, shape<Dims>)functioneq(E1 &&, E2 &&) Creates an expression that returns whethere1is equal toe2.functionexp10(E1 &&) Creates an expression that returns 10 raised to the given power x.functionexp2(E1 &&) Creates an expression that returns 2 raised to the given power x.functionexp_fmadd(E1 &&, E2 &&, E3 &&) Creates an expression that returns exp(x * m + a).functionexp(E1 &&) Creates an expression that returns \(e\) raised to the given power x.
F¶
functionfactorial_approx(E1 &&) Creates an expression that returns the approximate factorial of x.functionfastcosdeg(E1 &&) Creates an expression that returns an approximation of the trigonometric cosine of x (expressed in degrees).functionfastcos(E1 &&) Creates an expression that returns an approximation of the trigonometric cosine of x.functionfastsindeg(E1 &&) Creates an expression that returns an approximation of the trigonometric sine of x (expressed in degrees).functionfastsin(E1 &&) Creates an expression that returns an approximation of the trigonometric sine of x.functionfinal_mean(T, size_t) Finalizer formean.functionfinal_rootmean(T, size_t) Finalizer forrms.functionfixshape(Arg &&, const fixed_shape_t<ShapeValues...> &) Creates an expression that overrides the shape ofargwith a compile-time shape.functionfloor(E1 &&) Creates an expression that returns the largest integer value not greater thanx.functionfract(E1 &&) Creates an expression that returns the fractional part ofx.
G¶
functiongamma(E1 &&) Creates an expression that returns the approximate gamma function of x.functionge(E1 &&, E2 &&) Creates an expression that returns whethere1is greater than or equal toe2.functiongen_cossin(T1, T2) Creates an expression that generates values using the following formula:\\[ x_i= \begin{cases} \cos(start + i \cdot step), & \text{if } i \text{ is even}\\ \sin(start + i \cdot step), & \text{otherwise} \end{cases} \\]functiongen_exp2(T1, T2) Creates an expression that generates values using the following formula:\\[ x_i = 2^{ start + i \cdot step } \\]functiongen_expj(T1, T2) Creates an expression that generates values using the following formula:\\[ x_i = e^{ j ( start + i \cdot step ) } \\]functiongen_exp(T1, T2) Creates an expression that generates values using the following formula:\\[ x_i = e^{ start + i \cdot step } \\]functiongen_linear(T1, T2) Creates an expression that generates values starting fromstartand usingstepas the increment between successive numbers.functiongen_random_normal(const random_state &, T, T) Creates an expression that produces normally distributed values using a copied state.functiongen_random_normal(std::reference_wrapper<random_state>, T, T) Creates an expression that produces normally distributed values using a referenced state.functiongen_random_normal(T, T) Creates an expression that produces normally distributed values seeded from the cycle counter.functiongen_random_range(const random_state &, T, T) Creates an expression that produces random values in [min, max) using a copied state.functiongen_random_range(std::reference_wrapper<random_state>, T, T) Creates an expression that produces random values in [min, max) using a referenced state.functiongen_random_range(T, T) Creates an expression that produces random values in [min, max) seeded from the cycle counter.functiongen_random_uniform() Creates an expression that produces uniform pseudorandom values in [0, 1) seeded from the cycle counter.functiongen_random_uniform(const random_state &) Creates an expression that produces uniform pseudorandom values in [0, 1) using a copied state.functiongen_random_uniform(std::reference_wrapper<random_state>) Creates an expression that produces uniform pseudorandom values in [0, 1) using a referenced state.functiongen_sin(T1, T2) Creates an expression that generates values using the following formula:\\[ x_i = \sin( start + i \cdot step ) \\]functionget_element(E &&, shape<Dims>) Reads a single element from an expression at the given index.functionget_elements(const expression_cast<T, Arg> &, const shape<NDims> &, const axis_params<Axis, N> &) Internal ADL-provided implementation forfunctionget_elements(const expression_concatenate<Arg1, Arg2, ConcatAxis> &, const shape<NDims> &, const axis_params<Axis, N> &) Internal ADL-provided implementation forfunctionget_elements(const expression_counter<T, 1> &, const shape<1> &, const axis_params<Axis, N> &) Internal ADL-provided implementation forfunctionget_elements(const expression_counter<T, dims> &, const shape<dims> &, const axis_params<Axis, N> &) Internal ADL-provided implementation forfunctionget_elements(const expression_fixshape<Arg, Shape> &, const shape<Traits::dims> &, const axis_params<Axis, N> &) Internal ADL-provided implementation forfunctionget_elements(const expression_function<Fn, Args...> &, const shape<Dims> &, const axis_params<Axis, N> &) Reads a vector of elements from anexpression_function.functionget_elements(const expression_handle<T, NDims> &, const shape<NDims> &, const axis_params<Axis, N> &) Internal ADL-provided implementation forexpression_handleexpressions.functionget_elements(const expression_lambda<T, Dims, Fn, Rnd> &, const shape<Dims> &, const axis_params<Axis, N> &) Internal ADL-provided implementation forfunctionget_elements(const expression_linspace<T, truncated> &, const shape<1> &, const axis_params<0, N> &) Internal ADL-provided implementation forfunctionget_elements(const expression_padded<Arg> &, const shape<Traits::dims> &, const axis_params<Axis, N> &) Internal ADL-provided implementation forfunctionget_elements(const expression_placeholder<T, Dims, Key> &, shape<Dims>, axis_params<VecAxis, N>) Internal ADL-provided implementation forexpression_placeholderexpressions.functionget_elements(const expression_reshape<Arg, outdims> &, const shape<Traits::dims> &, const axis_params<Axis, N> &) Internal ADL-provided implementation forfunctionget_elements(const expression_reverse<Arg> &, const shape<Traits::dims> &, const axis_params<Axis, N> &) Internal ADL-provided implementation forfunctionget_elements(const expression_scalar<T> &, const shape<0> &, const axis_params<Axis, N> &) Internal ADL-provided implementation forfunctionget_elements(const expression_slice<Arg> &, const shape<NDims> &, const axis_params<Axis, N> &) Internal ADL-provided implementation forfunctionget_elements(const tensor<T, NDims> &, const shape<NDims> &, const axis_params<Axis, N> &) Internal ADL-provided implementation for tensor expressions. ReadsNelements alongAxisstarting atindexfromself.functionget_elements(const univector<T, Tag> &, const shape<1> &, const axis_params<0, N> &) Internal ADL-provided implementation forget_elementsexpressions.functionget_elements(T &&, const shape<0> &, const axis_params<Axis, N> &) Returns a scalar element broadcast to a vector.functionget_shape() Returns the static shape of an expression type.functionget_shape(T &&) Returns the shape of an expression instance.functiongt(E1 &&, E2 &&) Creates an expression that returns whethere1is greater thane2.
H¶
functionhistogram_expression(E &&) Creates an expression that computes a histogram as data flows through it.functionhistogram_expression(E &&, size_t) Creates an expression that computes a histogram as data flows through it.functionhistogram(E &&) Returns the histogram of the expression data.functionhistogram(E &&, size_t) Returns the histogram of the expression data.functionhorner_even(E &&...) Creates an expression that evaluates a polynomial with even powers using Horner's method.functionhorner_odd(E &&...) Creates an expression that evaluates a polynomial with odd powers using Horner's method.functionhorner(E &&...) Creates an expression that evaluates a polynomial using Horner's method.
I¶
functioniceil(E1 &&) Creates an expression that returns the integer equivalent of ceil(x).functionifloor(E1 &&) Creates an expression that returns the integer equivalent of floor(x).functionimag(E1 &&) Creates an expression that returns the imaginary part of the complex valuex.functionindices(const shape<Dims> &, axis_params<VecAxis, N>) Computes the vector of indices along an axis for a vectorized read.functioninterleave(const univector2d<Tin, Tag1, Tag2> &) Interleaves audio samples of a 2D univector into a new buffer.functioninterleave(E1 &&, E2 &&) Creates an expression that interleaves the lanes ofxandy.functioninterleave(Tout *, const Tin **, size_t, size_t) Interleaves and converts audio samples into a single buffer.functioninterleave(univector<Tout, Tag1> &, const univector2d<Tin, Tag2, Tag3> &) Interleaves and converts audio samples from a 2D univector.functionipow(E1 &&, E2 &&) Creates an expression that returnsxraised to the integer powerb.functioniround(E1 &&) Creates an expression that returns the integer equivalent of round(x).functionitrunc(E1 &&) Creates an expression that returns the integer equivalent of trunc(x).
L¶
functionlambda_generator(Fn &&) Creates an expression backed by a non-random-access callable.functionlambda(Fn &&, cbool_t<RandomAccess>) Creates an expression backed by a callable.functionle(E1 &&, E2 &&) Creates an expression that returns whethere1is less than or equal toe2.functionlinspace(T1, T2, size_t, bool, cbool_t<truncated>) Creates an expression that returns evenly spaced numbers over a specified interval.functionload_from_npy(tensor<T, Dims> &, Fn &&) Loads a tensor from.npyformat using a custom read callback.functionlog10(E1 &&) Creates an expression that returns the common (base-10) logarithm of x.functionlog2(E1 &&) Creates an expression that returns the binary (base-2) logarithm of x.functionlog_fmadd(E1 &&, E2 &&, E3 &&) Creates an expression that returns log(x) * m + a.functionlogb(E1 &&) Creates an expression that returns the rounded binary (base-2) logarithm of x.functionlog(E1 &&) Creates an expression that returns the natural logarithm of x.functionlogm(E1 &&, E2 &&) Creates an expression that returns log(x) * y.functionlogn(E1 &&, E2 &&) Creates an expression that returns the logarithm of x with base y.functionlt(E1 &&, E2 &&) Creates an expression that returns whethere1is less thane2.
M¶
functionmake_complex(E1 &&, E2 &&) Creates an expression that constructs a complex value from the real partreand the imaginary partim.functionmake_memory_finalizer(Fn &&) Creates a memory finalizer that invokesfnwhen the handle is destroyed.functionmake_resource(E &&) Create anexpression_resourceowninge(moved in), allocated with proper alignment.functionmake_univector(const Container &) Creates univector from a container (must have data() and size() methods)functionmake_univector(const T (&)[N]) Creates univector from a sized arrayfunctionmake_univector(const T *, size_t) Creates univector from data and sizefunctionmake_univector(Container &) Creates univector from a container (must have data() and size() methods)functionmake_univector(T (&)[N]) Creates univector from a sized arrayfunctionmake_univector(T *, size_t) Creates univector from data and sizefunctionmatrix_transpose(T *, const T *, shape<Dims>) Transposes a matrix (supports scalar and compound types).functionmax(E1 &&, E2 &&) Creates an expression that returns the greater ofxandy.functionmaxof(const E1 &) Returns the greatest of all the elements in x.functionmean(const E1 &) Returns the arithmetic mean of all the elements in x.functionmin(E1 &&, E2 &&) Creates an expression that returns the smaller ofxandy.functionminof(const E1 &) Returns the smallest of all the elements in x.functionmix(E1 &&, E2 &&, E3 &&) Creates an expression that returns the linear blend ofxandy.functionmixs(E1 &&, E2 &&, E3 &&) Creates an expression that returns the signed linear blend ofxandy.functionmodzerobessel(E1 &&) Creates an expression that returns the modified Bessel function of the first kind of order 0 of x.functionmul(E &&...) Creates an expression that returns the product of all the arguments passed to a function.
N¶
functionne(E1 &&, E2 &&) Creates an expression that returns whethere1is not equal toe2.
O¶
functionones() Creates an expression that always evaluates to one.functionoperator==(const univector<T, T1> &, const univector<T, T2> &) Returnstrueif the two univectors have equal size and element-wise equal contents.functionoperator!=(const univector<T, T1> &, const univector<T, T2> &) Returnstrueif the two univectors differ in size or in any element.functionoperator-(E1 &&) Creates an expression that returns the arithmetic negation ofe1.functionoperator~(E1 &&) Creates an expression that returns the bitwise NOT ofe1.functionoperator+(E1 &&, E2 &&) Creates an expression that returns the sum ofe1ande2.functionoperator-(E1 &&, E2 &&) Creates an expression that returns the difference betweene1ande2.functionoperator*(E1 &&, E2 &&) Creates an expression that returns the product ofe1ande2.functionoperator/(E1 &&, E2 &&) Creates an expression that returns the quotient ofe1divided bye2.functionoperator%(E1 &&, E2 &&) Creates an expression that returns the remainder ofe1divided bye2.functionoperator&(E1 &&, E2 &&) Creates an expression that returns the bitwise AND ofe1ande2.functionoperator|(E1 &&, E2 &&) Creates an expression that returns the bitwise OR ofe1ande2.functionoperator^(E1 &&, E2 &&) Creates an expression that returns the bitwise XOR ofe1ande2.functionoperator<<(E1 &&, E2 &&) Creates an expression that returnse1shifted left bye2bits.functionoperator>>(E1 &&, E2 &&) Creates an expression that returnse1shifted right bye2bits.functionoperator+=(E1 &&, E2 &&) Addse2toe1in place and returns a reference toe1.functionoperator-=(E1 &&, E2 &&) Subtractse2frome1in place and returns a reference toe1.functionoperator*=(E1 &&, E2 &&) Multipliese1bye2in place and returns a reference toe1.functionoperator/=(E1 &&, E2 &&) Dividese1bye2in place and returns a reference toe1.functionoperator%=(E1 &&, E2 &&) Assigns the remainder ofe1divided bye2toe1and returns a reference toe1.functionoperator|=(E1 &&, E2 &&) Assigns the bitwise OR ofe1ande2toe1and returns a reference toe1.functionoperator&=(E1 &&, E2 &&) Assigns the bitwise AND ofe1ande2toe1and returns a reference toe1.functionoperator^=(E1 &&, E2 &&) Assigns the bitwise XOR ofe1ande2toe1and returns a reference toe1.functionoperator<<=(E1 &&, E2 &&) Shiftse1left bye2bits in place and returns a reference toe1.functionoperator>>=(E1 &&, E2 &&) Shiftse1right bye2bits in place and returns a reference toe1.
P¶
functionpack(Args &&...) Creates an expression that packs several input expressions into a single vector-valued expression.functionpadded(Arg &&, T) Creates an expression that extendsargwith a constant fill value.functionplaceholder(csize_t<Key>) Create an unboundexpression_placeholderwith the given key.functionpolar(E1 &&) Creates an expression that converts a complex number to polar form.functionpow2(E1 &&) Creates an expression that returnsxraised to the power of 2.functionpow3(E1 &&) Creates an expression that returnsxraised to the power of 3.functionpow4(E1 &&) Creates an expression that returnsxraised to the power of 4.functionpow5(E1 &&) Creates an expression that returnsxraised to the power of 5.functionpow(E1 &&, E2 &&) Creates an expression that returns x raised to the given power y.functionprocess(Out &&, In &&, shape<0>, shape<0>, csize_t<gw>) Processes a zero-dimensional input expression into a zero-dimensional output expression.functionprocess(Out &&, In &&, shape<outdims>, shape<outdims>, csize_t<gw>) Processes a multi-dimensional input expression into a multi-dimensional output expression.functionproduct(const E1 &) Returns the product of all the elements in x.
R¶
functionrandom_bits(random_state &) Generates more than 16 bytes of random data.functionrandom_init() Initializes the random number generator state using the CPU cycle counter.functionrandom_init(u32, u32, u32, u32) Initializes the random number generator with four 32-bit seed values.functionrandom_init(u64, u64) Initializes the random number generator with two 64-bit seed values.functionrandom_next(random_state &) Advances the internal state of the pseudo-random number generator.functionrandom_normal(random_state &, T, T) Generates N normally distributed (Gaussian) random values using Box-Muller transform.functionrandom_range(random_state &, T, T) Generates random values uniformly distributed in the range [min, max) for integral types.functionrandom_uniform(random_state &) Generates a vector of uniformly distributed floating-point numbers in [0.0, 1.0).functionrandommantissa(random_state &) Generates a vector of f32 values with mantissas in [1.0, 2.0).functionrandommantissa(random_state &) Generates a vector of f64 values with mantissas in [1.0, 2.0).functionreal(E1 &&) Creates an expression that returns the real part of the complex valuex.functionrebind(const expression_function<Fn, OldArgs...> &, NewArgs &&...) Construct a new expression using the same function as ineand new argumentsfunctionrebind(expression_function<Fn, OldArgs...> &&, NewArgs &&...) Construct a new expression using the same function as ineand new arguments.functionreduce(const E1 &, ReduceFn &&, TransformFn &&, FinalFn &&) Reduces a range to a single value.functionrender(Expr &&) Converts an expression to a dynamically sized univector.functionrender(Expr &&, csize_t<Size>) Converts an expression to a fixed-size univector.functionrender(Expr &&, size_t, size_t) Converts a slice of an expression to a dynamically sized univector of the given size.functionreset(const expression_handle<T, NDims> &) Internal ADL-provided implementation forexpression_handleexpressions.functionreset(const expression_with_arguments<Args...> &) Resets all arguments of anexpression_with_arguments.functionreset(const internal_generic::anything &) No-op reset hook for theanythingplaceholder type.functionreshape(Arg &&, const shape<OutDims> &) Creates an expression that exposes the same data asargwith a different shape.functionreverse(Arg &&) Creates an expression that exposesargwith its trailing dimension reversed.functionrms(const E1 &) Returns the root mean square of all the elements in x.functionroot(E1 &&, E2 &&) Creates an expression that returns the real nth root of x.functionround(E1 &&) Creates an expression that returnsxrounded to the nearest integer.
S¶
functionsatadd(E1 &&, E2 &&) Creates an expression that addsxandyusing saturation.functionsatsub(E1 &&, E2 &&) Creates an expression that subtractsyfromxusing saturation.functionsave_to_npy(const tensor<T, Dims> &, Fn &&) Saves a tensor to.npyformat using a custom write callback.functionscalar(T) Creates an expression that wraps a single value.functionselect(E1 &&, E2 &&, E3 &&) Creates an expression that returnsxifmis true, otherwise returnsy.functionsequence(const Ts &...) Creates an expression that cycles through the provided list of values.functionset_elements(const expression_cast<T, Arg> &, const shape<NDims> &, const axis_params<Axis, N> &, const std::type_identity_t<vec<T, N>> &) Internal ADL-provided implementation forfunctionset_elements(const expression_handle<T, NDims> &, const shape<NDims> &, const axis_params<Axis, N> &, const std::type_identity_t<vec<T, N>> &) Internal ADL-provided implementation forexpression_handleexpressions.functionset_elements(const expression_slice<Arg> &, const shape<NDims> &, const axis_params<Axis, N> &, const std::type_identity_t<vec<T, N>> &) Internal ADL-provided implementation forfunctionset_elements(const tensor<T, NDims> &, const shape<NDims> &, const axis_params<Axis, N> &, const std::type_identity_t<vec<T, N>> &) Internal ADL-provided implementation for tensor expressions. WritesvalueasNelements alongAxisstarting atindexintoself.functionset_elements(expression_fixshape<Arg, Shape> &, const shape<Traits::dims> &, const axis_params<Axis, N> &, const std::type_identity_t<vec<T, N>> &) Internal ADL-provided implementation forfunctionset_elements(expression_function<fn::packtranspose, Args...> &, shape<Tr::dims>, axis_params<Axis, N>, const std::type_identity_t<vec<typename Tr::value_type, N>> &) Internal ADL-provided implementation forfunctionset_elements(expression_reshape<Arg, outdims> &, const shape<Traits::dims> &, const axis_params<Axis, N> &, const std::type_identity_t<vec<T, N>> &) Internal ADL-provided implementation forfunctionset_elements(expression_reverse<Arg> &, const shape<Traits::dims> &, const axis_params<Axis, N> &, const std::type_identity_t<vec<T, N>> &) Internal ADL-provided implementation forfunctionset_elements(T &, const shape<0> &, const axis_params<Axis, N> &, const std::type_identity_t<vec<T, N>> &) Stores a single-element vector into a scalar element.functionset_elements(univector<T, Tag> &, const shape<1> &, const axis_params<0, N> &, const std::type_identity_t<vec<T, N>> &) Internal ADL-provided implementation forset_elementsexpressions.functionsinc(E1 &&) Creates an expression that returns the sinc function of x.functionsincosdeg(E1 &&) Creates an expression that returns the trigonometric sine of the even elements of x and cosine of the odd elements. x must be expressed in degrees.functionsincos(E1 &&) Creates an expression that returns the trigonometric sine of the even elements of x and cosine of the odd elements. x must be a vector.functionsindeg(E1 &&) Creates an expression that returns the trigonometric sine of x (expressed in degrees).functionsin(E1 &&) Creates an expression that returns the trigonometric sine of x.functionsinhcosh(E1 &&) Creates an expression that returns the hyperbolic sine of the even elements of x and the hyperbolic cosine of the odd elements of x.functionsinh(E1 &&) Creates an expression that returns the hyperbolic sine of x.functionsink(E &&) Reads the expressionexprthrough the whole range.functionsize_add(size_t, size_t) Saturating addition for shape sizes.functionsize_min(size_t) Returns the minimum of a single value.functionsize_min(size_t, size_t, Ts...) Returns the minimum of two or more values (recursively).functionsize_of_shape(const shape<dims> &) Total number of elements described by a shape.functionsize_sub(size_t, size_t) Saturating subtraction for shape sizes.functionslice(Arg &&, std::type_identity_t<shape<Dims>>, std::type_identity_t<shape<Dims>>) Creates an expression that exposes a sub-region of another expression.functionsqr(E1 &&) Creates an expression that returns the square ofx.functionsqrt(E1 &&) Creates an expression that returns the positive square root of x. \(\sqrt{x}\)functionstddev(const E1 &) Computes the standard deviation of the given expression.functionsub(E1 &&, E2 &&) Creates an expression that returns the difference betweenxandy.functionsubstitute(const internal_generic::anything &, Args &&...) Fallbacksubstitutethat accepts any expression and arguments and does nothing.functionsubstitute(expression_handle<T, Dims> &, expression_handle<T, Dims>, csize_t<Key>) Substitute the placeholder inside the expression referenced byexpr.functionsubstitute(expression_placeholder<T, Dims, Key> &, expression_handle<T, Dims>, csize_t<Key>) Bind a placeholder to a concrete expression handle.functionsubstitute(expression_with_arguments<Args...> &, expression_handle<T, Dims>, csize_t<Key>) Recursively substitute a placeholder inside a composite expression.functionsum(const E1 &) Returns the sum of all the elements in x.functionsumsqr(const E1 &) Returns the sum of squares of all the elements in x.functionsymmlinspace(T, size_t, cbool_t<truncated>) Creates an expression that returns evenly spaced numbers over a symmetric interval.
T¶
functiontall() Build a range that spans the entire axis (defaults for all three components).functiontandeg(E1 &&) Creates an expression that returns the trigonometric tangent of x (expressed in degrees).functiontan(E1 &&) Creates an expression that returns the trigonometric tangent of x.functiontanh(E1 &&) Creates an expression that returns the hyperbolic tangent of x.functiontensor_from_container(Container) Creates a 1D tensor referencing the data of a container. The container is moved into a memory finalizer so the data remains valid for the tensor's lifetime.functionto_filter(E &&) Creates a filter from an expression containing a placeholder.functionto_filter(expression_handle<T, 1> &&) Creates a filter from an expression handle containing a placeholder.functionto_handle(E &) Converts the given expression into an opaque handle.functionto_handle(E &&) Converts the given expression into an opaque handle.functionto_vec(const shape<Dims> &) Converts a shape to a vector of unsigned integers.functiontprocess_body(Out &&, In &&, size_t, size_t, size_t, shape<outdims>, shape<indims>) Core loop body that copies a vectorized slice fromintoout.functiontrace(E1 &&) Creates an expression that prints the requested values to the console for debugging purposes.functiontrange(std::optional<signed_index_t>, std::optional<signed_index_t>, std::optional<signed_index_t>) Build atensor_rangefrom explicit start/stop/step values.functiontrender(const E &) Evaluates an expression and returns the result as a tensor.functiontrender(const E &, shape<Traits::dims>) Evaluates an expression up tosizeand returns the result as a tensor.functiontruncate(Arg &&, std::type_identity_t<shape<Dims>>) Creates an expression that exposesargstarting at the origin with the givensize.functiontrunc(E1 &&) Creates an expression that returns the integer part ofxby removing its fractional part.functiontstart(signed_index_t, signed_index_t) Build a range that starts atstartand continues to the end of the axis.functiontstep(signed_index_t) Build a range that uses the specified step but no explicit start or stop.functiontstop(signed_index_t, signed_index_t) Build a range that stops atstop.
U¶
functionunpack(E &&...) Creates an expression that fans out a vector input into several output expressions.
V¶
functionvariance(const E1 &) Computes the variance of the given input expression.
Z¶
functionzeros() Creates an expression that always evaluates to zero.This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.