trait OperationTrait (View source)

Methods

static int|float|NdArray
sum(NdArray|array|int|float $m, int|null $axis = null, bool $keepdims = false)

Sum all elements.

static int|float|array
trapz(NdArray|array $m)

Integrate along the given axis using the composite trapezoidal rule.

Details

final static int|float|NdArray sum(NdArray|array|int|float $m, int|null $axis = null, bool $keepdims = false)

Sum all elements.

Parameters

NdArray|array|int|float $m
int|null $axis
bool $keepdims

Return Value

int|float|NdArray

final static int|float|array trapz(NdArray|array $m)

Integrate along the given axis using the composite trapezoidal rule.

Parameters

NdArray|array $m

Return Value

int|float|array