All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kabouterlabs.jodeint.cgnicodes.CgnicodesLibrary Maven / Gradle / Ivy

package com.kabouterlabs.jodeint.cgnicodes;
import java.util.Collections;
import java.util.Iterator;
import org.bridj.BridJ;
import org.bridj.CRuntime;
import org.bridj.Callback;
import org.bridj.FlagSet;
import org.bridj.IntValuedEnum;
import org.bridj.Pointer;
import org.bridj.ann.Library;
import org.bridj.ann.Ptr;
import org.bridj.ann.Runtime;
/**
 * Wrapper for library cgnicodes
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java or BridJ . */ @Library("cgnicodes") @Runtime(CRuntime.class) public class CgnicodesLibrary { static { BridJ.register(); } /** * enum values
* native declaration : src/main/native/codeint/cgnicodes/include/cgnicodes.h */ public enum gni_irk2_method_e implements IntValuedEnum { IRK2_METH_2(2), IRK2_METH_4(4), IRK2_METH_6(6); gni_irk2_method_e(long value) { this.value = value; } public final long value; public long value() { return this.value; } public Iterator iterator() { return Collections.singleton(this).iterator(); } public static IntValuedEnum fromValue(int value) { return FlagSet.fromValue(value, values()); } }; /** * enum values
* native declaration : src/main/native/codeint/cgnicodes/include/cgnicodes.h */ public enum gni_lmm2_method_e implements IntValuedEnum { LMM2_METH_201(201), LMM2_METH_401(401), LMM2_METH_801(801), LMM2_METH_802(802), LMM2_METH_803(803); gni_lmm2_method_e(long value) { this.value = value; } public final long value; public long value() { return this.value; } public Iterator iterator() { return Collections.singleton(this).iterator(); } public static IntValuedEnum fromValue(int value) { return FlagSet.fromValue(value, values()); } }; /** * enum values
* native declaration : src/main/native/codeint/cgnicodes/include/cgnicodes.h */ public enum gnicodes_iout_e implements IntValuedEnum { NEVER_CALLED(0), OUTPUT(1); gnicodes_iout_e(long value) { this.value = value; } public final long value; public long value() { return this.value; } public Iterator iterator() { return Collections.singleton(this).iterator(); } public static IntValuedEnum fromValue(int value) { return FlagSet.fromValue(value, values()); } }; /** native declaration : src/main/native/codeint/cgnicodes/include/cgnicodes.h */ public static abstract class gnicodes_ode_func extends Callback { public void apply(Pointer n, Pointer x, Pointer q, Pointer f, Pointer rpar, Pointer ipar) { apply(Pointer.getPeer(n), Pointer.getPeer(x), Pointer.getPeer(q), Pointer.getPeer(f), Pointer.getPeer(rpar), Pointer.getPeer(ipar)); } public void apply(@Ptr long n, @Ptr long x, @Ptr long q, @Ptr long f, @Ptr long rpar, @Ptr long ipar) { apply((Pointer)Pointer.pointerToAddress(n, Integer.class), (Pointer)Pointer.pointerToAddress(x, Double.class), (Pointer)Pointer.pointerToAddress(q, Double.class), (Pointer)Pointer.pointerToAddress(f, Double.class), (Pointer)Pointer.pointerToAddress(rpar, Double.class), (Pointer)Pointer.pointerToAddress(ipar, Integer.class)); } }; /** native declaration : src/main/native/codeint/cgnicodes/include/cgnicodes.h */ public static abstract class gnicodes_solfix extends Callback { public void apply(Pointer nr, Pointer xold, Pointer x, Pointer p, Pointer q, Pointer n, Pointer irtrn, Pointer rpar, Pointer ipar) { apply(Pointer.getPeer(nr), Pointer.getPeer(xold), Pointer.getPeer(x), Pointer.getPeer(p), Pointer.getPeer(q), Pointer.getPeer(n), Pointer.getPeer(irtrn), Pointer.getPeer(rpar), Pointer.getPeer(ipar)); } public void apply(@Ptr long nr, @Ptr long xold, @Ptr long x, @Ptr long p, @Ptr long q, @Ptr long n, @Ptr long irtrn, @Ptr long rpar, @Ptr long ipar) { apply((Pointer)Pointer.pointerToAddress(nr, Integer.class), (Pointer)Pointer.pointerToAddress(xold, Double.class), (Pointer)Pointer.pointerToAddress(x, Double.class), (Pointer)Pointer.pointerToAddress(p, Double.class), (Pointer)Pointer.pointerToAddress(q, Double.class), (Pointer)Pointer.pointerToAddress(n, Integer.class), (Pointer)Pointer.pointerToAddress(irtrn, Integer.class), (Pointer)Pointer.pointerToAddress(rpar, Double.class), (Pointer)Pointer.pointerToAddress(ipar, Integer.class)); } }; /** native declaration : src/main/native/codeint/cgnicodes/include/cgnicodes.h:45 */ public static abstract class gni_irk2_f_callback extends Callback { public void apply(Pointer n, Pointer x, Pointer q, Pointer f, Pointer rpar, Pointer ipar) { apply(Pointer.getPeer(n), Pointer.getPeer(x), Pointer.getPeer(q), Pointer.getPeer(f), Pointer.getPeer(rpar), Pointer.getPeer(ipar)); } public void apply(@Ptr long n, @Ptr long x, @Ptr long q, @Ptr long f, @Ptr long rpar, @Ptr long ipar) { apply((Pointer)Pointer.pointerToAddress(n, Integer.class), (Pointer)Pointer.pointerToAddress(x, Double.class), (Pointer)Pointer.pointerToAddress(q, Double.class), (Pointer)Pointer.pointerToAddress(f, Double.class), (Pointer)Pointer.pointerToAddress(rpar, Double.class), (Pointer)Pointer.pointerToAddress(ipar, Integer.class)); } }; /** native declaration : src/main/native/codeint/cgnicodes/include/cgnicodes.h:52 */ public static abstract class gni_irk2_s_callback extends Callback { public void apply(Pointer nr, Pointer xold, Pointer x, Pointer p, Pointer q, Pointer n, Pointer irtrn, Pointer rpar, Pointer ipar) { apply(Pointer.getPeer(nr), Pointer.getPeer(xold), Pointer.getPeer(x), Pointer.getPeer(p), Pointer.getPeer(q), Pointer.getPeer(n), Pointer.getPeer(irtrn), Pointer.getPeer(rpar), Pointer.getPeer(ipar)); } public void apply(@Ptr long nr, @Ptr long xold, @Ptr long x, @Ptr long p, @Ptr long q, @Ptr long n, @Ptr long irtrn, @Ptr long rpar, @Ptr long ipar) { apply((Pointer)Pointer.pointerToAddress(nr, Integer.class), (Pointer)Pointer.pointerToAddress(xold, Double.class), (Pointer)Pointer.pointerToAddress(x, Double.class), (Pointer)Pointer.pointerToAddress(p, Double.class), (Pointer)Pointer.pointerToAddress(q, Double.class), (Pointer)Pointer.pointerToAddress(n, Integer.class), (Pointer)Pointer.pointerToAddress(irtrn, Integer.class), (Pointer)Pointer.pointerToAddress(rpar, Double.class), (Pointer)Pointer.pointerToAddress(ipar, Integer.class)); } }; /** native declaration : src/main/native/codeint/cgnicodes/include/cgnicodes.h:60 */ public static abstract class gni_lmm2_f_callback extends Callback { public void apply(Pointer n, Pointer x, Pointer q, Pointer f, Pointer rpar, Pointer ipar) { apply(Pointer.getPeer(n), Pointer.getPeer(x), Pointer.getPeer(q), Pointer.getPeer(f), Pointer.getPeer(rpar), Pointer.getPeer(ipar)); } public void apply(@Ptr long n, @Ptr long x, @Ptr long q, @Ptr long f, @Ptr long rpar, @Ptr long ipar) { apply((Pointer)Pointer.pointerToAddress(n, Integer.class), (Pointer)Pointer.pointerToAddress(x, Double.class), (Pointer)Pointer.pointerToAddress(q, Double.class), (Pointer)Pointer.pointerToAddress(f, Double.class), (Pointer)Pointer.pointerToAddress(rpar, Double.class), (Pointer)Pointer.pointerToAddress(ipar, Integer.class)); } }; /** native declaration : src/main/native/codeint/cgnicodes/include/cgnicodes.h:67 */ public static abstract class gni_lmm2_s_callback extends Callback { public void apply(Pointer nr, Pointer xold, Pointer x, Pointer p, Pointer q, Pointer n, Pointer irtrn, Pointer rpar, Pointer ipar) { apply(Pointer.getPeer(nr), Pointer.getPeer(xold), Pointer.getPeer(x), Pointer.getPeer(p), Pointer.getPeer(q), Pointer.getPeer(n), Pointer.getPeer(irtrn), Pointer.getPeer(rpar), Pointer.getPeer(ipar)); } public void apply(@Ptr long nr, @Ptr long xold, @Ptr long x, @Ptr long p, @Ptr long q, @Ptr long n, @Ptr long irtrn, @Ptr long rpar, @Ptr long ipar) { apply((Pointer)Pointer.pointerToAddress(nr, Integer.class), (Pointer)Pointer.pointerToAddress(xold, Double.class), (Pointer)Pointer.pointerToAddress(x, Double.class), (Pointer)Pointer.pointerToAddress(p, Double.class), (Pointer)Pointer.pointerToAddress(q, Double.class), (Pointer)Pointer.pointerToAddress(n, Integer.class), (Pointer)Pointer.pointerToAddress(irtrn, Integer.class), (Pointer)Pointer.pointerToAddress(rpar, Double.class), (Pointer)Pointer.pointerToAddress(ipar, Integer.class)); } }; /** * Original signature : void gni_irk2_basic(double*, double*, double*, gnicodes_ode_func, int, double, double, double, GNI_IRK2_METH)
* native declaration : src/main/native/codeint/cgnicodes/include/cgnicodes.h:40 */ public static void gni_irk2_basic(Pointer stack, Pointer p, Pointer q, Pointer f_func, int n, double xstart, double xfinal, double deltax, IntValuedEnum meth) { gni_irk2_basic(Pointer.getPeer(stack), Pointer.getPeer(p), Pointer.getPeer(q), Pointer.getPeer(f_func), n, xstart, xfinal, deltax, (int)meth.value()); } protected native static void gni_irk2_basic(@Ptr long stack, @Ptr long p, @Ptr long q, @Ptr long f_func, int n, double xstart, double xfinal, double deltax, int meth); /** * Original signature : void gni_lmm2_basic(double*, double*, double*, gnicodes_ode_func, int, double, double, double, GNI_LMM2_METH)
* native declaration : src/main/native/codeint/cgnicodes/include/cgnicodes.h:41 */ public static void gni_lmm2_basic(Pointer stack, Pointer p, Pointer q, Pointer f_func, int n, double xstart, double xfinal, double deltax, IntValuedEnum meth) { gni_lmm2_basic(Pointer.getPeer(stack), Pointer.getPeer(p), Pointer.getPeer(q), Pointer.getPeer(f_func), n, xstart, xfinal, deltax, (int)meth.value()); } protected native static void gni_lmm2_basic(@Ptr long stack, @Ptr long p, @Ptr long q, @Ptr long f_func, int n, double xstart, double xfinal, double deltax, int meth); /** * Original signature : void gni_irk2(int*, gni_irk2_f_callback*, int*, double*, double*, double*, double*, int*, gni_irk2_s_callback*, int*, double*, int*)
* native declaration : src/main/native/codeint/cgnicodes/include/cgnicodes.h:43 */ public static void gni_irk2(Pointer n, Pointer f, Pointer nstep, Pointer x, Pointer p, Pointer q, Pointer xend, Pointer meth, Pointer s, Pointer iout, Pointer rpar, Pointer ipar) { gni_irk2(Pointer.getPeer(n), Pointer.getPeer(f), Pointer.getPeer(nstep), Pointer.getPeer(x), Pointer.getPeer(p), Pointer.getPeer(q), Pointer.getPeer(xend), Pointer.getPeer(meth), Pointer.getPeer(s), Pointer.getPeer(iout), Pointer.getPeer(rpar), Pointer.getPeer(ipar)); } protected native static void gni_irk2(@Ptr long n, @Ptr long f, @Ptr long nstep, @Ptr long x, @Ptr long p, @Ptr long q, @Ptr long xend, @Ptr long meth, @Ptr long s, @Ptr long iout, @Ptr long rpar, @Ptr long ipar); /** * Original signature : void gni_lmm2(int*, gni_lmm2_f_callback*, int*, double*, double*, double*, double*, int*, gni_lmm2_s_callback*, int*, double*, int*)
* native declaration : src/main/native/codeint/cgnicodes/include/cgnicodes.h:58 */ public static void gni_lmm2(Pointer n, Pointer f, Pointer nstep, Pointer x, Pointer p, Pointer q, Pointer xend, Pointer meth, Pointer s, Pointer iout, Pointer rpar, Pointer ipar) { gni_lmm2(Pointer.getPeer(n), Pointer.getPeer(f), Pointer.getPeer(nstep), Pointer.getPeer(x), Pointer.getPeer(p), Pointer.getPeer(q), Pointer.getPeer(xend), Pointer.getPeer(meth), Pointer.getPeer(s), Pointer.getPeer(iout), Pointer.getPeer(rpar), Pointer.getPeer(ipar)); } protected native static void gni_lmm2(@Ptr long n, @Ptr long f, @Ptr long nstep, @Ptr long x, @Ptr long p, @Ptr long q, @Ptr long xend, @Ptr long meth, @Ptr long s, @Ptr long iout, @Ptr long rpar, @Ptr long ipar); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy