lapack/gonum,testlapack: fix bug in Dtrevc3 and rework its test

This commit is contained in:
Vladimir Chalupecky
2020-02-05 18:42:19 +01:00
committed by Vladimír Chalupecký
parent 133b3496e8
commit aafb56522f
3 changed files with 379 additions and 160 deletions

View File

@@ -783,9 +783,9 @@ func residualRightEV(a, e blas64.General, wr, wi []float64) float64 {
return math.Min(errnorm/anorm, 1)
}
// residualRightEV returns the residual
// residualLeftEV returns the residual
// | Aᵀ E - E Wᵀ|_1 / ( |Aᵀ|_1 |E|_1 )
// where the columns of E contain the right eigenvectors of A and W is a block diagonal matrix with
// where the columns of E contain the left eigenvectors of A and W is a block diagonal matrix with
// a 1×1 block for each real eigenvalue and a 2×2 block for each complex conjugate pair.
func residualLeftEV(a, e blas64.General, wr, wi []float64) float64 {
// The implementation follows DGET22 routine from the Reference LAPACK's