Skip to content

Commit

Permalink
important bug fix; do not ignore operation in StridedView->UnsafeStri…
Browse files Browse the repository at this point in the history
…dedView conversion
  • Loading branch information
Jutho committed Apr 27, 2022
1 parent 4a03272 commit e0f890a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Strided"
uuid = "5e0ebb24-38b0-5f93-81fe-25c709ecae67"
authors = ["Jutho Haegeman"]
version = "1.2.1"
version = "1.2.2"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
2 changes: 1 addition & 1 deletion src/unsafestridedview.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ end
UnsafeStridedView(a::Ptr{T}, size::NTuple{N,Int}, strides::NTuple{N,Int},
offset::Int = 0) where {T,N} = UnsafeStridedView(a, size, strides, offset, identity)
UnsafeStridedView(a::DenseArray) = UnsafeStridedView(pointer(a), size(a), strides(a))
UnsafeStridedView(a::StridedView) = UnsafeStridedView(pointer(a), size(a), strides(a))
UnsafeStridedView(a::StridedView) = UnsafeStridedView(pointer(parent(a)), size(a), strides(a), offset(a), a.op)

UnsafeStridedView(a::Adjoint{<:Any, <:Any}) = UnsafeStridedView(a')'
UnsafeStridedView(a::Transpose{<:Any, <:Any}) =
Expand Down

2 comments on commit e0f890a

@Jutho
Copy link
Owner Author

@Jutho Jutho commented on e0f890a Apr 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/59363

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.2 -m "<description of version>" e0f890a2f29cdb5e34ad72913fee6c3e7b1aadfb
git push origin v1.2.2

Please sign in to comment.