File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -456,15 +456,7 @@ function __init__()
456
456
end
457
457
458
458
@require CuArrays= " 3a865a2d-5b23-5a0f-bc46-62713ec82fae" begin
459
- fast_scalar_indexing (:: Type{<:CuArrays.CuArray} ) = false
460
- @inline allowed_getindex (x:: CuArrays.CuArray ,i... ) = @allowscalar x[i... ]
461
- @inline allowed_setindex! (x:: CuArrays.CuArray ,v,i... ) = (@allowscalar x[i... ] = v)
462
-
463
- function Base. setindex (x:: CuArrays.CuArray ,v,i:: Int )
464
- _x = copy (x)
465
- allowed_setindex! (_x,v,i)
466
- _x
467
- end
459
+ include (" cuarrays.jl" )
468
460
end
469
461
470
462
@require BandedMatrices= " aae01518-5342-5314-be14-df237901396f" begin
Original file line number Diff line number Diff line change
1
+ fast_scalar_indexing (:: Type{<:CuArrays.CuArray} ) = false
2
+ @inline allowed_getindex (x:: CuArrays.CuArray ,i... ) = CuArrays. @allowscalar (x[i... ])
3
+ @inline allowed_setindex! (x:: CuArrays.CuArray ,v,i... ) = (CuArrays. @allowscalar (x[i... ] = v))
4
+
5
+ function Base. setindex (x:: CuArrays.CuArray ,v,i:: Int )
6
+ _x = copy (x)
7
+ allowed_setindex! (_x,v,i)
8
+ _x
9
+ end
You can’t perform that action at this time.
0 commit comments