lapack: add Dlangt

This commit is contained in:
Vladimir Chalupecky
2020-10-20 06:52:30 +02:00
committed by Vladimír Chalupecký
parent 0edb751dac
commit ec417b4211
5 changed files with 252 additions and 0 deletions

View File

@@ -432,6 +432,14 @@ func Lange(norm lapack.MatrixNorm, a blas64.General, work []float64) float64 {
return lapack64.Dlange(norm, a.Rows, a.Cols, a.Data, max(1, a.Stride), work)
}
// Langt computes the specified norm of an n×n tridiagonal matrix.
//
// Dlangt is not part of the lapack.Float64 interface and so calls to Langt are
// always executed by the Gonum implementation.
func Langt(norm lapack.MatrixNorm, a Tridiagonal) float64 {
return gonum.Implementation{}.Dlangt(norm, a.N, a.DL, a.D, a.DU)
}
// Lansb computes the specified norm of an n×n symmetric band matrix. If
// norm == lapack.MaxColumnSum or norm == lapack.MaxRowSum, work must have length
// at least n and this function will panic otherwise.