Skip to content

Commit 99068a4

Browse files
committed
update for LazyStack 0.1
1 parent 1caa6b0 commit 99068a4

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name = "TensorCast"
22
uuid = "02d47bb6-7ce6-556a-be16-bb1710789e2b"
33
authors = ["Michael Abbott"]
4-
version = "0.4.4"
4+
version = "0.4.5"
55

66
[deps]
77
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
8+
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
89
LazyStack = "1fad7336-0346-5a1a-a56f-a06ba010965b"
910
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1011
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
@@ -14,8 +15,9 @@ TransmuteDims = "24ddb15e-299a-5cc3-8414-dbddc482d9ca"
1415

1516
[compat]
1617
ChainRulesCore = "1.11"
18+
Compat = "3.46, 4.2" # for stack
1719
LazyArrays = "0.21, 0.22"
18-
LazyStack = "0.0.7, 0.0.8, 0.0.9"
20+
LazyStack = "0.1.0"
1921
MacroTools = "0.5"
2022
StaticArrays = "1.3"
2123
Strided = "1.1"

src/TensorCast.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ using LinearAlgebra, Random
1717

1818
using MacroTools, StaticArrays
1919

20-
using TransmuteDims, LazyStack
21-
using LazyStack: stack_iter
22-
const stack = LazyStack.stack # since Base exports stack on 1.9
20+
using TransmuteDims, LazyStack, Compat
21+
using LazyStack: lazystack
22+
const eagerstack = Compat.stack # in Base on 1.9
2323

2424
include("macro.jl")
2525
include("pretty.jl")

src/macro.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,10 @@ function standardglue(ex, target, store::NamedTuple, call::CallInfo)
428428
AB = :( TensorCast.static_glue($B) )
429429
pop!(call.flags, :collected, :ok)
430430
elseif :lazy_0 in call.flags
431-
AB = :( TensorCast.stack_iter($B) ) # really from LazyStack
431+
AB = :( TensorCast.eagerstack($B) ) # really from Base/Compat
432432
push!(call.flags, :collected)
433433
else # if :lazy in call.flags
434-
AB = :( TensorCast.stack($B) )
434+
AB = :( TensorCast.lazystack($B) ) # really from LazyStack
435435
pop!(call.flags, :collected, :ok)
436436
end
437437

0 commit comments

Comments
 (0)