ndarray

class ndarray(handle, writable=True)

ndarray(handle, writable=True):

An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.). Arrays should be constructed using array, zeros or empty. Currently, only c-contiguous arrays are supported.

Arrays should be constructed using array, zeros or empty (refer to the See Also section below). The parameters given here refer to a low-level method (ndarray(…)) for instantiating an array.

For more information, refer to the mxnet.numpy module and examine the methods and attributes of an array.

Parameters:
handle: int

The ndarray handle in backend (C++).

writable: bool

Indicates whether inplace-assignment is allowed for the array.

See also

array
Construct an array.
zeros
Create an array, each element of which is zero.
empty
Create an array, but leave its allocated memory unchanged (i.e., it contains “garbage”).
Attributes:
T : ndarray

Same as self.transpose().

dtype : dtype object

Data-type of the array’s elements.

size : int

Number of elements in the array.

ndim : int

Number of array dimensions.

shape : tuple of ints

Tuple of array dimensions.