File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ export AbstractDeviceArray, @LocalMemory
6
6
# # device array
7
7
8
8
"""
9
- AbstractDeviceArray{T, N}
9
+ AbstractDeviceArray{T, N} <: DenseArray{T, N}
10
10
11
11
Supertype for `N`-dimensional GPU arrays (or array-like types) with elements of type `T`.
12
- This type is a subtype of `AbstractArray{T, N}`. Instances of this type are expected to live
13
- on the device, see [`AbstractGPUArray`](@ref) for device-side objects.
12
+ Instances of this type are expected to live on the device, see [`AbstractGPUArray`](@ref)
13
+ for device-side objects.
14
14
"""
15
- abstract type AbstractDeviceArray{T, N} <: AbstractArray {T, N} end
15
+ abstract type AbstractDeviceArray{T, N} <: DenseArray {T, N} end
16
16
17
17
Base. IndexStyle (:: AbstractDeviceArray ) = IndexLinear ()
18
18
Original file line number Diff line number Diff line change 3
3
export AbstractGPUArray
4
4
5
5
"""
6
- AbstractGPUArray{T, N}
6
+ AbstractGPUArray{T, N} <: DenseArray{T, N}
7
7
8
8
Supertype for `N`-dimensional GPU arrays (or array-like types) with elements of type `T`.
9
- This type is a subtype of `AbstractArray{T, N}`. Instances of this type are expected to live
10
- on the host, see [`AbstractDeviceArray`](@ref) for device-side objects.
9
+ Instances of this type are expected to live on the host, see [`AbstractDeviceArray`](@ref)
10
+ for device-side objects.
11
11
"""
12
- abstract type AbstractGPUArray{T, N} <: AbstractArray {T, N} end
12
+ abstract type AbstractGPUArray{T, N} <: DenseArray {T, N} end
13
13
14
14
const AbstractGPUVector{T} = AbstractGPUArray{T, 1 }
15
15
const AbstractGPUMatrix{T} = AbstractGPUArray{T, 2 }
You can’t perform that action at this time.
0 commit comments