• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2011 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef LEARNINGFW_JNI_MULTICLASS_PA_H
18 #define LEARNINGFW_JNI_MULTICLASS_PA_H
19 
20 #include <jni.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 JNIEXPORT jlong JNICALL
27 Java_android_bordeaux_learning_MulticlassPA_initNativeClassifier(JNIEnv* env,
28                                                   jobject thiz,
29                                                   jint num_classes,
30                                                   jint num_dims,
31                                                   jfloat aggressiveness);
32 
33 
34 JNIEXPORT jboolean JNICALL
35 Java_android_bordeaux_learning_MulticlassPA_deleteNativeClassifier(JNIEnv* env,
36                                                     jobject thiz,
37                                                     jlong paPtr);
38 
39 JNIEXPORT jboolean JNICALL
40 Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample(JNIEnv* env,
41                                                          jobject thiz,
42                                                          jintArray index_array,
43                                                          jfloatArray value_array,
44                                                          jint target,
45                                                          jlong paPtr);
46 
47 JNIEXPORT jint JNICALL
48 Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass(JNIEnv* env,
49                                                   jobject thiz,
50                                                   jintArray index_array,
51                                                   jfloatArray value_array,
52                                                   jlong paPtr);
53 
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* ANDROID_LEARNINGFW_JNI_MULTICLASS_PA_H */
60