osyris.Array

osyris.Array#

class osyris.Array(values, unit=None, name='')#
__init__(values, unit=None, name='')#

Methods

__init__(values[, unit, name])

copy()

Make a (deep) copy of the array.

reshape(*shape)

Reshape the array.

to(unit)

Convert the array to a new unit.

Attributes

dtype

The dtype of the array.

label

Return a label for the object with name and unit.

nbytes

The number of bytes used by the array.

ndim

The number of dimensions of the array.

norm

The norm of the array (just returns itself).

shape

The shape of the array.

unit

The unit of the array.

values

The values of the array.