Skip to content

Commit 53bcecb

Browse files
minor tag
1 parent c33c000 commit 53bcecb

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "RecursiveArrayTools"
22
uuid = "731186ca-8d62-57ce-b412-fbd966d074cd"
33
authors = ["Chris Rackauckas <[email protected]>"]
4-
version = "2.2.0"
4+
version = "2.3.0"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

test/gpu.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
using RecursiveArrayTools, CuArrays
2+
a = ArrayPartition(([1.0f0] |> cu,[2.0f0] |> cu,[3.0f0] |> cu))
3+
b = ArrayPartition(([0.0f0] |> cu,[0.0f0] |> cu,[0.0f0] |> cu))
4+
@. a + b

test/partitions_test.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ y = p .* p'
4141
@test y[1:5,6:10] == p.x[1] .* p.x[2]'
4242
@test y[6:10,1:5] == p.x[2] .* p.x[1]'
4343

44+
a = ArrayPartition([1], [2])
45+
a .= [10, 20]
46+
4447
b = rand(10)
4548
c = rand(10)
4649
copyto!(b,p)

0 commit comments

Comments
 (0)