improve a_version_parse and implement a_version_tostr
[liba.git] / java / src / mf.c
blob554176ccb0cfd23a81043ae09ac3b6856b9e43db
1 #include "a.h"
2 #include "a/mf.h"
3 #include "liba_mf.h"
5 JNIEXPORT void JNICALL Java_liba_mf_clinit(JNIEnv *_env, jclass _cls)
7 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "NUL", "I"), A_MF_NUL);
8 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "GAUSS", "I"), A_MF_GAUSS);
9 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "GAUSS2", "I"), A_MF_GAUSS2);
10 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "GBELL", "I"), A_MF_GBELL);
11 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "SIG", "I"), A_MF_SIG);
12 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "DSIG", "I"), A_MF_DSIG);
13 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "PSIG", "I"), A_MF_PSIG);
14 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "TRAP", "I"), A_MF_TRAP);
15 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "TRI", "I"), A_MF_TRI);
16 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "LINS", "I"), A_MF_LINS);
17 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "LINZ", "I"), A_MF_LINZ);
18 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "S", "I"), A_MF_S);
19 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "Z", "I"), A_MF_Z);
20 (*_env)->SetStaticIntField(_env, _cls, (*_env)->GetStaticFieldID(_env, _cls, "PI", "I"), A_MF_PI);
23 JNIEXPORT jdouble JNICALL Java_liba_mf_gauss(JNIEnv *_env, jclass _cls, jdouble x, jdouble sigma, jdouble c)
25 return (void)(_env), (void)(_cls), a_mf_gauss(x, sigma, c);
28 JNIEXPORT jdouble JNICALL Java_liba_mf_gauss2(JNIEnv *_env, jclass _cls, jdouble x, jdouble sigma1, jdouble c1, jdouble sigma2, jdouble c2)
30 return (void)(_env), (void)(_cls), a_mf_gauss2(x, sigma1, c1, sigma2, c2);
33 JNIEXPORT jdouble JNICALL Java_liba_mf_gbell(JNIEnv *_env, jclass _cls, jdouble x, jdouble a, jdouble b, jdouble c)
35 return (void)(_env), (void)(_cls), a_mf_gbell(x, a, b, c);
38 JNIEXPORT jdouble JNICALL Java_liba_mf_sig(JNIEnv *_env, jclass _cls, jdouble x, jdouble a, jdouble c)
40 return (void)(_env), (void)(_cls), a_mf_sig(x, a, c);
43 JNIEXPORT jdouble JNICALL Java_liba_mf_dsig(JNIEnv *_env, jclass _cls, jdouble x, jdouble a1, jdouble c1, jdouble a2, jdouble c2)
45 return (void)(_env), (void)(_cls), a_mf_dsig(x, a1, c1, a2, c2);
48 JNIEXPORT jdouble JNICALL Java_liba_mf_psig(JNIEnv *_env, jclass _cls, jdouble x, jdouble a1, jdouble c1, jdouble a2, jdouble c2)
50 return (void)(_env), (void)(_cls), a_mf_psig(x, a1, c1, a2, c2);
53 JNIEXPORT jdouble JNICALL Java_liba_mf_trap(JNIEnv *_env, jclass _cls, jdouble x, jdouble a, jdouble b, jdouble c, jdouble d)
55 return (void)(_env), (void)(_cls), a_mf_trap(x, a, b, c, d);
58 JNIEXPORT jdouble JNICALL Java_liba_mf_tri(JNIEnv *_env, jclass _cls, jdouble x, jdouble a, jdouble b, jdouble c)
60 return (void)(_env), (void)(_cls), a_mf_tri(x, a, b, c);
63 JNIEXPORT jdouble JNICALL Java_liba_mf_lins(JNIEnv *_env, jclass _cls, jdouble x, jdouble a, jdouble b)
65 return (void)(_env), (void)(_cls), a_mf_lins(x, a, b);
68 JNIEXPORT jdouble JNICALL Java_liba_mf_linz(JNIEnv *_env, jclass _cls, jdouble x, jdouble a, jdouble b)
70 return (void)(_env), (void)(_cls), a_mf_linz(x, a, b);
73 JNIEXPORT jdouble JNICALL Java_liba_mf_s(JNIEnv *_env, jclass _cls, jdouble x, jdouble a, jdouble b)
75 return (void)(_env), (void)(_cls), a_mf_s(x, a, b);
78 JNIEXPORT jdouble JNICALL Java_liba_mf_z(JNIEnv *_env, jclass _cls, jdouble x, jdouble a, jdouble b)
80 return (void)(_env), (void)(_cls), a_mf_z(x, a, b);
83 JNIEXPORT jdouble JNICALL Java_liba_mf_pi(JNIEnv *_env, jclass _cls, jdouble x, jdouble a, jdouble b, jdouble c, jdouble d)
85 return (void)(_env), (void)(_cls), a_mf_pi(x, a, b, c, d);