mirror of
https://github.com/gonum/gonum.git
synced 2025-10-23 23:23:15 +08:00

This is a clean up of the code generation (reducing the line count sigificantly and making failure much noisier prior to the CGO call - though will only catch the most egregious errors). The approach I've taken here differs significantly from that in blas/cgo where all the checks are done in the generated binding code. Here there is too much complexity, so we do the checks in the Implementation method and then call the clapack function. Also use CGO_LDFLAGS env var; this is how we do things in blas and it allows us to have code that will work with go get when the environment is correctly set up - without requiring go generate or perl use by the client.
18 lines
335 B
Go
18 lines
335 B
Go
// Copyright ©2015 The gonum Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package cgo
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/gonum/lapack/testlapack"
|
|
)
|
|
|
|
var impl = Implementation{}
|
|
|
|
func TestDpotrf(t *testing.T) {
|
|
testlapack.DpotrfTest(t, impl)
|
|
}
|