|
__init__(self,
dim,
dtype='float64')
Generate an N-dimensional array of TypedArray data. |
|
|
|
getshape(self)
Return array shape. |
|
|
|
setshape(self,
*dim)
Set shape of array.
Argument is new shape.
Raises TypeError if shape is not appropriate. |
|
|
|
|
|
|
|
__setitem__(self,
index,
value) |
|
|
|
__getslice__(self,
lower,
upper) |
|
|
|
__setslice__(self,
lower,
upper,
data) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__floordiv__(self,
other) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__itruediv__(self,
other) |
|
|
|
__ifloordiv__(self,
other) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
op(self,
operator,
other)
Arithemtic operation across array elements.
Arguments include operator and int/array.
Operators: 'add', 'sub', 'mul', 'div', etc.
Return array of the operation. |
|
|
|
cmp(self,
operator,
other)
Comparison operation across array elements.
Arguments include operator and int/array.
Operators: 'lt', 'le', 'eq', 'ne', 'gt', 'ge'.
Return comparison array. |
|
|
|
matmul(self,
other)
Matrix multiplication.
Argument is an int or array.
Return matrix multiplied array. |
|
|
|
reshape(self,
dim)
Return view of array with new shape.
Argument is new shape.
Raises TypeError if shape is not appropriate. |
|
|
|
set(self,
data)
Set array elements.
Data argument can be a 1d/2d array or number used to set Ndarray elements, data used repetitively if consists of fewer elements than Ndarray. |
|
|
|
fill(self,
value)
Set array elements to value argument. |
|
|
|
copy(self)
Return copy of array. |
|
|
|
empty(self)
Return empty copy of array. |
|
|
|
astype(self,
dtype)
Return copy of array.
Argument dtype is TypedArray data type. |
|
|
|
view(self)
Return view of array. |
|
|
|
swapaxes(self,
axis1,
axis2)
Swap axes of array.
Arguments are the axis to swap.
Return view of array with axes changed. |
|
|
|
tolist(self)
Return array as a list. |
|
|
|
getArray(self)
Return JavaScript TypedArray. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|