A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://arrayfire.org/arrayfire-python/arrayfire.array.html below:

arrayfire.array module — ArrayFire Python documentation

allocated()

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.

device_ptr()

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.

is_column()

Check if the array is a column i.e. it has a shape of (rows, 1).

is_complex()

Check if the array is of complex type.

is_double()

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.

is_floating()

Check if the array is of floating point type.

is_half()

Check if the array is of half floating point type (fp16).

is_integer()

Check if the array is of integer type.

is_linear()

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.

is_real_floating()

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).

is_scalar()

Check if the array is scalar i.e. it has only one element.

is_single()

Check if the array is of single precision floating point type.

is_sparse()

Check if the array is a sparse matrix.

is_vector()

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.

logical_not()

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])

Parameters

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