CommonArrayValue#

class CommonArrayValue#

Bases: Generic[T], numpy.typing.NDArray[T], IVariableValue, abc.ABC

Defines an interface for the behavior common among all array types.

Overview#

get_lengths

Get the dimension sizes of the array.

rank

Get the number of dimensions in the array.

Import detail#

from ansys.tools.variableinterop.variable_value import CommonArrayValue

Method detail#

CommonArrayValue.get_lengths() Tuple[int]#

Get the dimension sizes of the array.

Returns:
Tuple[int]

Dimension sizes of the array.

CommonArrayValue.rank() int#

Get the number of dimensions in the array.

Returns:
int

Number of dimensions in the array.