Пример #1
0
func CTestGemm(m, n, p int) (fnc func(), A, B, C *matrix.FloatMatrix) {
	A, B, C = mperf.MakeData(m, n, p, randomData, false)
	fnc = func() {
		blas.GemmFloat(A, B, C, 1.0, 1.0)
	}
	return fnc, A, B, C
}
Пример #2
0
func CTestGemmTransB(m, n, p int) (fnc func(), A, B, C *matrix.FloatMatrix) {
	A, B, C = mperf.MakeData(m, n, p, randomData, false)
	B = B.Transpose()
	fnc = func() {
		blas.GemmFloat(A, B, C, 1.0, 1.0, linalg.OptTransB)
	}
	return fnc, A, B, C
}