示例#1
0
func DotProduct_V64fV64f_S64f(x []float64, y []float64) float64 {
	var z float64 = 0.0
	if len(x) == len(y) {
		C.yepCore_DotProduct_V64fV64f_S64f((*C.Yep64f)(&x[0]), (*C.Yep64f)(&y[0]), (*C.Yep64f)(&z), C.YepSize(len(x)))
	}
	return z
}
示例#2
0
文件: Log.go 项目: wdv4758h/Yeppp
func Log_V64f_V64f(x []float64, y []float64) {
	if len(x) == len(y) {
		C.yepMath_Log_V64f_V64f((*C.Yep64f)(&x[0]), (*C.Yep64f)(&y[0]), C.YepSize(len(x)))
	}
}
示例#3
0
func EvaluatePolynomial_V64fV64f_V64f(coef []float64, x []float64, y []float64) {
	if len(x) == len(y) {
		C.yepMath_EvaluatePolynomial_V64fV64f_V64f((*C.Yep64f)(&coef[0]), (*C.Yep64f)(&x[0]), (*C.Yep64f)(&y[0]), C.YepSize(len(coef)), C.YepSize(len(x)))
	}
}