Skip to content
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
1b542bc
testing out n-arity implementation with SizedVector
MilesCranmer Jun 27, 2024
6b90350
Merge branch 'master' into n-arity
MilesCranmer Jul 8, 2024
ab7c65c
wip
MilesCranmer Jul 8, 2024
3ed6b41
fix: various aspects of degree interface
MilesCranmer Jul 8, 2024
b5285f7
fix: segfault in NodeIndex
MilesCranmer Jul 8, 2024
8707d24
refactor: no more need for `memoize_on`
MilesCranmer Jul 8, 2024
2a0bd05
fix: various aspects of degree interface
MilesCranmer Jul 8, 2024
1e672bc
fix: some issues with D-degree ParametricNode
MilesCranmer Jul 9, 2024
df12857
Merge branch 'master' into n-arity-v4
MilesCranmer May 3, 2025
5505506
fix: a few merge issues
MilesCranmer May 3, 2025
0514598
fix: `setproperty!` for tuple children
MilesCranmer May 3, 2025
0079acf
fix: constructor from explicit eltype
MilesCranmer May 3, 2025
97c8868
fix: permit vector children to constructor
MilesCranmer May 3, 2025
33e5966
fix: other fixes for d-degree nodes
MilesCranmer May 4, 2025
24aec43
fix: type assertion issue in constructor
MilesCranmer May 4, 2025
5f647ff
test: fix interfaces
MilesCranmer May 6, 2025
867dab6
test: fix `children` call in ReadOnlyNode
MilesCranmer May 6, 2025
b6d187b
fix: read only nodes when given ref
MilesCranmer May 6, 2025
87102d8
feat: create n-arity operator enum
MilesCranmer May 6, 2025
cda0896
feat: add generic degree pathway in evaluation
MilesCranmer May 7, 2025
673146c
feat: n-arity strings
MilesCranmer May 7, 2025
9ccb46a
feat: get expression operators working with 3-arg input
MilesCranmer May 9, 2025
633cc94
feat: get expression algebra working
MilesCranmer May 10, 2025
38101d1
fix: node conversion changing degree
MilesCranmer May 10, 2025
22154d0
fix: type instabilities
MilesCranmer May 10, 2025
092b945
feat: n-arity LoopVectorization compat
MilesCranmer May 10, 2025
f7b49a5
refactor: cleaner `call_mapreducer` for n-arity
MilesCranmer May 10, 2025
560af07
refactor: simplify constant eval code for n-arity
MilesCranmer May 10, 2025
a51f1fb
refactor: avoid need for refs by setting tuple to self
MilesCranmer May 10, 2025
1d3d834
feat: `any` and `==` working with n-arity nodes
MilesCranmer May 11, 2025
d5a69b7
fix: various issues with n-arity parametric node
MilesCranmer May 11, 2025
90fe177
fix: fix degree in `NodeIndex`
MilesCranmer May 11, 2025
b4a5ba8
fix: `set_node!` should set to `children`
MilesCranmer May 11, 2025
3905fc8
fix: node preallocation for n-arity nodes
MilesCranmer May 11, 2025
59c0878
feat: complete node interface for n-arity
MilesCranmer May 11, 2025
b78097a
feat: add `children` to required interface
MilesCranmer May 11, 2025
008dfbc
feat: better interface for children
MilesCranmer May 11, 2025
97abbd0
feat: make differentiable eval work for n-arity
MilesCranmer May 11, 2025
067734a
feat: make generic eval allow n-arity nodes
MilesCranmer May 11, 2025
7b04a15
refactor: remove reference stuff from read only nodes
MilesCranmer May 11, 2025
83902e3
feat: make diff compatibility with n-arity
MilesCranmer May 11, 2025
3845539
refactor: simplify eval code
MilesCranmer May 11, 2025
5f977ab
feat: make grad compatible with n-arity
MilesCranmer May 11, 2025
7b51c06
feat: n-arity compat with simplification
MilesCranmer May 11, 2025
4f31a85
feat: n-arity compat with bumper
MilesCranmer May 12, 2025
f9d21c6
refactor: avoid `NTuple` typing
MilesCranmer May 12, 2025
69cd372
docs: tweak docstring
MilesCranmer May 12, 2025
422b5c5
feat: parsing for D-degree nodes
MilesCranmer May 12, 2025
fb248de
test: integrate Supposition testing
MilesCranmer May 12, 2025
e3da69b
refactor: better name for poison node
MilesCranmer May 12, 2025
4f2c117
refactor: fix type instability in parametric expression converter
MilesCranmer May 12, 2025
b309f52
refactor: reduce new type instabilities in generic eval
MilesCranmer May 13, 2025
b66b178
refactor: eliminate other type instabilities
MilesCranmer May 13, 2025
6e78b27
fix: attempt type stability fix for union of `Type{Union{}}` with oth…
MilesCranmer May 13, 2025
bae7063
test: move test to main file
MilesCranmer May 13, 2025
1d61192
fix: `convert` should check degree
MilesCranmer May 13, 2025
24b4ed0
test: make `FrozenNode` also overload `with_max_degree`
MilesCranmer May 13, 2025
befee81
feat: add `with_max_degree` to required interface
MilesCranmer May 13, 2025
0668a58
fix: missing import
MilesCranmer May 13, 2025
a960c27
test: move preferences to test/Project.toml
MilesCranmer May 13, 2025
7978292
refactor: additional tricks to try to improve type stability
MilesCranmer May 14, 2025
a623e8f
test: fix imaginary type instability from Interfaces.jl
MilesCranmer May 14, 2025
5472e8a
test: fix dd seting
MilesCranmer May 14, 2025
2bf20fa
feat: `set_children!` to work with vector
MilesCranmer May 15, 2025
8495d80
test: remove Enzyme as required part of test suite
MilesCranmer May 30, 2025
0af1700
feat: fix children set in ParametricNode
MilesCranmer May 30, 2025
7d2a542
test: incorporate turbo and bumper in supposition test
MilesCranmer May 30, 2025
358d21f
test: refactor supposition test
MilesCranmer May 31, 2025
7a69a7b
fix: fix JET identified missing method
MilesCranmer May 31, 2025
7689999
chore: bump major version with n-ary nodes
MilesCranmer May 31, 2025
0514c90
refactor: more generic `set_node!` implementation
MilesCranmer May 31, 2025
f16af83
refactor: use generic getters and setters
MilesCranmer May 31, 2025
981e3b0
docs: describe generic getters and setters
MilesCranmer Jun 1, 2025
84f8121
docs: describe changelog
MilesCranmer Jun 1, 2025
caca487
docs: fix signatures
MilesCranmer Jun 1, 2025
acbef0f
docs: fix example with base operations
MilesCranmer Jun 1, 2025
fe1c9d7
merge branch 'master' into n-arity-v4
MilesCranmer Jun 1, 2025
5772472
docs: clean up
MilesCranmer Jun 7, 2025
a25db43
wip: new operator enum construction syntax
MilesCranmer Jun 7, 2025
6fbc5ea
feat: new operator enum construction and `@extend_operators`
MilesCranmer Jun 8, 2025
4cead25
refactor: remove duplicate code
MilesCranmer Jun 8, 2025
01ef42a
feat: allow vector of functions to OperatorEnum
MilesCranmer Jun 8, 2025
f313563
docs: update OperatorEnum syntax
MilesCranmer Jun 8, 2025
6c9d345
fix: operator conversion
MilesCranmer Jun 8, 2025
e0af4ce
style: remove old comment
MilesCranmer Jun 8, 2025
eef67f0
fix: edge case with chainable operators
MilesCranmer Jun 8, 2025
af76a5c
test: expand coverage
MilesCranmer Jun 8, 2025
585bbc0
style: remove old compat branches
MilesCranmer Jun 8, 2025
471b1fa
test: expand coverage
MilesCranmer Jun 8, 2025
5d39efc
refactor: remove ReadOnlyNode and simplify interface
MilesCranmer Jun 8, 2025
35e253c
test: expand coverage
MilesCranmer Jun 8, 2025
26ce63b
test: fix type instability on 1.10 tests
MilesCranmer Jun 8, 2025
02c5f10
refactor: avoid creating separate function for standard overloads
MilesCranmer Jun 8, 2025
edc1981
style: more obvious error in grad eval
MilesCranmer Jun 8, 2025
4d945ac
docs: improve description of `get_children`
MilesCranmer Jun 8, 2025
6a00ffa
test: non-Val get_children
MilesCranmer Jun 8, 2025
67248f7
fix: bad edit on get_child
MilesCranmer Jun 8, 2025
0798f57
test: graph compat with 3-arity nodes
MilesCranmer Jun 8, 2025
3da2fae
fix: correctly mark unstable
MilesCranmer Jun 8, 2025
938b335
chore: remove old code
MilesCranmer Jun 8, 2025
cdc980d
feat: guard undefined children behind Nullable
MilesCranmer Jun 9, 2025
59c41fd
fix: `ntuple` from `UInt8`
MilesCranmer Jun 9, 2025
d11ec78
test: fix ParametricExpression test
MilesCranmer Jun 9, 2025
757fb0a
style: prevent symbol conflicts in macro
MilesCranmer Jun 9, 2025
11f4465
test: fix access error
MilesCranmer Jun 9, 2025
f1d3a83
style: clean up macro generation in operator construction
MilesCranmer Jun 9, 2025
f1e92b9
docs: get building
MilesCranmer Jun 9, 2025
37d30bc
docs: work on upgrade guide
MilesCranmer Jun 9, 2025
4afa1a1
docs: describe OperatorEnum changes
MilesCranmer Jun 9, 2025
2b7d655
docs: work on upgrade guide
MilesCranmer Jun 9, 2025
dfdec54
docs: update upgrade guide
MilesCranmer Jun 9, 2025
67471f9
refactor: add an inline
MilesCranmer Jun 14, 2025
d0917c3
refactor: reduce compilation
MilesCranmer Jun 14, 2025
f948ddb
fix: mutation error for Zygote
MilesCranmer Jun 14, 2025
eeafb34
style: cleaner test code
MilesCranmer Jun 14, 2025
b4d71b0
style: consistent usage of max_degree
MilesCranmer Jun 14, 2025
83f0558
Merge branch 'master' into n-arity-v4
MilesCranmer Jun 14, 2025
4889408
Merge branch 'master' into n-arity-v4
MilesCranmer Jun 14, 2025
1c0d019
Merge branch 'master' into n-arity-v4
MilesCranmer Jun 14, 2025
3034262
ci: hide misses from coverage
MilesCranmer Jun 15, 2025
9c7e658
ci: prevent codecov from failing ci
MilesCranmer Jun 15, 2025
564d3b3
ci: more masking for codecov
MilesCranmer Jun 15, 2025
a89d22f
ci: more test coverage cleanup
MilesCranmer Jun 15, 2025
921c591
test: improve coverage
MilesCranmer Jun 15, 2025
73ad287
docs: fix docstring for `unsafe_get_children`
MilesCranmer Jun 15, 2025
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
1 change: 1 addition & 0 deletions src/DynamicExpressions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import .NodeModule:
constructorof,
with_type_parameters,
preserve_sharing,
max_degree,
leaf_copy,
branch_copy,
leaf_hash,
Expand Down
92 changes: 76 additions & 16 deletions src/Evaluate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module EvaluateModule

