Skip to content

Commit 2225134

Browse files
authored
Fixes to support SimpleChains.jl (#29)
* Fixes to support SimpleChains.jl * update .gitignore
1 parent 10a78fe commit 2225134

File tree

5 files changed

+393
-377
lines changed

5 files changed

+393
-377
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
*~
77
*#*
88
*#*#
9-
9+
test/Manifest.toml
10+
coverage-lcov.info

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "StrideArraysCore"
22
uuid = "7792a7ef-975c-4747-a70f-980b88e8d1da"
33
authors = ["Chris Elrod <[email protected]> and contributors"]
4-
version = "0.4.4"
4+
version = "0.4.5"
55

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

src/ptr_array.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222
struct StrideReset{T}
2323
x::T
2424
end
25-
25+
@inline Base.:(*)(x::StrideReset, y::Union{Integer,StaticInt}) = x.x * y
2626
# sizes M x N
2727
# strides nothing x nothing -> static(1) x M
2828
# strides L x nothing -> L x L*M
@@ -809,7 +809,7 @@ end
809809
)
810810
end
811811
sp = reinterpret(Tnew, stridedpointer(A))
812-
PtrArray(sp, sz)
812+
PtrArray(sp, sz, val_dense_dims(A))
813813
end
814814

815815
@generated function Base.reinterpret(

test/.JuliaFormatter.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
indent = 2

0 commit comments

Comments
 (0)