mirror of
https://github.com/gonum/gonum.git
synced 2025-10-08 16:40:06 +08:00
lapack: add Dlangt
This commit is contained in:

committed by
Vladimír Chalupecký

parent
0edb751dac
commit
ec417b4211
@@ -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.
|
||||
|
Reference in New Issue
Block a user