Example #1
0
  JNIEXPORT jint JNICALL Java_edu_berkeley_bid_CUMAT_reduce1lop
  (JNIEnv *env, jobject obj, jint nrows, jint ncols, jobject jA, jobject jB, jlong initv, jint opn)
  {
    long long *A = (long long*)getPointer(env, jA);
    long long *B = (long long*)getPointer(env, jB);

    return reduce1op(nrows, ncols, A, B, initv, opn);
  }
Example #2
0
  JNIEXPORT jint JNICALL Java_edu_berkeley_bid_CUMATD_reduce1op
  (JNIEnv *env, jobject obj, jint nrows, jint ncols, jobject jA, jobject jB, jint opn)
  {
    double *A = (double*)getPointer(env, jA);
    double *B = (double*)getPointer(env, jB);

    return reduce1op(nrows, ncols, A, B, opn);
  }
Example #3
0
  JNIEXPORT jint JNICALL Java_edu_berkeley_bid_CUMAT_reduce1op
  (JNIEnv *env, jobject obj, jint nrows, jint ncols, jobject jA, jobject jB, jfloat initv, jint opn)
  {
    float *A = (float*)getPointer(env, jA);
    float *B = (float*)getPointer(env, jB);

    return reduce1op(nrows, ncols, A, B, initv, opn);
  }