symmray.common

Common interfaces for all symmray array objects.

Attributes

Classes

SymmrayCommon

Common functionality for all symmray array like objects.

Module Contents

symmray.common._symmray_namespace = None
class symmray.common.SymmrayCommon[source]

Common functionality for all symmray array like objects.

__array_namespace__(api_version=None)[source]

Return the namespace for the symmray module.

_modify_or_copy(inplace=False, **kwargs) SymmrayCommon[source]
__float__()[source]
__complex__()[source]
__int__()[source]
__bool__()[source]
__mul__(other, inplace=False)[source]
__imul__(other)[source]
__rmul__(other)[source]
__neg__() SymmrayCommon[source]
_do_unary_op(fn, inplace=False) SymmrayCommon[source]

Perform a unary operation on blocks of the array.

abs()[source]

Get the absolute value of all elements in the array.

isfinite()[source]

Check if all elements in the array are finite.

sqrt()[source]

Get the square root of all elements in the array.

clip(a_min, a_max)[source]

Clip the values in the array.

max()[source]

Get the maximum element from any block in the array.

min()[source]

Get the minimum element from any block in the array.

sum()[source]

Get the sum of all elements in the array.

all()[source]

Check if all elements in the array are True.

any()[source]

Check if any element in the array is True.

property real

Return the real part of the array.

property imag

Return the imaginary part of the array.