Returns the number of bytes allocated by the memory manager for the array.
as_type
(ty)
Cast current array to a specified data type
copy
()
Performs a deep copy of the array.
Return the device pointer exclusively held by the array.
dims
()
Return the shape of the array as a tuple.
dtype
()
Return the data type as a arrayfire.Dtype enum value.
elements
()
Return the number of elements in the array.
is_bool
()
Check if the array is of type b8.
Check if the array is a column i.e. it has a shape of (rows, 1).
Check if the array is of complex type.
Check if the array is of double precision floating point type.
is_empty
()
Check if the array is empty i.e. it has no elements.
Check if the array is of floating point type.
is_half
()
Check if the array is of half floating point type (fp16).
Check if the array is of integer type.
Check if all elements of the array are contiguous.
is_owner
()
Check if the array owns the raw pointer or is a derived array.
is_real
()
Check if the array is not of complex type.
Check if the array is real and of floating point type.
is_row
()
Check if the array is a row i.e. it has a shape of (1, cols).
Check if the array is scalar i.e. it has only one element.
Check if the array is of single precision floating point type.
Check if the array is a sparse matrix.
Check if the array is a vector i.e. it has a shape of one of the following: - (rows, 1) - (1, cols) - (1, 1, vols) - (1, 1, 1, batch).
logical_and
(other)
Return self && other.
Return ~self
logical_or
(other)
Return self || other.
numdims
()
Return the number of dimensions of the array.
offset
()
Return the offset, of the first element relative to the raw pointer.
raw_ptr
()
Return the device pointer held by the array.
scalar
()
Return the first element of the array
strides
()
Return the distance in bytes between consecutive elements for each dimension.
to_array
([row_major, return_shape])
Return the data as array.array
to_ctype
([row_major, return_shape])
Return the data as a ctype C array after copying to host memory
to_list
([row_major])
Return the data as list
to_ndarray
([output])
type
()
Return the data type as an int.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4