mirror of
https://github.com/gonum/gonum.git
synced 2025-10-28 01:21:44 +08:00
Added level 1 double test code to cblas and changed -framework to Accelerate
This commit is contained in:
@@ -10,7 +10,7 @@ package cblas
|
|||||||
/*
|
/*
|
||||||
#cgo CFLAGS: -g -O2
|
#cgo CFLAGS: -g -O2
|
||||||
#cgo linux LDFLAGS: -L/usr/lib/ -lcblas
|
#cgo linux LDFLAGS: -L/usr/lib/ -lcblas
|
||||||
#cgo darwin LDFLAGS: -DYA_BLAS -DYA_LAPACK -DYA_BLASMULT -framework vecLib
|
#cgo darwin LDFLAGS: -DYA_BLAS -DYA_LAPACK -DYA_BLASMULT -framework Accelerate
|
||||||
#include "cblas.h"
|
#include "cblas.h"
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|||||||
56
cblas/level1double_test.go
Normal file
56
cblas/level1double_test.go
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
package cblas
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/gonum/blas/testblas"
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
|
var blasser = Blas{}
|
||||||
|
|
||||||
|
func TestDasum(t *testing.T) {
|
||||||
|
testblas.DasumTest(t, blasser)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestDaxpy(t *testing.T) {
|
||||||
|
testblas.DaxpyTest(t, blasser)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestDdot(t *testing.T) {
|
||||||
|
testblas.DdotTest(t, blasser)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestDnrm2(t *testing.T) {
|
||||||
|
testblas.Dnrm2Test(t, blasser)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestIdamax(t *testing.T) {
|
||||||
|
testblas.IdamaxTest(t, blasser)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestDswap(t *testing.T) {
|
||||||
|
testblas.DswapTest(t, blasser)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestDcopy(t *testing.T) {
|
||||||
|
testblas.DcopyTest(t, blasser)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestDrotg(t *testing.T) {
|
||||||
|
testblas.DrotgTest(t, blasser)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestDrotmg(t *testing.T) {
|
||||||
|
testblas.DrotmgTest(t, blasser)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestDrot(t *testing.T) {
|
||||||
|
testblas.DrotTest(t, blasser)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestDrotm(t *testing.T) {
|
||||||
|
testblas.DrotmTest(t, blasser)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestDscal(t *testing.T) {
|
||||||
|
testblas.DscalTest(t, blasser)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user