Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/AxisAlgorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function alloc_matmul{S,N}(M,src::AbstractArray{S,N},dim)
sz = [size(src)...]
sz[dim] = size(M,1)
T = Base.promote_op(@functorize(*), eltype(M), S) # functorize macro used to support julia 0.4
VERSION < v"0.5.0" ? Array{T}(sz...) : Array{T,N}(sz...)
VERSION < v"0.5.0" ? Array{T}((sz...)) : Array{T,N}((sz...))
end

include("tridiag.jl")
Expand Down
4 changes: 2 additions & 2 deletions test/woodbury.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ W = Woodbury(F, U, C, V)

src = rand(5, 8)
@test W\src ≈ AxisAlgorithms.A_ldiv_B_md(W, src, 1)
src = rand(5, 5, 5)
for dim = 1:3
src = rand((5, 5, 5, 5))
for dim = 1:4
dest1 = mapslices(x->W\x, copy(src), dim)
dest2 = similar(src)
AxisAlgorithms.A_ldiv_B_md!(dest2, W, src, dim)
Expand Down