We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69fb852 commit 5b72babCopy full SHA for 5b72bab
src/solve.jl
@@ -38,6 +38,7 @@ function sym_lu(A)
38
end
39
40
41
+ @pa p
42
LU(factors, p, BlasInt(0))
43
44
@@ -56,10 +57,23 @@ function A_b(eqs, vars)
56
57
A, b
58
59
60
+macro pa(x)
61
+ n = string(x)
62
+ quote
63
+ println($n, " = ")
64
+ Base.print_array(stdout, $(esc(x)))
65
+ println()
66
+ end
67
+end
68
function solve_for(eqs, vars)
69
+ @pa eqs
70
+ @pa vars
71
+
72
A, b = A_b(eqs, vars)
73
A = SymbolicUtils.simplify.(to_symbolic.(A), polynorm=true)
74
b = SymbolicUtils.simplify.(to_symbolic.(b), polynorm=true)
75
+ @pa A
76
+ @pa b
77
map(to_mtk, SymbolicUtils.simplify.(ldiv(sym_lu(A), b)))
78
79
0 commit comments