trait MatrixTrait (View source)

Methods

static bool
is_square(NdArray|array $m)

Is given matrix a square matrix ?

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

Numerical negative, element-wise.

static NdArray
transpose(array|NdArray $m)

Permute the dimensions of an array.

Details

final static bool is_square(NdArray|array $m)

Is given matrix a square matrix ?

Parameters

NdArray|array $m

Return Value

bool

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

Numerical negative, element-wise.

Parameters

NdArray|array|int|float $m

Return Value

NdArray|int|float

final static NdArray transpose(array|NdArray $m)

Permute the dimensions of an array.

Parameters

array|NdArray $m

Return Value

NdArray

Exceptions

InvalidArgumentException