using DispatchDoctor: @stable, @unstable

import ..NodeModule: AbstractExpressionNode, constructorof
import ..NodeModule: AbstractExpressionNode, constructorof, max_degree, children
import ..StringsModule: string_tree
import ..OperatorEnumModule: OperatorEnum, GenericOperatorEnum
import ..UtilsModule: fill_similar, counttuple, ResultOk
Expand Down Expand Up @@ -251,8 +251,14 @@ end

# These are marked unstable due to issues discussed on
# https://github.com/JuliaLang/julia/issues/55147
@unstable get_nuna(::Type{<:OperatorEnum{B,U}}) where {B,U} = counttuple(U)
@unstable get_nbin(::Type{<:OperatorEnum{B}}) where {B} = counttuple(B)
@unstable function get_nuna(::Type{<:OperatorEnum{OPS}}) where {OPS}
ts = OPS.types
return isempty(ts) ? 0 : counttuple(ts[1])
end
@unstable function get_nbin(::Type{<:OperatorEnum{OPS}}) where {OPS}
ts = OPS.types
return length(ts) == 1 ? 0 : counttuple(ts[2])
end

function _eval_tree_array(
tree::AbstractExpressionNode{T},
Expand All @@ -275,35 +281,43 @@ function _eval_tree_array(
elseif tree.degree == 1
op_idx = tree.op
return dispatch_deg1_eval(tree, cX, op_idx, operators, eval_options)
else
elseif max_degree(tree) == 2 || tree.degree == 2
# TODO - add op(op2(x, y), z) and op(x, op2(y, z))
# op(x, y), where x, y are constants or variables.
op_idx = tree.op
return dispatch_deg2_eval(tree, cX, op_idx, operators, eval_options)
else
op_idx = tree.op
return dispatch_degn_eval(tree, cX, op_idx, operators, eval_options)
end
end

@generated function degn_eval(
cumulators::NTuple{N,<:AbstractVector{T}}, op::F, ::EvalOptions{false}
)::ResultOk where {N,T,F}
# Fast general implementation of `cumulators[1] .= op.(cumulators[1], cumulators[2], ...)`
quote
Base.Cartesian.@nexprs($N, i -> cumulator_i = cumulators[i])
@inbounds @simd for j in eachindex(cumulator_1)
cumulator_1[j] = Base.Cartesian.@ncall($N, op, i -> cumulator_i[j])::T
end
return ResultOk(cumulator_1, true)
end
end

function deg2_eval(
cumulator_l::AbstractVector{T},
cumulator_r::AbstractVector{T},
op::F,
::EvalOptions{false},
eval_options::EvalOptions{false},
)::ResultOk where {T,F}
@inbounds @simd for j in eachindex(cumulator_l)
x = op(cumulator_l[j], cumulator_r[j])::T
cumulator_l[j] = x
end
return ResultOk(cumulator_l, true)
return degn_eval((cumulator_l, cumulator_r), op, eval_options)
end

function deg1_eval(
cumulator::AbstractVector{T}, op::F, ::EvalOptions{false}
cumulator::AbstractVector{T}, op::F, eval_options::EvalOptions{false}
)::ResultOk where {T,F}
@inbounds @simd for j in eachindex(cumulator)
x = op(cumulator[j])::T
cumulator[j] = x
end
return ResultOk(cumulator, true)
return degn_eval((cumulator,), op, eval_options)
end

function deg0_eval(
Expand All @@ -318,6 +332,52 @@ function deg0_eval(
end
end

@generated function inner_dispatch_degn_eval(
tree::AbstractExpressionNode{T},
cX::AbstractMatrix{T},
op_idx::Integer,
::Val{degree},
operators::OperatorEnum{OPS},
eval_options::EvalOptions,
) where {T,degree,OPS}
nops = length(OPS.types[degree].types)
return quote
cs = children(tree, Val($degree))
Base.Cartesian.@nexprs(
$degree,
i -> begin
result_i = _eval_tree_array(cs[i], cX, operators, eval_options)
!result_i.ok && return result_i
@return_on_nonfinite_array(eval_options, result_i.x)
end
)
cumulators = Base.Cartesian.@ntuple($degree, i -> result_i.x)
Base.Cartesian.@nif(
$nops,
i -> i == op_idx,
i -> degn_eval(cumulators, operators[$degree][i], eval_options),
)
end
end
@generated function dispatch_degn_eval(
tree::AbstractExpressionNode{T},
cX::AbstractMatrix{T},
op_idx::Integer,
operators::OperatorEnum,
eval_options::EvalOptions,
) where {T}
D = max_degree(tree)
return quote
# If statement over degrees
degree = tree.degree
return Base.Cartesian.@nif(
$D,
d -> d == degree,
d ->
inner_dispatch_degn_eval(tree, cX, op_idx, Val(d), operators, eval_options)
)
end
end
@generated function dispatch_deg2_eval(
tree::AbstractExpressionNode{T},
cX::AbstractMatrix{T},
Expand Down
10 changes: 8 additions & 2 deletions src/Expression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ using ..OperatorEnumModule: AbstractOperatorEnum, OperatorEnum
using ..UtilsModule: Undefined
using ..ChainRulesModule: NodeTangent

import ..NodeModule: copy_node, set_node!, count_nodes, tree_mapreduce, constructorof
import ..NodeModule:
copy_node, set_node!, count_nodes, tree_mapreduce, constructorof, max_degree
import ..NodeUtilsModule:
preserve_sharing,
count_constant_nodes,
Expand Down Expand Up @@ -99,9 +100,14 @@ end
return Expression(tree, Metadata(d))
end

has_node_type(::Union{E,Type{E}}) where {N,E<:AbstractExpression{<:Any,N}} = true
has_node_type(::Union{E,Type{E}}) where {E<:AbstractExpression} = false
node_type(::Union{E,Type{E}}) where {N,E<:AbstractExpression{<:Any,N}} = N
function max_degree(::Union{E,Type{E}}) where {E<:AbstractExpression}
return has_node_type(E) ? max_degree(node_type(E)) : max_degree(Node)
end
@unstable default_node_type(_) = Node
default_node_type(::Type{<:AbstractExpression{T}}) where {T} = Node{T}
default_node_type(::Type{N}) where {T,N<:AbstractExpression{T}} = Node{T,max_degree(N)}

########################################################
# Abstract interface ###################################
Expand Down
129 changes: 72 additions & 57 deletions src/ExpressionAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,86 +54,96 @@ of the expression.
"""
declare_operator_alias(op::F, _) where {F<:Function} = op

function apply_operator(op::F, l::AbstractExpression) where {F<:Function}
operators = get_operators(l, nothing)
op_idx = findfirst(
==(op), map(Base.Fix2(declare_operator_alias, Val(1)), operators.unaops)
)
if op_idx === nothing
throw(
MissingOperatorError(
"Operator $op not found in operators for expression type $(typeof(l)) with unary operators $(operators.unaops)",
),
)
end
return insert_operator_index(op_idx, (l,), l)
end
function apply_operator(op::F, l, r) where {F<:Function}
(operators, example_expr) = if l isa AbstractExpression && r isa AbstractExpression
@assert typeof(r) === typeof(l)
(get_operators(l, nothing), l)
elseif l isa AbstractExpression
(get_operators(l, nothing), l)
allow_chaining(@nospecialize(op)) = false
allow_chaining(::typeof(+)) = true
allow_chaining(::typeof(*)) = true

function apply_operator(op::F, args::Vararg{Any,D}) where {F<:Function,D}
idx = findfirst(e -> e isa AbstractExpression, args)::Int
example_expr = args[idx]
E = typeof(example_expr)
@assert all(e -> !(e isa AbstractExpression) || typeof(e) === E, args)
operators = get_operators(example_expr, nothing)

op_idx = if length(operators) >= D
findfirst(==(op), map(Base.Fix2(declare_operator_alias, Val(D)), operators[D]))
else
r::AbstractExpression
(get_operators(r, nothing), r)
nothing
end
op_idx = findfirst(
==(op), map(Base.Fix2(declare_operator_alias, Val(2)), operators.binops)
)
if op_idx === nothing
if isnothing(op_idx)
if allow_chaining(op) && D > 2
# These operators might get chained by Julia, so we check
# downward for any matching arity.
inner = apply_operator(op, args[1:(end - 1)]...)
return apply_operator(op, inner, args[end])
end
throw(
MissingOperatorError(
"Operator $op not found in operators for expression type $(typeof(l)) with binary operators $(operators.binops)",
"Operator $op not found in operators for expression type " *
"$(E) with $(D)-degree operators $(operators[D])",
),
)
end
return insert_operator_index(op_idx, (l, r), example_expr)
return insert_operator_index(op_idx, args, example_expr)
end

"""
@declare_expression_operator(op, arity)

Declare an operator function for `AbstractExpression` types.

This macro generates a method for the given operator `op` that works with
`AbstractExpression` arguments. The `arity` parameter specifies whether
the operator is unary (1) or binary (2).

# Arguments
- `op`: The operator to be declared (e.g., `Base.sin`, `Base.:+`).
- `arity`: The number of arguments the operator takes (1 for unary, 2 for binary).
This macro generates methods for the given operator `op` that work with
`AbstractExpression` arguments. The `arity` parameter specifies the number
of arguments the operator takes.
"""
macro declare_expression_operator(op, arity)
@assert arity ∈ (1, 2)
syms = [Symbol('x', i) for i in 1:arity]
AE = :($(AbstractExpression))
if arity == 1
return esc(
quote
$op(l::AbstractExpression) = $(apply_operator)($op, l)
$op($(only(syms))::$(AE)) = $(apply_operator)($op, $(only(syms)))
end,
)
elseif arity == 2
return esc(
quote
function $op(l::AbstractExpression, r::AbstractExpression)
return $(apply_operator)($op, l, r)
end
function $op(l::T, r::AbstractExpression{T}) where {T}
return $(apply_operator)($op, l, r)
end
function $op(l::AbstractExpression{T}, r::T) where {T}
return $(apply_operator)($op, l, r)
end
# Convenience methods for Number types
function $op(l::Number, r::AbstractExpression{T}) where {T}
return $(apply_operator)($op, l, r)
end
function $op(l::AbstractExpression{T}, r::Number) where {T}
return $(apply_operator)($op, l, r)
end
end,
end

wrappers = (AE, :($(AE){T}), :T, :Number)
methods = Expr(:block)

for types in Iterators.product(ntuple(_ -> wrappers, arity)...)
has_expr = any(
t -> t == AE || (t isa Expr && t.head == :curly && t.args[1] == AE), types
)
has_plain_T = any(==(:T), types)
has_abstract_expr_T = any(
t -> t isa Expr && t.head == :curly && t.args[1] == AE && :T in t.args, types
)
has_abstract_expr_plain = any(==(AE), types)
if any((
!has_expr,
# ^At least one arg must be an AbstractExpression (avoid type‑piracy)
has_abstract_expr_plain && has_abstract_expr_T,
# ^If a plain `T` appears, ensure an `AbstractExpression{T}` is also present
has_plain_T ⊻ has_abstract_expr_T,
# ^Do not mix bare `AbstractExpression` with `AbstractExpression{T}`
))
continue
end

arglist = [Expr(:(::), syms[i], types[i]) for i in 1:arity]
signature = Expr(:call, op, arglist...)
if any(t -> t == :T || (t isa Expr && t.head == :curly && :T in t.args), types)
signature = Expr(:where, signature, :(T))
end

body = Expr(:block, :(return $(apply_operator)($op, $(syms...))))

fn = Expr(:function, signature, body)

push!(methods.args, fn)
end

return esc(methods)
end

#! format: off
Expand All @@ -159,6 +169,11 @@ for op in (
)
@eval @declare_expression_operator Base.$(op) 2
end
for op in (
:*, :+, :clamp, :max, :min, :fma, :muladd,
)
@eval @declare_expression_operator Base.$(op) 3
end
#! format: on

end
12 changes: 8 additions & 4 deletions src/Interfaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ function _check_get_metadata(ex::AbstractExpression)
new_ex = with_metadata(ex, get_metadata(ex))
return new_ex == ex && new_ex isa typeof(ex)
end
function _check_get_tree(ex::AbstractExpression{T,N}) where {T,N}
return get_tree(ex) isa N || get_tree(ex) isa AbstractReadOnlyNode{T,N}
function _check_get_tree(
ex::AbstractExpression{T,N}
) where {T,D,N<:AbstractExpressionNode{T,D}}
return get_tree(ex) isa N || get_tree(ex) isa AbstractReadOnlyNode{T,D,N}
end
function _check_get_operators(ex::AbstractExpression)
return get_operators(ex) isa AbstractOperatorEnum
Expand Down Expand Up @@ -143,9 +145,11 @@ end
function _check_constructorof(ex::AbstractExpression)
return constructorof(typeof(ex)) isa Base.Callable
end
function _check_tree_mapreduce(ex::AbstractExpression{T,N}) where {T,N}
function _check_tree_mapreduce(
ex::AbstractExpression{T,N}
) where {T,D,N<:AbstractExpressionNode{T,D}}
return tree_mapreduce(node -> [node], vcat, ex) isa
(Vector{N2} where {N2<:Union{N,AbstractReadOnlyNode{T,N}}})
(Vector{N2} where {N2<:Union{N,AbstractReadOnlyNode{T,D,N}}})
end

#! format: off
Expand Down
Loading
Loading