mirror of
https://github.com/gonum/gonum.git
synced 2025-10-29 01:33:14 +08:00
cgo/lapacke: allow any uplo character in xlaset and xlacpy routines
This commit is contained in:
@@ -64,6 +64,7 @@ var needsInt = map[string]bool{
|
|||||||
// The list keys are truncated by one character to cover all four numeric types.
|
// The list keys are truncated by one character to cover all four numeric types.
|
||||||
var allUplo = map[string]bool{
|
var allUplo = map[string]bool{
|
||||||
"lacpy": true,
|
"lacpy": true,
|
||||||
|
"laset": true,
|
||||||
}
|
}
|
||||||
|
|
||||||
var cToGoType = map[string]string{
|
var cToGoType = map[string]string{
|
||||||
@@ -421,13 +422,10 @@ func uplo(buf *bytes.Buffer, d binding.Declaration, p binding.Parameter) bool {
|
|||||||
ul = 'U'
|
ul = 'U'
|
||||||
case blas.Lower:
|
case blas.Lower:
|
||||||
ul = 'L'
|
ul = 'L'
|
||||||
case blas.All:
|
|
||||||
ul = 'A'
|
|
||||||
default:
|
default:
|
||||||
panic("lapack: illegal triangle")
|
ul = 'A'
|
||||||
}
|
}
|
||||||
`)
|
`)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
fmt.Fprint(buf, ` switch ul {
|
fmt.Fprint(buf, ` switch ul {
|
||||||
case blas.Upper:
|
case blas.Upper:
|
||||||
|
|||||||
Reference in New Issue
Block a user