8282Holds `alias_A` and `alias_b` which determine whether
8383to alias `A` and `b` when solving a `LinearProblem`.
8484"""
85- struct LinearAliases <: AbstractAliasSpecifier
85+ struct LinearAliasSpecifier <: AbstractAliasSpecifier
86+ alias_p:: Union{Bool,Nothing}
87+ alias_f:: Union{Bool,Nothing}
8688 alias_A:: Union{Bool,Nothing}
8789 alias_b:: Union{Bool,Nothing}
8890end
8991
9092"""
91- LinearAliases (;alias_A = nothing, alias_b = nothing)
93+ LinearAliasSpecifier (;alias_A = nothing, alias_b = nothing)
9294
93- Creates a `LinearAliases ` where `alias_A` and `alias_b` default to `nothing`.
95+ Creates a `LinearAliasSpecifier ` where `alias_A` and `alias_b` default to `nothing`.
9496When `alias_A` or `alias_b` is nothing, the default value of the solver is used.
9597"""
96- function LinearAliases (;alias_A = nothing , alias_b = nothing )
97- LinearAliases (alias_A, alias_b)
98+ function LinearAliasSpecifier (;alias_A = nothing , alias_b = nothing , alias_p = nothing , alias_f = nothing , alias = nothing )
99+ if alias == true
100+ LinearAliasSpecifier (true ,true ,true ,true )
101+ elseif alias == false
102+ LinearAliasSpecifier (false ,false ,false ,false )
103+ elseif isnothing (alias)
104+ LinearAliasSpecifier (alias_p, alias_f, alias_A, alias_b)
105+ end
98106end
0 commit comments