예제 #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)))
	}
}