Skip to content

Commit

Permalink
Replace full with Matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Oct 26, 2017
1 parent ada738d commit 0eea487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ACME.jl
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ function model_matrices(circ::Circuit, t::Rational{BigInt})
rhs = convert(SparseMatrixCSC{Rational{BigInt},Int},
sparse([u0(circ) mu(circ) mxd(circ)//t-mx(circ)//2;
spzeros(nb(circ), 1+nu(circ)+nx(circ))]))
x, f = map(full, gensolve(lhs, rhs))
x, f = map(Matrix, gensolve(lhs, rhs))

rowsizes = [nb(circ); nb(circ); nx(circ); nq(circ)]
res = Dict{Symbol,Array}(zip([:fv; :fi; :c; :fq], matsplit(f, rowsizes)))
Expand Down

0 comments on commit 0eea487

Please sign in to comment.