11.5.6.11. FalseArray¶
- class FalseArray(shape, dtype=None, buffer=None, offset=0, strides=None, order=None)[source]¶
Methods
allReturns True if all elements evaluate to True.
anyReturns True if any of the elements of a evaluate to True.
argmaxReturn indices of the maximum values along the given axis.
argminReturn indices of the minimum values along the given axis.
argpartitionReturns the indices that would partition this array.
argsortReturns the indices that would sort this array.
astypeCopy of the array, cast to a specified type.
byteswapSwap the bytes of the array elements
chooseUse an index array to construct a new array from a set of choices.
clipReturn an array whose values are limited to
[min, max].collapsecompressReturn selected slices of this array along given axis.
conjComplex-conjugate all elements.
conjugateReturn the complex conjugate, element-wise.
copyReturn a copy of the array.
cumprodReturn the cumulative product of the elements along the given axis.
cumsumReturn the cumulative sum of the elements along the given axis.
diagonalReturn specified diagonals.
dotRefer to
numpy.dot()for full documentation.dumpDump a pickle of the array to the specified file.
dumpsReturns the pickle of the array as a string.
fillFill the array with a scalar value.
flattenReturn a copy of the array collapsed into one dimension.
getfieldReturns a field of the given array as a certain type.
itemCopy an element of an array to a standard Python scalar and return it.
maxReturn the maximum along a given axis.
meanReturns the average of the array elements along given axis.
minReturn the minimum along a given axis.
nonzeroReturn the indices of the elements that are non-zero.
partitionPartially sorts the elements in the array in such a way that the value of the element in k-th position is in the position it would be in a sorted array.
prodReturn the product of the array elements over the given axis
putSet
a.flat[n] = values[n]for allnin indices.ravelReturn a flattened array.
repeatRepeat elements of an array.
reshapeReturns an array containing the same data with a new shape.
resizeChange shape and size of array in-place.
roundReturn a with each element rounded to the given number of decimals.
searchsortedFind indices where elements of v should be inserted in a to maintain order.
setfieldPut a value into a specified place in a field defined by a data-type.
setflagsSet array flags WRITEABLE, ALIGNED, WRITEBACKIFCOPY, respectively.
sortSort an array in-place.
squeezeRemove axes of length one from a.
stdReturns the standard deviation of the array elements along given axis.
sumReturn the sum of the array elements over the given axis.
swapaxesReturn a view of the array with axis1 and axis2 interchanged.
takeReturn an array formed from the elements of a at the given indices.
to_deviceFor Array API compatibility.
tobytesConstruct Python bytes containing the raw data bytes in the array.
tofileWrite array to a file as text or binary (default).
tolistReturn the array as an
a.ndim-levels deep nested list of Python scalars.traceReturn the sum along diagonals of the array.
transposeReturns a view of the array with axes transposed.
varReturns the variance of the array elements, along given axis.
viewNew view of array with the same data.
- __init__()¶
Attributes
TView of the transposed array.
baseBase object if memory is from some other object.
ctypesAn object to simplify the interaction of the array with the ctypes module.
dataPython buffer object pointing to the start of the array's data.
devicedtypeData-type of the array's elements.
flagsInformation about the memory layout of the array.
flatA 1-D iterator over the array.
imagThe imaginary part of the array.
itemsizeLength of one array element in bytes.
mTView of the matrix transposed array.
nbytesTotal bytes consumed by the elements of the array.
ndimNumber of array dimensions.
realThe real part of the array.
shapeTuple of array dimensions.
sizeNumber of elements in the array.
stridesTuple of bytes to step in each dimension when traversing an array.