Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

Commit

Permalink
testlapack: add isCanonicalSchur function
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-ch committed Aug 2, 2016
1 parent 4cd5473 commit 58647df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testlapack/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -838,3 +838,7 @@ func eye(n, stride int) blas64.General {
}
return ans
}

func isCanonicalSchur(a, b, c, d float64) bool {
return c == 0 || (a == d && b*c < 0)
}

0 comments on commit 58647df

Please sign in to comment.