Ejemplo n.º 1
0
/*
 * Class:     com_intel_analytics_bigdl_mkl_MKL
 * Method:    vsPowx
 * Signature: (I[FIF[FI)V
 */
JNIEXPORT void JNICALL Java_com_intel_analytics_bigdl_mkl_MKL_vsPowx
  (JNIEnv * env, jclass cls, jint n, jfloatArray a, jint aOffset, jfloat b, jfloatArray y,
  jint yOffset) {

 jfloat * jni_a = (*env)->GetPrimitiveArrayCritical(env, a, JNI_FALSE);
 jfloat * jni_y = (*env)->GetPrimitiveArrayCritical(env, y, JNI_FALSE);

 vsPowx( n, jni_a + aOffset, b, jni_y + yOffset);

 (*env)->ReleasePrimitiveArrayCritical(env, y, jni_y, 0);
 (*env)->ReleasePrimitiveArrayCritical(env, a, jni_a, 0);
}
Ejemplo n.º 2
0
// To force linking in all needed Intel routines
// See compileCX for details (linking against .a)
void Dummy(void)
{
	vsAdd();
	vsSub();
	vsDiv();
	vsSqr();
	vsMul();
	vsAbs();
	vsInv();

	vsSin();   
	vsCos();   
	vsSinCos();
	vsTan();   
	vsAsin();  
	vsAcos();  
	vsAtan();  
	vsAtan2();

	vsSinh(); 
	vsCosh(); 
	vsTanh(); 
	vsAsinh();
	vsAcosh();
	vsAtanh();

	vsPow();    
	vsPowx();   
	vsSqrt();   
	vsCbrt();   
	vsInvSqrt();
	vsInvCbrt();
	vsHypot();

	vsFloor();   
	vsCeil();    
	vsRound();   
	vsTrunc();   
	vsRint();    
	vsNearbyInt();
	vsModf();

	vsExp();  	     
	vsLn();   
	vsLog10();

	vsErf();   
	vsErfc();  
	vsErfInv();
}
Ejemplo n.º 3
0
void caffe_powx<float>(const int n, const float* a, const float b,
                       float* y) {
    vsPowx(n, a, b, y);
}