mat: allow cross-raw shadow detection

This commit is contained in:
kortschak
2017-12-07 10:04:23 +10:30
committed by Dan Kortschak
parent b525d7913d
commit 835cce7bd0
4 changed files with 20 additions and 17 deletions

View File

@@ -344,7 +344,7 @@ func (t *TriDense) Copy(a Matrix) (r, c int) {
// avoided where possible, for example by using the Solve routines.
func (t *TriDense) InverseTri(a Triangular) error {
if rt, ok := a.(RawTriangular); ok {
t.checkOverlap(rt.RawTriangular())
t.checkOverlap(generalFromTriangular(rt.RawTriangular()))
}
n, _ := a.Triangle()
t.reuseAs(a.Triangle())