GPUArraysCore.AbstractGPUArray
— TypeAbstractGPUArray{T, N} <: DenseArray{T, N}
Supertype for N
-dimensional GPU arrays (or array-like types) with elements of type T
. Instances of this type are expected to live on the host, see AbstractDeviceArray
for device-side objects.
GPUArraysCore.AbstractGPUArrayStyle
— TypeAbstract supertype for GPU array styles. The N
parameter is the dimensionality.
Downstream implementations should provide a concrete array style type that inherits from this supertype.
GPUArraysCore.allowscalar
— Functionallowscalar([true])
allowscalar([true]) do
...
end
Use this function to allow or disallow scalar indexing, either globall or for the duration of the do block.
See also: @allowscalar
.
GPUArraysCore.assertscalar
— Methodassertscalar(op::String)
Assert that a certain operation op
performs scalar indexing. If this is not allowed, an error will be thrown (allowscalar
).
GPUArraysCore.backend
— Methodbackend(x)
backend(T::Type)
Gets the GPUArrays back-end responsible for managing arrays of type T
.
GPUArraysCore.@allowscalar
— Macro@allowscalar() begin
# code that can use scalar indexing
end
Denote which operations can use scalar indexing.
See also: allowscalar
.