|
7 | 7 |
|
8 | 8 | independent_variables(sc::SymbolCache) = sc.indepsym |
9 | 9 | independent_variables(::SymbolCache{S,Nothing}) where {S} = [] |
| 10 | +is_indep_sum(::Any, _) = false |
10 | 11 | is_indep_sym(sc::SymbolCache, sym) = any(isequal(sym), sc.indepsym) |
11 | 12 | is_indep_sym(::SymbolCache{S,Nothing}, _) where {S} = false |
12 | 13 | states(sc::SymbolCache) = sc.syms |
13 | 14 | states(::SymbolCache{Nothing}) = [] |
14 | 15 | state_sym_to_index(sc::SymbolCache, sym) = findfirst(isequal(sym), sc.syms) |
15 | 16 | state_sym_to_index(::SymbolCache{Nothing}, _) = nothing |
| 17 | +is_state_sym(::Any, _) = false |
16 | 18 | is_state_sym(sc::SymbolCache, sym) = !isnothing(state_sym_to_index(sc, sym)) |
17 | 19 | parameters(sc::SymbolCache) = sc.paramsyms |
18 | 20 | parameters(::SymbolCache{S,T,Nothing}) where {S,T} = [] |
19 | 21 | param_sym_to_index(sc::SymbolCache, sym) = findfirst(isequal(sym), sc.paramsyms) |
20 | 22 | param_sym_to_index(::SymbolCache{S,T,Nothing}, _) where {S,T} = nothing |
| 23 | +is_param_sym(::Any, _) = false |
21 | 24 | is_param_sym(sc::SymbolCache, sym) = !isnothing(param_sym_to_index(sc, sym)) |
22 | 25 |
|
23 | 26 | Base.copy(VA::SymbolCache) = typeof(VA)( |
|
0 commit comments