Skip to content

Commit

Permalink
Fixes #41 and corrects bug from #40
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Apr 7, 2017
1 parent c25e79c commit 89ebb62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion c2d.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func VanLoan(A, Γ, W *mat64.Dense, Δt float64) (*mat64.Dense, *mat64.SymDense,
var err error
// Check aliasing
λ := mat64.Eigen{}
λ.Factorize(A, false)
λ.Factorize(A, false, false)
λmaxImag := -math.MaxFloat64
var λmax complex128
for _, λ := range λ.Values(nil) {
Expand Down
4 changes: 2 additions & 2 deletions truth.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *BatchGroundTruth) Error(k int, est Estimate) Estimate {
func (t *BatchGroundTruth) ErrorWithOffset(k int, est Estimate, offset *mat64.Vector) Estimate {
esR, _ := est.State().Dims()
estState := mat64.NewVector(esR, nil)
if k > 0 {
if k >= 0 {
estState.CopyVec(est.State())
if offset != nil {
estState.AddVec(estState, offset)
Expand All @@ -39,7 +39,7 @@ func (t *BatchGroundTruth) ErrorWithOffset(k int, est Estimate, offset *mat64.Ve

emR, _ := est.Measurement().Dims()
estMeas := mat64.NewVector(emR, nil)
if k > 0 {
if k >= 0 {
estMeas.CopyVec(est.Measurement())
trueMeas := mat64.NewVector(esR, nil)
if t.states != nil {
Expand Down

0 comments on commit 89ebb62

Please sign in to comment.