mirror of
https://github.com/gonum/gonum.git
synced 2025-10-05 23:26:52 +08:00
lapack64: add Lansb and Lantb
This commit is contained in:

committed by
Vladimír Chalupecký

parent
9c9ecbc337
commit
a9c58dba17
@@ -424,6 +424,17 @@ 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)
|
return lapack64.Dlange(norm, a.Rows, a.Cols, a.Data, max(1, a.Stride), work)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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.
|
||||||
|
// There are no restrictions on work for the other matrix norms.
|
||||||
|
//
|
||||||
|
// Dlansb is not part of the lapack.Float64 interface and so calls to Lansb are always
|
||||||
|
// executed by the Gonum implementation.
|
||||||
|
func Lansb(norm lapack.MatrixNorm, a blas64.SymmetricBand, work []float64) float64 {
|
||||||
|
return gonum.Implementation{}.Dlansb(norm, a.Uplo, a.N, a.K, a.Data, max(1, a.Stride), work)
|
||||||
|
}
|
||||||
|
|
||||||
// Lansy computes the specified norm of an n×n symmetric matrix. If
|
// Lansy computes the specified norm of an n×n symmetric matrix. If
|
||||||
// norm == lapack.MaxColumnSum or norm == lapack.MaxRowSum, work must have length
|
// norm == lapack.MaxColumnSum or norm == lapack.MaxRowSum, work must have length
|
||||||
// at least n and this function will panic otherwise.
|
// at least n and this function will panic otherwise.
|
||||||
@@ -439,6 +450,14 @@ func Lantr(norm lapack.MatrixNorm, a blas64.Triangular, work []float64) float64
|
|||||||
return lapack64.Dlantr(norm, a.Uplo, a.Diag, a.N, a.N, a.Data, max(1, a.Stride), work)
|
return lapack64.Dlantr(norm, a.Uplo, a.Diag, a.N, a.N, a.Data, max(1, a.Stride), work)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Lantb computes the specified norm of an n×n triangular band matrix A. If
|
||||||
|
// norm == lapack.MaxColumnSum work must have length at least n and this function
|
||||||
|
// will panic otherwise. There are no restrictions on work for the other matrix
|
||||||
|
// norms.
|
||||||
|
func Lantb(norm lapack.MatrixNorm, a blas64.TriangularBand, work []float64) float64 {
|
||||||
|
return gonum.Implementation{}.Dlantb(norm, a.Uplo, a.Diag, a.N, a.K, a.Data, max(1, a.Stride), work)
|
||||||
|
}
|
||||||
|
|
||||||
// Lapmt rearranges the columns of the m×n matrix X as specified by the
|
// Lapmt rearranges the columns of the m×n matrix X as specified by the
|
||||||
// permutation k_0, k_1, ..., k_{n-1} of the integers 0, ..., n-1.
|
// permutation k_0, k_1, ..., k_{n-1} of the integers 0, ..., n-1.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user