Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Targeted by JavaCPP version 1.4.1: DO NOT EDIT THIS FILE
package org.bytedeco.javacpp;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.openblas.*;
public class gsl extends org.bytedeco.javacpp.presets.gsl {
static { Loader.load(); }
// Parsed from gsl/gsl_types.h
/* gsl_types.h
*
* Copyright (C) 2001, 2007 Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_TYPES_H__
// #define __GSL_TYPES_H__
// #ifndef GSL_VAR
// #ifdef WIN32
// # ifdef GSL_DLL
// # ifdef DLL_EXPORT
// # define GSL_VAR extern __declspec(dllexport)
// # else
// # define GSL_VAR extern __declspec(dllimport)
// # endif
// # else
// # define GSL_VAR extern
// # endif
// #else
// # define GSL_VAR extern
// #endif
// #endif
// #endif /* __GSL_TYPES_H__ */
// Parsed from gsl/gsl_errno.h
/* err/gsl_errno.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_ERRNO_H__
// #define __GSL_ERRNO_H__
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
/** enum */
public static final int
GSL_SUCCESS = 0,
GSL_FAILURE = -1,
GSL_CONTINUE = -2, /* iteration has not converged */
GSL_EDOM = 1, /* input domain error, e.g sqrt(-1) */
GSL_ERANGE = 2, /* output range error, e.g. exp(1e100) */
GSL_EFAULT = 3, /* invalid pointer */
GSL_EINVAL = 4, /* invalid argument supplied by user */
GSL_EFAILED = 5, /* generic failure */
GSL_EFACTOR = 6, /* factorization failed */
GSL_ESANITY = 7, /* sanity check failed - shouldn't happen */
GSL_ENOMEM = 8, /* malloc failed */
GSL_EBADFUNC = 9, /* problem with user-supplied function */
GSL_ERUNAWAY = 10, /* iterative process is out of control */
GSL_EMAXITER = 11, /* exceeded max number of iterations */
GSL_EZERODIV = 12, /* tried to divide by zero */
GSL_EBADTOL = 13, /* user specified an invalid tolerance */
GSL_ETOL = 14, /* failed to reach the specified tolerance */
GSL_EUNDRFLW = 15, /* underflow */
GSL_EOVRFLW = 16, /* overflow */
GSL_ELOSS = 17, /* loss of accuracy */
GSL_EROUND = 18, /* failed because of roundoff error */
GSL_EBADLEN = 19, /* matrix, vector lengths are not conformant */
GSL_ENOTSQR = 20, /* matrix not square */
GSL_ESING = 21, /* apparent singularity detected */
GSL_EDIVERGE = 22, /* integral or series is divergent */
GSL_EUNSUP = 23, /* requested feature is not supported by the hardware */
GSL_EUNIMPL = 24, /* requested feature not (yet) implemented */
GSL_ECACHE = 25, /* cache limit exceeded */
GSL_ETABLE = 26, /* table limit exceeded */
GSL_ENOPROG = 27, /* iteration is not making progress towards solution */
GSL_ENOPROGJ = 28, /* jacobian evaluations are not improving the solution */
GSL_ETOLF = 29, /* cannot reach the specified tolerance in F */
GSL_ETOLX = 30, /* cannot reach the specified tolerance in X */
GSL_ETOLG = 31, /* cannot reach the specified tolerance in gradient */
GSL_EOF = 32 ; /* end of file */
public static native void gsl_error(@Cast("const char*") BytePointer reason, @Cast("const char*") BytePointer file, int line,
int gsl_errno);
public static native void gsl_error(String reason, String file, int line,
int gsl_errno);
public static native void gsl_stream_printf(@Cast("const char*") BytePointer label, @Cast("const char*") BytePointer file,
int line, @Cast("const char*") BytePointer reason);
public static native void gsl_stream_printf(String label, String file,
int line, String reason);
public static native @Cast("const char*") BytePointer gsl_strerror(int gsl_errno);
public static class gsl_error_handler_t extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_error_handler_t(Pointer p) { super(p); }
protected gsl_error_handler_t() { allocate(); }
private native void allocate();
public native void call(@Cast("const char*") BytePointer reason, @Cast("const char*") BytePointer file,
int line, int gsl_errno);
}
public static class gsl_stream_handler_t extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_stream_handler_t(Pointer p) { super(p); }
protected gsl_stream_handler_t() { allocate(); }
private native void allocate();
public native void call(@Cast("const char*") BytePointer label, @Cast("const char*") BytePointer file,
int line, @Cast("const char*") BytePointer reason);
}
public static native gsl_error_handler_t gsl_set_error_handler(gsl_error_handler_t new_handler);
public static native gsl_error_handler_t gsl_set_error_handler_off();
public static native gsl_stream_handler_t gsl_set_stream_handler(gsl_stream_handler_t new_handler);
public static native @Cast("FILE*") Pointer gsl_set_stream(@Cast("FILE*") Pointer new_stream);
/* GSL_ERROR: call the error handler, and return the error code */
// #define GSL_ERROR(reason, gsl_errno)
// do {
// gsl_error (reason, __FILE__, __LINE__, gsl_errno) ;
// return gsl_errno ;
// } while (0)
/* GSL_ERROR_VAL: call the error handler, and return the given value */
// #define GSL_ERROR_VAL(reason, gsl_errno, value)
// do {
// gsl_error (reason, __FILE__, __LINE__, gsl_errno) ;
// return value ;
// } while (0)
/* GSL_ERROR_VOID: call the error handler, and then return
(for void functions which still need to generate an error) */
// #define GSL_ERROR_VOID(reason, gsl_errno)
// do {
// gsl_error (reason, __FILE__, __LINE__, gsl_errno) ;
// return ;
// } while (0)
/* GSL_ERROR_NULL suitable for out-of-memory conditions */
// #define GSL_ERROR_NULL(reason, gsl_errno) GSL_ERROR_VAL(reason, gsl_errno, 0)
/* Sometimes you have several status results returned from
* function calls and you want to combine them in some sensible
* way. You cannot produce a "total" status condition, but you can
* pick one from a set of conditions based on an implied hierarchy.
*
* In other words:
* you have: status_a, status_b, ...
* you want: status = (status_a if it is bad, or status_b if it is bad,...)
*
* In this example you consider status_a to be more important and
* it is checked first, followed by the others in the order specified.
*
* Here are some dumb macros to do this.
*/
// #define GSL_ERROR_SELECT_2(a,b) ((a) != GSL_SUCCESS ? (a) : ((b) != GSL_SUCCESS ? (b) : GSL_SUCCESS))
// #define GSL_ERROR_SELECT_3(a,b,c) ((a) != GSL_SUCCESS ? (a) : GSL_ERROR_SELECT_2(b,c))
// #define GSL_ERROR_SELECT_4(a,b,c,d) ((a) != GSL_SUCCESS ? (a) : GSL_ERROR_SELECT_3(b,c,d))
// #define GSL_ERROR_SELECT_5(a,b,c,d,e) ((a) != GSL_SUCCESS ? (a) : GSL_ERROR_SELECT_4(b,c,d,e))
// #define GSL_STATUS_UPDATE(sp, s) do { if ((s) != GSL_SUCCESS) *(sp) = (s);} while(0)
// #endif /* __GSL_ERRNO_H__ */
// Parsed from gsl/gsl_ieee_utils.h
/* ieee-utils/gsl_ieee_utils.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_IEEE_UTILS_H__
// #define __GSL_IEEE_UTILS_H__
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
/** enum */
public static final int
GSL_IEEE_TYPE_NAN = 1,
GSL_IEEE_TYPE_INF = 2,
GSL_IEEE_TYPE_NORMAL = 3,
GSL_IEEE_TYPE_DENORMAL = 4,
GSL_IEEE_TYPE_ZERO = 5 ;
public static class gsl_ieee_float_rep extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_ieee_float_rep() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_ieee_float_rep(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_ieee_float_rep(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_ieee_float_rep position(long position) {
return (gsl_ieee_float_rep)super.position(position);
}
public native int sign(); public native gsl_ieee_float_rep sign(int sign);
public native @Cast("char") byte mantissa(int i); public native gsl_ieee_float_rep mantissa(int i, byte mantissa);
@MemberGetter public native @Cast("char*") BytePointer mantissa(); /* Actual bits are 0..22, element 23 is \0 */
public native int exponent(); public native gsl_ieee_float_rep exponent(int exponent);
public native int type(); public native gsl_ieee_float_rep type(int type);
}
public static class gsl_ieee_double_rep extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_ieee_double_rep() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_ieee_double_rep(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_ieee_double_rep(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_ieee_double_rep position(long position) {
return (gsl_ieee_double_rep)super.position(position);
}
public native int sign(); public native gsl_ieee_double_rep sign(int sign);
public native @Cast("char") byte mantissa(int i); public native gsl_ieee_double_rep mantissa(int i, byte mantissa);
@MemberGetter public native @Cast("char*") BytePointer mantissa(); /* Actual bits are 0..51, element 52 is \0 */
public native int exponent(); public native gsl_ieee_double_rep exponent(int exponent);
public native int type(); public native gsl_ieee_double_rep type(int type);
}
public static native void gsl_ieee_printf_float(@Const FloatPointer x);
public static native void gsl_ieee_printf_float(@Const FloatBuffer x);
public static native void gsl_ieee_printf_float(@Const float[] x);
public static native void gsl_ieee_printf_double(@Const DoublePointer x);
public static native void gsl_ieee_printf_double(@Const DoubleBuffer x);
public static native void gsl_ieee_printf_double(@Const double[] x);
public static native void gsl_ieee_fprintf_float(@Cast("FILE*") Pointer stream, @Const FloatPointer x);
public static native void gsl_ieee_fprintf_float(@Cast("FILE*") Pointer stream, @Const FloatBuffer x);
public static native void gsl_ieee_fprintf_float(@Cast("FILE*") Pointer stream, @Const float[] x);
public static native void gsl_ieee_fprintf_double(@Cast("FILE*") Pointer stream, @Const DoublePointer x);
public static native void gsl_ieee_fprintf_double(@Cast("FILE*") Pointer stream, @Const DoubleBuffer x);
public static native void gsl_ieee_fprintf_double(@Cast("FILE*") Pointer stream, @Const double[] x);
public static native void gsl_ieee_float_to_rep(@Const FloatPointer x, gsl_ieee_float_rep r);
public static native void gsl_ieee_float_to_rep(@Const FloatBuffer x, gsl_ieee_float_rep r);
public static native void gsl_ieee_float_to_rep(@Const float[] x, gsl_ieee_float_rep r);
public static native void gsl_ieee_double_to_rep(@Const DoublePointer x, gsl_ieee_double_rep r);
public static native void gsl_ieee_double_to_rep(@Const DoubleBuffer x, gsl_ieee_double_rep r);
public static native void gsl_ieee_double_to_rep(@Const double[] x, gsl_ieee_double_rep r);
/** enum */
public static final int
GSL_IEEE_SINGLE_PRECISION = 1,
GSL_IEEE_DOUBLE_PRECISION = 2,
GSL_IEEE_EXTENDED_PRECISION = 3 ;
/** enum */
public static final int
GSL_IEEE_ROUND_TO_NEAREST = 1,
GSL_IEEE_ROUND_DOWN = 2,
GSL_IEEE_ROUND_UP = 3,
GSL_IEEE_ROUND_TO_ZERO = 4 ;
/** enum */
public static final int
GSL_IEEE_MASK_INVALID = 1,
GSL_IEEE_MASK_DENORMALIZED = 2,
GSL_IEEE_MASK_DIVISION_BY_ZERO = 4,
GSL_IEEE_MASK_OVERFLOW = 8,
GSL_IEEE_MASK_UNDERFLOW = 16,
GSL_IEEE_MASK_ALL = 31,
GSL_IEEE_TRAP_INEXACT = 32 ;
public static native void gsl_ieee_env_setup();
public static native int gsl_ieee_read_mode_string(@Cast("const char*") BytePointer description, IntPointer precision,
IntPointer rounding, IntPointer exception_mask);
public static native int gsl_ieee_read_mode_string(String description, IntBuffer precision,
IntBuffer rounding, IntBuffer exception_mask);
public static native int gsl_ieee_read_mode_string(@Cast("const char*") BytePointer description, int[] precision,
int[] rounding, int[] exception_mask);
public static native int gsl_ieee_read_mode_string(String description, IntPointer precision,
IntPointer rounding, IntPointer exception_mask);
public static native int gsl_ieee_read_mode_string(@Cast("const char*") BytePointer description, IntBuffer precision,
IntBuffer rounding, IntBuffer exception_mask);
public static native int gsl_ieee_read_mode_string(String description, int[] precision,
int[] rounding, int[] exception_mask);
public static native int gsl_ieee_set_mode(int precision, int rounding, int exception_mask);
// #endif /* __GSL_IEEE_UTILS_H__ */
// Parsed from gsl/gsl_inline.h
/* gsl_inline.h
*
* Copyright (C) 2008, 2009 Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_INLINE_H__
// #define __GSL_INLINE_H__
/* In recent versiions of GCC, the inline keyword has two different
forms: GNU and C99.
In GNU mode we can use 'extern inline' to make inline functions
work like macros. The function is only inlined--it is never output
as a definition in an object file.
In the new C99 mode 'extern inline' has a different meaning--it
causes the definition of the function to be output in each object
file where it is used. This will result in multiple-definition
errors on linking. The 'inline' keyword on its own (without
extern) has the same behavior as the original GNU 'extern inline'.
The C99 style is the default with -std=c99 in GCC 4.3.
This header file allows either form of inline to be used by
redefining the macros INLINE_DECL and INLINE_FUN. These are used
in the public header files as
INLINE_DECL double gsl_foo (double x);
#ifdef HAVE_INLINE
INLINE_FUN double gsl_foo (double x) { return x+1.0; } ;
#endif
*/
// #ifdef HAVE_INLINE
// # if defined(__GNUC_STDC_INLINE__) || defined(GSL_C99_INLINE) || defined(HAVE_C99_INLINE)
// # define INLINE_DECL inline /* use C99 inline */
// # define INLINE_FUN inline
// # else
// # define INLINE_DECL /* use GNU extern inline */
// # define INLINE_FUN extern inline
// # endif
// #else
// # define INLINE_DECL /* */
// #endif
/* Range checking conditions in headers do not require any run-time
tests of the global variable gsl_check_range. They are enabled or
disabled in user code at compile time with GSL_RANGE_CHECK macro.
See also build.h. */
// #define GSL_RANGE_COND(x) (x)
// #endif /* __GSL_INLINE_H__ */
// Parsed from gsl/gsl_message.h
/* err/gsl_message.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MESSAGE_H__
// #define __GSL_MESSAGE_H__
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
/* Provide a general messaging service for client use. Messages can
* be selectively turned off at compile time by defining an
* appropriate message mask. Client code which uses the GSL_MESSAGE()
* macro must provide a mask which is or'ed with the GSL_MESSAGE_MASK.
*
* The messaging service can be completely turned off
* by defining GSL_MESSAGING_OFF. */
public static native void gsl_message(@Cast("const char*") BytePointer message, @Cast("const char*") BytePointer file, int line,
@Cast("unsigned int") int mask);
public static native void gsl_message(String message, String file, int line,
@Cast("unsigned int") int mask);
// #ifndef GSL_MESSAGE_MASK
public static final int GSL_MESSAGE_MASK = 0xffffffff; /* default all messages allowed */
// #endif
public static native @Cast("unsigned int") int gsl_message_mask(); public static native void gsl_message_mask(int gsl_message_mask);
/* Provide some symolic masks for client ease of use. */
/** enum */
public static final int
GSL_MESSAGE_MASK_A = 1,
GSL_MESSAGE_MASK_B = 2,
GSL_MESSAGE_MASK_C = 4,
GSL_MESSAGE_MASK_D = 8,
GSL_MESSAGE_MASK_E = 16,
GSL_MESSAGE_MASK_F = 32,
GSL_MESSAGE_MASK_G = 64,
GSL_MESSAGE_MASK_H = 128 ;
// #ifdef GSL_MESSAGING_OFF /* throw away messages */
// #define GSL_MESSAGE(message, mask) do { } while(0)
// #else /* output all messages */
// #define GSL_MESSAGE(message, mask)
// do {
// if (mask & GSL_MESSAGE_MASK)
// gsl_message (message, __FILE__, __LINE__, mask) ;
// } while (0)
// #endif
// #endif /* __GSL_MESSAGE_H__ */
// Parsed from gsl/gsl_complex.h
/* complex/gsl_complex.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_COMPLEX_H__
// #define __GSL_COMPLEX_H__
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
/* two consecutive built-in types as a complex number */
/* 2N consecutive built-in types as N complex numbers */
/* Yes... this seems weird. Trust us. The point is just that
sometimes you want to make it obvious that something is
an output value. The fact that it lacks a 'const' may not
be enough of a clue for people in some contexts.
*/
public static class gsl_complex_long_double extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_complex_long_double() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_complex_long_double(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_complex_long_double(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_complex_long_double position(long position) {
return (gsl_complex_long_double)super.position(position);
}
public native @Cast("long double") double dat(int i); public native gsl_complex_long_double dat(int i, double dat);
@MemberGetter public native @Cast("long double*") Pointer dat();
}
public static class gsl_complex extends DoublePointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_complex() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_complex(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_complex(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_complex position(long position) {
return (gsl_complex)super.position(position);
}
public native double dat(int i); public native gsl_complex dat(int i, double dat);
@MemberGetter public native DoublePointer dat();
}
public static class gsl_complex_float extends FloatPointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_complex_float() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_complex_float(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_complex_float(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_complex_float position(long position) {
return (gsl_complex_float)super.position(position);
}
public native float dat(int i); public native gsl_complex_float dat(int i, float dat);
@MemberGetter public native FloatPointer dat();
}
// #define GSL_REAL(z) ((z).dat[0])
// #define GSL_IMAG(z) ((z).dat[1])
// #define GSL_COMPLEX_P(zp) ((zp)->dat)
// #define GSL_COMPLEX_P_REAL(zp) ((zp)->dat[0])
// #define GSL_COMPLEX_P_IMAG(zp) ((zp)->dat[1])
// #define GSL_COMPLEX_EQ(z1,z2) (((z1).dat[0] == (z2).dat[0]) && ((z1).dat[1] == (z2).dat[1]))
// #define GSL_SET_COMPLEX(zp,x,y) do {(zp)->dat[0]=(x); (zp)->dat[1]=(y);} while(0)
// #define GSL_SET_REAL(zp,x) do {(zp)->dat[0]=(x);} while(0)
// #define GSL_SET_IMAG(zp,y) do {(zp)->dat[1]=(y);} while(0)
// #define GSL_SET_COMPLEX_PACKED(zp,n,x,y) do {*((zp)+2*(n))=(x); *((zp)+(2*(n)+1))=(y);} while(0)
// #endif /* __GSL_COMPLEX_H__ */
// Parsed from gsl/gsl_complex_math.h
/* complex/gsl_complex_math.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2004, 2007 Jorma Olavi T?htinen, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_COMPLEX_MATH_H__
// #define __GSL_COMPLEX_MATH_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// #define __BEGIN_DECLS extern "C" {
// #define __END_DECLS }
// #else
// #endif
/* Complex numbers */
public static native @ByVal gsl_complex gsl_complex_polar(double r, double theta); /* r= r e^(i theta) */
/* */ public static native @ByVal gsl_complex gsl_complex_rect(double x, double y); /* r= real+i*imag */
// #ifdef HAVE_INLINE
// #endif
public static native @MemberGetter @ByVal gsl_complex GSL_COMPLEX_ONE();
public static final gsl_complex GSL_COMPLEX_ONE = GSL_COMPLEX_ONE();
public static native @MemberGetter @ByVal gsl_complex GSL_COMPLEX_ZERO();
public static final gsl_complex GSL_COMPLEX_ZERO = GSL_COMPLEX_ZERO();
public static native @MemberGetter @ByVal gsl_complex GSL_COMPLEX_NEGONE();
public static final gsl_complex GSL_COMPLEX_NEGONE = GSL_COMPLEX_NEGONE();
/* Properties of complex numbers */
public static native double gsl_complex_arg(@ByVal gsl_complex z); /* return arg(z), -pi< arg(z) <=+pi */
public static native double gsl_complex_abs(@ByVal gsl_complex z); /* return |z| */
public static native double gsl_complex_abs2(@ByVal gsl_complex z); /* return |z|^2 */
public static native double gsl_complex_logabs(@ByVal gsl_complex z); /* return log|z| */
/* Complex arithmetic operators */
public static native @ByVal gsl_complex gsl_complex_add(@ByVal gsl_complex a, @ByVal gsl_complex b); /* r=a+b */
public static native @ByVal gsl_complex gsl_complex_sub(@ByVal gsl_complex a, @ByVal gsl_complex b); /* r=a-b */
public static native @ByVal gsl_complex gsl_complex_mul(@ByVal gsl_complex a, @ByVal gsl_complex b); /* r=a*b */
public static native @ByVal gsl_complex gsl_complex_div(@ByVal gsl_complex a, @ByVal gsl_complex b); /* r=a/b */
public static native @ByVal gsl_complex gsl_complex_add_real(@ByVal gsl_complex a, double x); /* r=a+x */
public static native @ByVal gsl_complex gsl_complex_sub_real(@ByVal gsl_complex a, double x); /* r=a-x */
public static native @ByVal gsl_complex gsl_complex_mul_real(@ByVal gsl_complex a, double x); /* r=a*x */
public static native @ByVal gsl_complex gsl_complex_div_real(@ByVal gsl_complex a, double x); /* r=a/x */
public static native @ByVal gsl_complex gsl_complex_add_imag(@ByVal gsl_complex a, double y); /* r=a+iy */
public static native @ByVal gsl_complex gsl_complex_sub_imag(@ByVal gsl_complex a, double y); /* r=a-iy */
public static native @ByVal gsl_complex gsl_complex_mul_imag(@ByVal gsl_complex a, double y); /* r=a*iy */
public static native @ByVal gsl_complex gsl_complex_div_imag(@ByVal gsl_complex a, double y); /* r=a/iy */
public static native @ByVal gsl_complex gsl_complex_conjugate(@ByVal gsl_complex z); /* r=conj(z) */
public static native @ByVal gsl_complex gsl_complex_inverse(@ByVal gsl_complex a); /* r=1/a */
public static native @ByVal gsl_complex gsl_complex_negative(@ByVal gsl_complex a); /* r=-a */
/* Elementary Complex Functions */
public static native @ByVal gsl_complex gsl_complex_sqrt(@ByVal gsl_complex z); /* r=sqrt(z) */
public static native @ByVal gsl_complex gsl_complex_sqrt_real(double x); /* r=sqrt(x) (x<0 ok) */
public static native @ByVal gsl_complex gsl_complex_pow(@ByVal gsl_complex a, @ByVal gsl_complex b); /* r=a^b */
public static native @ByVal gsl_complex gsl_complex_pow_real(@ByVal gsl_complex a, double b); /* r=a^b */
public static native @ByVal gsl_complex gsl_complex_exp(@ByVal gsl_complex a); /* r=exp(a) */
public static native @ByVal gsl_complex gsl_complex_log(@ByVal gsl_complex a); /* r=log(a) (base e) */
public static native @ByVal gsl_complex gsl_complex_log10(@ByVal gsl_complex a); /* r=log10(a) (base 10) */
public static native @ByVal gsl_complex gsl_complex_log_b(@ByVal gsl_complex a, @ByVal gsl_complex b); /* r=log_b(a) (base=b) */
/* Complex Trigonometric Functions */
public static native @ByVal gsl_complex gsl_complex_sin(@ByVal gsl_complex a); /* r=sin(a) */
public static native @ByVal gsl_complex gsl_complex_cos(@ByVal gsl_complex a); /* r=cos(a) */
public static native @ByVal gsl_complex gsl_complex_sec(@ByVal gsl_complex a); /* r=sec(a) */
public static native @ByVal gsl_complex gsl_complex_csc(@ByVal gsl_complex a); /* r=csc(a) */
public static native @ByVal gsl_complex gsl_complex_tan(@ByVal gsl_complex a); /* r=tan(a) */
public static native @ByVal gsl_complex gsl_complex_cot(@ByVal gsl_complex a); /* r=cot(a) */
/* Inverse Complex Trigonometric Functions */
public static native @ByVal gsl_complex gsl_complex_arcsin(@ByVal gsl_complex a); /* r=arcsin(a) */
public static native @ByVal gsl_complex gsl_complex_arcsin_real(double a); /* r=arcsin(a) */
public static native @ByVal gsl_complex gsl_complex_arccos(@ByVal gsl_complex a); /* r=arccos(a) */
public static native @ByVal gsl_complex gsl_complex_arccos_real(double a); /* r=arccos(a) */
public static native @ByVal gsl_complex gsl_complex_arcsec(@ByVal gsl_complex a); /* r=arcsec(a) */
public static native @ByVal gsl_complex gsl_complex_arcsec_real(double a); /* r=arcsec(a) */
public static native @ByVal gsl_complex gsl_complex_arccsc(@ByVal gsl_complex a); /* r=arccsc(a) */
public static native @ByVal gsl_complex gsl_complex_arccsc_real(double a); /* r=arccsc(a) */
public static native @ByVal gsl_complex gsl_complex_arctan(@ByVal gsl_complex a); /* r=arctan(a) */
public static native @ByVal gsl_complex gsl_complex_arccot(@ByVal gsl_complex a); /* r=arccot(a) */
/* Complex Hyperbolic Functions */
public static native @ByVal gsl_complex gsl_complex_sinh(@ByVal gsl_complex a); /* r=sinh(a) */
public static native @ByVal gsl_complex gsl_complex_cosh(@ByVal gsl_complex a); /* r=coshh(a) */
public static native @ByVal gsl_complex gsl_complex_sech(@ByVal gsl_complex a); /* r=sech(a) */
public static native @ByVal gsl_complex gsl_complex_csch(@ByVal gsl_complex a); /* r=csch(a) */
public static native @ByVal gsl_complex gsl_complex_tanh(@ByVal gsl_complex a); /* r=tanh(a) */
public static native @ByVal gsl_complex gsl_complex_coth(@ByVal gsl_complex a); /* r=coth(a) */
/* Inverse Complex Hyperbolic Functions */
public static native @ByVal gsl_complex gsl_complex_arcsinh(@ByVal gsl_complex a); /* r=arcsinh(a) */
public static native @ByVal gsl_complex gsl_complex_arccosh(@ByVal gsl_complex a); /* r=arccosh(a) */
public static native @ByVal gsl_complex gsl_complex_arccosh_real(double a); /* r=arccosh(a) */
public static native @ByVal gsl_complex gsl_complex_arcsech(@ByVal gsl_complex a); /* r=arcsech(a) */
public static native @ByVal gsl_complex gsl_complex_arccsch(@ByVal gsl_complex a); /* r=arccsch(a) */
public static native @ByVal gsl_complex gsl_complex_arctanh(@ByVal gsl_complex a); /* r=arctanh(a) */
public static native @ByVal gsl_complex gsl_complex_arctanh_real(double a); /* r=arctanh(a) */
public static native @ByVal gsl_complex gsl_complex_arccoth(@ByVal gsl_complex a); /* r=arccoth(a) */
// #endif /* __GSL_COMPLEX_MATH_H__ */
// Parsed from gsl/gsl_check_range.h
/* vector/gsl_check_range.h
*
* Copyright (C) 2003, 2004, 2007 Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_CHECK_RANGE_H__
// #define __GSL_CHECK_RANGE_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static native int gsl_check_range(); public static native void gsl_check_range(int gsl_check_range);
/* Turn range checking on by default, unless the user defines
GSL_RANGE_CHECK_OFF, or defines GSL_RANGE_CHECK to 0 explicitly */
// #ifdef GSL_RANGE_CHECK_OFF
// # ifndef GSL_RANGE_CHECK
// # define GSL_RANGE_CHECK 0
// # else
// # endif
// #else
// # ifndef GSL_RANGE_CHECK
// # define GSL_RANGE_CHECK 1
// # endif
// #endif
// #endif /* __GSL_CHECK_RANGE_H__ */
// Parsed from gsl/gsl_sys.h
/* sys/gsl_sys.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_SYS_H__
// #define __GSL_SYS_H__
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static native double gsl_log1p(double x);
public static native double gsl_expm1(double x);
public static native double gsl_hypot(double x, double y);
public static native double gsl_hypot3(double x, double y, double z);
public static native double gsl_acosh(double x);
public static native double gsl_asinh(double x);
public static native double gsl_atanh(double x);
public static native int gsl_isnan(double x);
public static native int gsl_isinf(double x);
public static native int gsl_finite(double x);
public static native double gsl_nan();
public static native double gsl_posinf();
public static native double gsl_neginf();
public static native double gsl_fdiv(double x, double y);
public static native double gsl_coerce_double(double x);
public static native float gsl_coerce_float(float x);
public static native @Cast("long double") double gsl_coerce_long_double(@Cast("const long double") double x);
public static native double gsl_ldexp(double x, int e);
public static native double gsl_frexp(double x, IntPointer e);
public static native double gsl_frexp(double x, IntBuffer e);
public static native double gsl_frexp(double x, int[] e);
public static native int gsl_fcmp(double x1, double x2, double epsilon);
// #endif /* __GSL_SYS_H__ */
// Parsed from gsl/gsl_machine.h
/* Author: B. Gough and G. Jungman */
// #ifndef __GSL_MACHINE_H__
// #define __GSL_MACHINE_H__
// #include
// #include
/* magic constants; mostly for the benefit of the implementation */
/* -*-MACHINE CONSTANTS-*-
*
* PLATFORM: Whiz-O-Matic 9000
* FP_PLATFORM: IEEE-Virtual
* HOSTNAME: nnn.lanl.gov
* DATE: Fri Nov 20 17:53:26 MST 1998
*/
public static final double GSL_DBL_EPSILON = 2.2204460492503131e-16;
public static final double GSL_SQRT_DBL_EPSILON = 1.4901161193847656e-08;
public static final double GSL_ROOT3_DBL_EPSILON = 6.0554544523933429e-06;
public static final double GSL_ROOT4_DBL_EPSILON = 1.2207031250000000e-04;
public static final double GSL_ROOT5_DBL_EPSILON = 7.4009597974140505e-04;
public static final double GSL_ROOT6_DBL_EPSILON = 2.4607833005759251e-03;
public static final double GSL_LOG_DBL_EPSILON = (-3.6043653389117154e+01);
public static final double GSL_DBL_MIN = 2.2250738585072014e-308;
public static final double GSL_SQRT_DBL_MIN = 1.4916681462400413e-154;
public static final double GSL_ROOT3_DBL_MIN = 2.8126442852362996e-103;
public static final double GSL_ROOT4_DBL_MIN = 1.2213386697554620e-77;
public static final double GSL_ROOT5_DBL_MIN = 2.9476022969691763e-62;
public static final double GSL_ROOT6_DBL_MIN = 5.3034368905798218e-52;
public static final double GSL_LOG_DBL_MIN = (-7.0839641853226408e+02);
public static final double GSL_DBL_MAX = 1.7976931348623157e+308;
public static final double GSL_SQRT_DBL_MAX = 1.3407807929942596e+154;
public static final double GSL_ROOT3_DBL_MAX = 5.6438030941222897e+102;
public static final double GSL_ROOT4_DBL_MAX = 1.1579208923731620e+77;
public static final double GSL_ROOT5_DBL_MAX = 4.4765466227572707e+61;
public static final double GSL_ROOT6_DBL_MAX = 2.3756689782295612e+51;
public static final double GSL_LOG_DBL_MAX = 7.0978271289338397e+02;
public static final double GSL_FLT_EPSILON = 1.1920928955078125e-07;
public static final double GSL_SQRT_FLT_EPSILON = 3.4526698300124393e-04;
public static final double GSL_ROOT3_FLT_EPSILON = 4.9215666011518501e-03;
public static final double GSL_ROOT4_FLT_EPSILON = 1.8581361171917516e-02;
public static final double GSL_ROOT5_FLT_EPSILON = 4.1234622211652937e-02;
public static final double GSL_ROOT6_FLT_EPSILON = 7.0153878019335827e-02;
public static final double GSL_LOG_FLT_EPSILON = (-1.5942385152878742e+01);
public static final double GSL_FLT_MIN = 1.1754943508222875e-38;
public static final double GSL_SQRT_FLT_MIN = 1.0842021724855044e-19;
public static final double GSL_ROOT3_FLT_MIN = 2.2737367544323241e-13;
public static final double GSL_ROOT4_FLT_MIN = 3.2927225399135965e-10;
public static final double GSL_ROOT5_FLT_MIN = 2.5944428542140822e-08;
public static final double GSL_ROOT6_FLT_MIN = 4.7683715820312542e-07;
public static final double GSL_LOG_FLT_MIN = (-8.7336544750553102e+01);
public static final double GSL_FLT_MAX = 3.4028234663852886e+38;
public static final double GSL_SQRT_FLT_MAX = 1.8446743523953730e+19;
public static final double GSL_ROOT3_FLT_MAX = 6.9814635196223242e+12;
public static final double GSL_ROOT4_FLT_MAX = 4.2949672319999986e+09;
public static final double GSL_ROOT5_FLT_MAX = 5.0859007855960041e+07;
public static final double GSL_ROOT6_FLT_MAX = 2.6422459233807749e+06;
public static final double GSL_LOG_FLT_MAX = 8.8722839052068352e+01;
public static final double GSL_SFLT_EPSILON = 4.8828125000000000e-04;
public static final double GSL_SQRT_SFLT_EPSILON = 2.2097086912079612e-02;
public static final double GSL_ROOT3_SFLT_EPSILON = 7.8745065618429588e-02;
public static final double GSL_ROOT4_SFLT_EPSILON = 1.4865088937534013e-01;
public static final double GSL_ROOT5_SFLT_EPSILON = 2.1763764082403100e-01;
public static final double GSL_ROOT6_SFLT_EPSILON = 2.8061551207734325e-01;
public static final double GSL_LOG_SFLT_EPSILON = (-7.6246189861593985e+00);
/* !MACHINE CONSTANTS! */
/* a little internal backwards compatibility */
public static final double GSL_MACH_EPS = GSL_DBL_EPSILON;
/* Here are the constants related to or derived from
* machine constants. These are not to be confused with
* the constants that define various precision levels
* for the precision/error system.
*
* This information is determined at configure time
* and is platform dependent. Edit at your own risk.
*
* PLATFORM: WHIZ-O-MATIC
* CONFIG-DATE: Thu Nov 19 19:27:18 MST 1998
* CONFIG-HOST: nnn.lanl.gov
*/
/* machine precision constants */
/* #define GSL_MACH_EPS 1.0e-15 */
public static final double GSL_SQRT_MACH_EPS = 3.2e-08;
public static final double GSL_ROOT3_MACH_EPS = 1.0e-05;
public static final double GSL_ROOT4_MACH_EPS = 0.000178;
public static final double GSL_ROOT5_MACH_EPS = 0.00100;
public static final double GSL_ROOT6_MACH_EPS = 0.00316;
public static final double GSL_LOG_MACH_EPS = (-34.54);
// #endif /* __GSL_MACHINE_H__ */
// Parsed from gsl/gsl_precision.h
/* gsl_precision.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/* Author: B. Gough and G. Jungman */
// #ifndef __GSL_PRECISION_H__
// #define __GSL_PRECISION_H__
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
/* A type for the precision indicator.
* This is mainly for pedagogy.
*/
/* The number of precision types.
* Remember that precision-mode
* can index an array.
*/
public static final int _GSL_PREC_T_NUM = 3;
/* Arrays containing derived
* precision constants for the
* different precision levels.
*/
@MemberGetter public static native double gsl_prec_eps(int i);
@MemberGetter public static native @Const DoublePointer gsl_prec_eps();
@MemberGetter public static native double gsl_prec_sqrt_eps(int i);
@MemberGetter public static native @Const DoublePointer gsl_prec_sqrt_eps();
@MemberGetter public static native double gsl_prec_root3_eps(int i);
@MemberGetter public static native @Const DoublePointer gsl_prec_root3_eps();
@MemberGetter public static native double gsl_prec_root4_eps(int i);
@MemberGetter public static native @Const DoublePointer gsl_prec_root4_eps();
@MemberGetter public static native double gsl_prec_root5_eps(int i);
@MemberGetter public static native @Const DoublePointer gsl_prec_root5_eps();
@MemberGetter public static native double gsl_prec_root6_eps(int i);
@MemberGetter public static native @Const DoublePointer gsl_prec_root6_eps();
// #endif /* __GSL_PRECISION_H__ */
// Parsed from gsl/gsl_nan.h
/* gsl_nan.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_NAN_H__
// #define __GSL_NAN_H__
// #ifdef INFINITY
// #elif defined(HUGE_VAL)
// #else
public static native @MemberGetter int GSL_POSINF();
public static final int GSL_POSINF = GSL_POSINF();
public static native @MemberGetter int GSL_NEGINF();
public static final int GSL_NEGINF = GSL_NEGINF();
// #endif
// #ifdef NAN
// #elif defined(INFINITY)
// #else
public static native @MemberGetter int GSL_NAN();
public static final int GSL_NAN = GSL_NAN();
// #endif
public static final double GSL_POSZERO = (+0.0);
public static final double GSL_NEGZERO = (-0.0);
// #endif /* __GSL_NAN_H__ */
// Parsed from gsl/gsl_pow_int.h
/* gsl_pow_int.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2004, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_POW_INT_H__
// #define __GSL_POW_INT_H__
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
/* */ public static native double gsl_pow_2(double x);
/* */ public static native double gsl_pow_3(double x);
/* */ public static native double gsl_pow_4(double x);
/* */ public static native double gsl_pow_5(double x);
/* */ public static native double gsl_pow_6(double x);
/* */ public static native double gsl_pow_7(double x);
/* */ public static native double gsl_pow_8(double x);
/* */ public static native double gsl_pow_9(double x);
// #ifdef HAVE_INLINE
// #endif
public static native double gsl_pow_int(double x, int n);
public static native double gsl_pow_uint(double x, @Cast("unsigned int") int n);
// #endif /* __GSL_POW_INT_H__ */
// Parsed from gsl/gsl_math.h
/* gsl_math.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2004, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MATH_H__
// #define __GSL_MATH_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #ifndef M_E
public static final double M_E = 2.71828182845904523536028747135; /* e */
// #endif
// #ifndef M_LOG2E
public static final double M_LOG2E = 1.44269504088896340735992468100; /* log_2 (e) */
// #endif
// #ifndef M_LOG10E
public static final double M_LOG10E = 0.43429448190325182765112891892; /* log_10 (e) */
// #endif
// #ifndef M_SQRT2
public static final double M_SQRT2 = 1.41421356237309504880168872421; /* sqrt(2) */
// #endif
// #ifndef M_SQRT1_2
public static final double M_SQRT1_2 = 0.70710678118654752440084436210; /* sqrt(1/2) */
// #endif
// #ifndef M_SQRT3
public static final double M_SQRT3 = 1.73205080756887729352744634151; /* sqrt(3) */
// #endif
// #ifndef M_PI
public static final double M_PI = 3.14159265358979323846264338328; /* pi */
// #endif
// #ifndef M_PI_2
public static final double M_PI_2 = 1.57079632679489661923132169164; /* pi/2 */
// #endif
// #ifndef M_PI_4
public static final double M_PI_4 = 0.78539816339744830961566084582; /* pi/4 */
// #endif
// #ifndef M_SQRTPI
public static final double M_SQRTPI = 1.77245385090551602729816748334; /* sqrt(pi) */
// #endif
// #ifndef M_2_SQRTPI
public static final double M_2_SQRTPI = 1.12837916709551257389615890312; /* 2/sqrt(pi) */
// #endif
// #ifndef M_1_PI
public static final double M_1_PI = 0.31830988618379067153776752675; /* 1/pi */
// #endif
// #ifndef M_2_PI
public static final double M_2_PI = 0.63661977236758134307553505349; /* 2/pi */
// #endif
// #ifndef M_LN10
public static final double M_LN10 = 2.30258509299404568401799145468; /* ln(10) */
// #endif
// #ifndef M_LN2
public static final double M_LN2 = 0.69314718055994530941723212146; /* ln(2) */
// #endif
// #ifndef M_LNPI
public static final double M_LNPI = 1.14472988584940017414342735135; /* ln(pi) */
// #endif
// #ifndef M_EULER
public static final double M_EULER = 0.57721566490153286060651209008; /* Euler constant */
// #endif
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
/* other needlessly compulsive abstractions */
// #define GSL_IS_ODD(n) ((n) & 1)
// #define GSL_IS_EVEN(n) (!(GSL_IS_ODD(n)))
// #define GSL_SIGN(x) ((x) >= 0.0 ? 1 : -1)
/* Return nonzero if x is a real number, i.e. non NaN or infinite. */
// #define GSL_IS_REAL(x) (gsl_finite(x))
/* Definition of an arbitrary function with parameters */
@Name("gsl_function_struct") public static class gsl_function extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_function() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_function(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_function(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_function position(long position) {
return (gsl_function)super.position(position);
}
public static class Function_double_Pointer extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Function_double_Pointer(Pointer p) { super(p); }
protected Function_double_Pointer() { allocate(); }
private native void allocate();
public native double call(double x, Pointer params);
}
public native Function_double_Pointer function(); public native gsl_function function(Function_double_Pointer function);
public native Pointer params(); public native gsl_function params(Pointer params);
}
// #define GSL_FN_EVAL(F,x) (*((F)->function))(x,(F)->params)
/* Definition of an arbitrary function returning two values, r1, r2 */
@Name("gsl_function_fdf_struct") public static class gsl_function_fdf extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_function_fdf() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_function_fdf(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_function_fdf(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_function_fdf position(long position) {
return (gsl_function_fdf)super.position(position);
}
public static class F_double_Pointer extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public F_double_Pointer(Pointer p) { super(p); }
protected F_double_Pointer() { allocate(); }
private native void allocate();
public native double call(double x, Pointer params);
}
public native F_double_Pointer f(); public native gsl_function_fdf f(F_double_Pointer f);
public static class Df_double_Pointer extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Df_double_Pointer(Pointer p) { super(p); }
protected Df_double_Pointer() { allocate(); }
private native void allocate();
public native double call(double x, Pointer params);
}
public native Df_double_Pointer df(); public native gsl_function_fdf df(Df_double_Pointer df);
public static class Fdf_double_Pointer_DoublePointer_DoublePointer extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Fdf_double_Pointer_DoublePointer_DoublePointer(Pointer p) { super(p); }
protected Fdf_double_Pointer_DoublePointer_DoublePointer() { allocate(); }
private native void allocate();
public native void call(double x, Pointer params, DoublePointer f, DoublePointer df);
}
public native Fdf_double_Pointer_DoublePointer_DoublePointer fdf(); public native gsl_function_fdf fdf(Fdf_double_Pointer_DoublePointer_DoublePointer fdf);
public native Pointer params(); public native gsl_function_fdf params(Pointer params);
}
// #define GSL_FN_FDF_EVAL_F(FDF,x) (*((FDF)->f))(x,(FDF)->params)
// #define GSL_FN_FDF_EVAL_DF(FDF,x) (*((FDF)->df))(x,(FDF)->params)
// #define GSL_FN_FDF_EVAL_F_DF(FDF,x,y,dy) (*((FDF)->fdf))(x,(FDF)->params,(y),(dy))
/* Definition of an arbitrary vector-valued function with parameters */
@Name("gsl_function_vec_struct") public static class gsl_function_vec extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_function_vec() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_function_vec(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_function_vec(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_function_vec position(long position) {
return (gsl_function_vec)super.position(position);
}
public static class Function_double_DoublePointer_Pointer extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Function_double_DoublePointer_Pointer(Pointer p) { super(p); }
protected Function_double_DoublePointer_Pointer() { allocate(); }
private native void allocate();
public native int call(double x, DoublePointer y, Pointer params);
}
public native Function_double_DoublePointer_Pointer function(); public native gsl_function_vec function(Function_double_DoublePointer_Pointer function);
public native Pointer params(); public native gsl_function_vec params(Pointer params);
}
// #define GSL_FN_VEC_EVAL(F,x,y) (*((F)->function))(x,y,(F)->params)
// #endif /* __GSL_MATH_H__ */
// Parsed from gsl/gsl_min.h
/* min/gsl_min.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007, 2009 Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MIN_H__
// #define __GSL_MIN_H__
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_min_fminimizer_type extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_min_fminimizer_type() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_min_fminimizer_type(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_min_fminimizer_type(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_min_fminimizer_type position(long position) {
return (gsl_min_fminimizer_type)super.position(position);
}
@MemberGetter public native @Cast("const char*") BytePointer name();
public native @Cast("size_t") long size(); public native gsl_min_fminimizer_type size(long size);
public static class Set_Pointer_gsl_function_double_double_double_double_double_double extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Set_Pointer_gsl_function_double_double_double_double_double_double(Pointer p) { super(p); }
protected Set_Pointer_gsl_function_double_double_double_double_double_double() { allocate(); }
private native void allocate();
public native int call(Pointer state, gsl_function f, double x_minimum, double f_minimum, double x_lower, double f_lower, double x_upper, double f_upper);
}
public native Set_Pointer_gsl_function_double_double_double_double_double_double set(); public native gsl_min_fminimizer_type set(Set_Pointer_gsl_function_double_double_double_double_double_double set);
public static class Iterate_Pointer_gsl_function_DoublePointer_DoublePointer_DoublePointer_DoublePointer_DoublePointer_DoublePointer extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Iterate_Pointer_gsl_function_DoublePointer_DoublePointer_DoublePointer_DoublePointer_DoublePointer_DoublePointer(Pointer p) { super(p); }
protected Iterate_Pointer_gsl_function_DoublePointer_DoublePointer_DoublePointer_DoublePointer_DoublePointer_DoublePointer() { allocate(); }
private native void allocate();
public native int call(Pointer state, gsl_function f, DoublePointer x_minimum, DoublePointer f_minimum, DoublePointer x_lower, DoublePointer f_lower, DoublePointer x_upper, DoublePointer f_upper);
}
public native Iterate_Pointer_gsl_function_DoublePointer_DoublePointer_DoublePointer_DoublePointer_DoublePointer_DoublePointer iterate(); public native gsl_min_fminimizer_type iterate(Iterate_Pointer_gsl_function_DoublePointer_DoublePointer_DoublePointer_DoublePointer_DoublePointer_DoublePointer iterate);
}
public static class gsl_min_fminimizer extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_min_fminimizer() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_min_fminimizer(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_min_fminimizer(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_min_fminimizer position(long position) {
return (gsl_min_fminimizer)super.position(position);
}
@MemberGetter public native @Const gsl_min_fminimizer_type type();
public native gsl_function function(); public native gsl_min_fminimizer function(gsl_function function);
public native double x_minimum(); public native gsl_min_fminimizer x_minimum(double x_minimum);
public native double x_lower(); public native gsl_min_fminimizer x_lower(double x_lower);
public native double x_upper(); public native gsl_min_fminimizer x_upper(double x_upper);
public native double f_minimum(); public native gsl_min_fminimizer f_minimum(double f_minimum);
public native double f_lower(); public native gsl_min_fminimizer f_lower(double f_lower);
public native double f_upper(); public native gsl_min_fminimizer f_upper(double f_upper);
public native Pointer state(); public native gsl_min_fminimizer state(Pointer state);
}
public static native gsl_min_fminimizer gsl_min_fminimizer_alloc(@Const gsl_min_fminimizer_type T);
public static native void gsl_min_fminimizer_free(gsl_min_fminimizer s);
public static native int gsl_min_fminimizer_set(gsl_min_fminimizer s,
gsl_function f, double x_minimum,
double x_lower, double x_upper);
public static native int gsl_min_fminimizer_set_with_values(gsl_min_fminimizer s,
gsl_function f,
double x_minimum, double f_minimum,
double x_lower, double f_lower,
double x_upper, double f_upper);
public static native int gsl_min_fminimizer_iterate(gsl_min_fminimizer s);
public static native @Cast("const char*") BytePointer gsl_min_fminimizer_name(@Const gsl_min_fminimizer s);
public static native double gsl_min_fminimizer_x_minimum(@Const gsl_min_fminimizer s);
public static native double gsl_min_fminimizer_x_lower(@Const gsl_min_fminimizer s);
public static native double gsl_min_fminimizer_x_upper(@Const gsl_min_fminimizer s);
public static native double gsl_min_fminimizer_f_minimum(@Const gsl_min_fminimizer s);
public static native double gsl_min_fminimizer_f_lower(@Const gsl_min_fminimizer s);
public static native double gsl_min_fminimizer_f_upper(@Const gsl_min_fminimizer s);
/* Deprecated, use x_minimum instead */
public static native double gsl_min_fminimizer_minimum(@Const gsl_min_fminimizer s);
public static native int gsl_min_test_interval(double x_lower, double x_upper, double epsabs, double epsrel);
@MemberGetter public static native @Const gsl_min_fminimizer_type gsl_min_fminimizer_goldensection();
@MemberGetter public static native @Const gsl_min_fminimizer_type gsl_min_fminimizer_brent();
@MemberGetter public static native @Const gsl_min_fminimizer_type gsl_min_fminimizer_quad_golden();
public static class gsl_min_bracketing_function extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_min_bracketing_function(Pointer p) { super(p); }
protected gsl_min_bracketing_function() { allocate(); }
private native void allocate();
public native int call(gsl_function f,
DoublePointer x_minimum,DoublePointer f_minimum,
DoublePointer x_lower, DoublePointer f_lower,
DoublePointer x_upper, DoublePointer f_upper,
@Cast("size_t") long eval_max);
}
public static native int gsl_min_find_bracket(gsl_function f,DoublePointer x_minimum,DoublePointer f_minimum,
DoublePointer x_lower, DoublePointer f_lower,
DoublePointer x_upper, DoublePointer f_upper,
@Cast("size_t") long eval_max);
public static native int gsl_min_find_bracket(gsl_function f,DoubleBuffer x_minimum,DoubleBuffer f_minimum,
DoubleBuffer x_lower, DoubleBuffer f_lower,
DoubleBuffer x_upper, DoubleBuffer f_upper,
@Cast("size_t") long eval_max);
public static native int gsl_min_find_bracket(gsl_function f,double[] x_minimum,double[] f_minimum,
double[] x_lower, double[] f_lower,
double[] x_upper, double[] f_upper,
@Cast("size_t") long eval_max);
// #endif /* __GSL_MIN_H__ */
// Parsed from gsl/gsl_minmax.h
/* gsl_minmax.h
*
* Copyright (C) 2008 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MINMAX_H__
// #define __GSL_MINMAX_H__
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
/* Define MAX and MIN macros/functions if they don't exist. */
/* plain old macros for general use */
// #define GSL_MAX(a,b) ((a) > (b) ? (a) : (b))
// #define GSL_MIN(a,b) ((a) < (b) ? (a) : (b))
/* function versions of the above, in case they are needed */
public static native double gsl_max(double a, double b);
public static native double gsl_min(double a, double b);
/* inline-friendly strongly typed versions */
// #ifdef HAVE_INLINE
public static native int GSL_MAX_INT(int a, int b);
public static native int GSL_MIN_INT(int a, int b);
public static native double GSL_MAX_DBL(double a, double b);
public static native double GSL_MIN_DBL(double a, double b);
public static native @Cast("long double") double GSL_MAX_LDBL(@Cast("long double") double a, @Cast("long double") double b);
public static native @Cast("long double") double GSL_MIN_LDBL(@Cast("long double") double a, @Cast("long double") double b);
// #else
// #define GSL_MAX_INT(a,b) GSL_MAX(a,b)
// #define GSL_MIN_INT(a,b) GSL_MIN(a,b)
// #define GSL_MAX_DBL(a,b) GSL_MAX(a,b)
// #define GSL_MIN_DBL(a,b) GSL_MIN(a,b)
// #define GSL_MAX_LDBL(a,b) GSL_MAX(a,b)
// #define GSL_MIN_LDBL(a,b) GSL_MIN(a,b)
// #endif /* HAVE_INLINE */
// #endif /* __GSL_POW_INT_H__ */
// Parsed from gsl/gsl_mode.h
/* gsl_mode.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2004 Gerard Jungman
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/* Author: B. Gough and G. Jungman */
// #ifndef __GSL_MODE_H__
// #define __GSL_MODE_H__
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
/* Some functions can take a mode argument. This
* is a rough method to do things like control
* the precision of the algorithm. This mainly
* occurs in special functions, but we figured
* it was ok to have a general facility.
*
* The mode type is 32-bit field. Most of
* the fields are currently unused. Users
* '|' various predefined constants to get
* a desired mode.
*/
/* Here are the predefined constants.
* Note that the precision constants
* are special because they are used
* to index arrays, so do not change
* them. The precision information is
* in the low order 3 bits of gsl_mode_t
* (the third bit is currently unused).
*/
/* Note that "0" is double precision,
* so that you get that by default if
* you forget a flag.
*/
public static final int GSL_PREC_DOUBLE = 0;
public static final int GSL_PREC_SINGLE = 1;
public static final int GSL_PREC_APPROX = 2;
// #ifdef HAVE_INLINE
public static native @Cast("unsigned int") int GSL_MODE_PREC(@Cast("gsl_mode_t") int mt);
// #else /* HAVE_INLINE */
// #define GSL_MODE_PREC(mt) ((mt) & (unsigned int)7)
// #endif /* HAVE_INLINE */
/* Here are some predefined generic modes.
*/
public static final int GSL_MODE_DEFAULT = 0;
// #endif /* __GSL_MODE_H__ */
// Parsed from gsl/gsl_test.h
/* err/gsl_test.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_TEST_H__
// #define __GSL_TEST_H__
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static native void gsl_test(int status, @Cast("const char*") BytePointer test_description);
public static native void gsl_test(int status, String test_description);
public static native void gsl_test_rel(double result, double expected, double relative_error,
@Cast("const char*") BytePointer test_description);
public static native void gsl_test_rel(double result, double expected, double relative_error,
String test_description);
public static native void gsl_test_abs(double result, double expected, double absolute_error,
@Cast("const char*") BytePointer test_description);
public static native void gsl_test_abs(double result, double expected, double absolute_error,
String test_description);
public static native void gsl_test_factor(double result, double expected, double factor,
@Cast("const char*") BytePointer test_description);
public static native void gsl_test_factor(double result, double expected, double factor,
String test_description);
public static native void gsl_test_int(int result, int expected, @Cast("const char*") BytePointer test_description);
public static native void gsl_test_int(int result, int expected, String test_description);
public static native void gsl_test_str(@Cast("const char*") BytePointer result, @Cast("const char*") BytePointer expected,
@Cast("const char*") BytePointer test_description);
public static native void gsl_test_str(String result, String expected,
String test_description);
public static native void gsl_test_verbose(int verbose);
public static native int gsl_test_summary();
// #endif /* __GSL_TEST_H__ */
// Parsed from gsl/gsl_version.h
// #ifndef __GSL_VERSION_H__
// #define __GSL_VERSION_H__
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static final String GSL_VERSION = "2.4";
public static final int GSL_MAJOR_VERSION = 2;
public static final int GSL_MINOR_VERSION = 4;
@MemberGetter public static native @Cast("const char*") BytePointer gsl_version();
// #endif /* __GSL_VERSION_H__ */
// Parsed from gsl/gsl_block.h
// #ifndef __GSL_BLOCK_H__
// #define __GSL_BLOCK_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #endif /* __GSL_BLOCK_H__ */
// Parsed from gsl/gsl_block_complex_double.h
/* block/gsl_block_complex_double.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_BLOCK_COMPLEX_DOUBLE_H__
// #define __GSL_BLOCK_COMPLEX_DOUBLE_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
@Name("gsl_block_complex_struct") public static class gsl_block_complex extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_block_complex() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_block_complex(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_block_complex(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_block_complex position(long position) {
return (gsl_block_complex)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_block_complex size(long size);
public native DoublePointer data(); public native gsl_block_complex data(DoublePointer data);
}
public static native gsl_block_complex gsl_block_complex_alloc(@Cast("const size_t") long n);
public static native gsl_block_complex gsl_block_complex_calloc(@Cast("const size_t") long n);
public static native void gsl_block_complex_free(gsl_block_complex b);
public static native int gsl_block_complex_fread(@Cast("FILE*") Pointer stream, gsl_block_complex b);
public static native int gsl_block_complex_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_block_complex b);
public static native int gsl_block_complex_fscanf(@Cast("FILE*") Pointer stream, gsl_block_complex b);
public static native int gsl_block_complex_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_complex b, @Cast("const char*") BytePointer format);
public static native int gsl_block_complex_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_complex b, String format);
public static native int gsl_block_complex_raw_fread(@Cast("FILE*") Pointer stream, DoublePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_raw_fread(@Cast("FILE*") Pointer stream, DoubleBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_raw_fread(@Cast("FILE*") Pointer stream, double[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_raw_fwrite(@Cast("FILE*") Pointer stream, @Const DoublePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_raw_fwrite(@Cast("FILE*") Pointer stream, @Const DoubleBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_raw_fwrite(@Cast("FILE*") Pointer stream, @Const double[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_raw_fscanf(@Cast("FILE*") Pointer stream, DoublePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_raw_fscanf(@Cast("FILE*") Pointer stream, DoubleBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_raw_fscanf(@Cast("FILE*") Pointer stream, double[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_raw_fprintf(@Cast("FILE*") Pointer stream, @Const DoublePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_complex_raw_fprintf(@Cast("FILE*") Pointer stream, @Const DoubleBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_complex_raw_fprintf(@Cast("FILE*") Pointer stream, @Const double[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_complex_raw_fprintf(@Cast("FILE*") Pointer stream, @Const DoublePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_complex_raw_fprintf(@Cast("FILE*") Pointer stream, @Const DoubleBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_complex_raw_fprintf(@Cast("FILE*") Pointer stream, @Const double[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native @Cast("size_t") long gsl_block_complex_size(@Const gsl_block_complex b);
public static native DoublePointer gsl_block_complex_data(@Const gsl_block_complex b);
// #endif /* __GSL_BLOCK_COMPLEX_DOUBLE_H__ */
// Parsed from gsl/gsl_block_complex_float.h
/* block/gsl_block_complex_float.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_BLOCK_COMPLEX_FLOAT_H__
// #define __GSL_BLOCK_COMPLEX_FLOAT_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
@Name("gsl_block_complex_float_struct") public static class gsl_block_complex_float extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_block_complex_float() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_block_complex_float(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_block_complex_float(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_block_complex_float position(long position) {
return (gsl_block_complex_float)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_block_complex_float size(long size);
public native FloatPointer data(); public native gsl_block_complex_float data(FloatPointer data);
}
public static native gsl_block_complex_float gsl_block_complex_float_alloc(@Cast("const size_t") long n);
public static native gsl_block_complex_float gsl_block_complex_float_calloc(@Cast("const size_t") long n);
public static native void gsl_block_complex_float_free(gsl_block_complex_float b);
public static native int gsl_block_complex_float_fread(@Cast("FILE*") Pointer stream, gsl_block_complex_float b);
public static native int gsl_block_complex_float_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_block_complex_float b);
public static native int gsl_block_complex_float_fscanf(@Cast("FILE*") Pointer stream, gsl_block_complex_float b);
public static native int gsl_block_complex_float_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_complex_float b, @Cast("const char*") BytePointer format);
public static native int gsl_block_complex_float_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_complex_float b, String format);
public static native int gsl_block_complex_float_raw_fread(@Cast("FILE*") Pointer stream, FloatPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_float_raw_fread(@Cast("FILE*") Pointer stream, FloatBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_float_raw_fread(@Cast("FILE*") Pointer stream, float[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_float_raw_fwrite(@Cast("FILE*") Pointer stream, @Const FloatPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_float_raw_fwrite(@Cast("FILE*") Pointer stream, @Const FloatBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_float_raw_fwrite(@Cast("FILE*") Pointer stream, @Const float[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_float_raw_fscanf(@Cast("FILE*") Pointer stream, FloatPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_float_raw_fscanf(@Cast("FILE*") Pointer stream, FloatBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_float_raw_fscanf(@Cast("FILE*") Pointer stream, float[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_complex_float_raw_fprintf(@Cast("FILE*") Pointer stream, @Const FloatPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_complex_float_raw_fprintf(@Cast("FILE*") Pointer stream, @Const FloatBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_complex_float_raw_fprintf(@Cast("FILE*") Pointer stream, @Const float[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_complex_float_raw_fprintf(@Cast("FILE*") Pointer stream, @Const FloatPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_complex_float_raw_fprintf(@Cast("FILE*") Pointer stream, @Const FloatBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_complex_float_raw_fprintf(@Cast("FILE*") Pointer stream, @Const float[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native @Cast("size_t") long gsl_block_complex_float_size(@Const gsl_block_complex_float b);
public static native FloatPointer gsl_block_complex_float_data(@Const gsl_block_complex_float b);
// #endif /* __GSL_BLOCK_COMPLEX_FLOAT_H__ */
// Parsed from gsl/gsl_block_double.h
/* block/gsl_block_double.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_BLOCK_DOUBLE_H__
// #define __GSL_BLOCK_DOUBLE_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
@Name("gsl_block_struct") public static class gsl_block extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_block() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_block(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_block(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_block position(long position) {
return (gsl_block)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_block size(long size);
public native DoublePointer data(); public native gsl_block data(DoublePointer data);
}
public static native gsl_block gsl_block_alloc(@Cast("const size_t") long n);
public static native gsl_block gsl_block_calloc(@Cast("const size_t") long n);
public static native void gsl_block_free(gsl_block b);
public static native int gsl_block_fread(@Cast("FILE*") Pointer stream, gsl_block b);
public static native int gsl_block_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_block b);
public static native int gsl_block_fscanf(@Cast("FILE*") Pointer stream, gsl_block b);
public static native int gsl_block_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block b, @Cast("const char*") BytePointer format);
public static native int gsl_block_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block b, String format);
public static native int gsl_block_raw_fread(@Cast("FILE*") Pointer stream, DoublePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_raw_fread(@Cast("FILE*") Pointer stream, DoubleBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_raw_fread(@Cast("FILE*") Pointer stream, double[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_raw_fwrite(@Cast("FILE*") Pointer stream, @Const DoublePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_raw_fwrite(@Cast("FILE*") Pointer stream, @Const DoubleBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_raw_fwrite(@Cast("FILE*") Pointer stream, @Const double[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_raw_fscanf(@Cast("FILE*") Pointer stream, DoublePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_raw_fscanf(@Cast("FILE*") Pointer stream, DoubleBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_raw_fscanf(@Cast("FILE*") Pointer stream, double[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_raw_fprintf(@Cast("FILE*") Pointer stream, @Const DoublePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_raw_fprintf(@Cast("FILE*") Pointer stream, @Const DoubleBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_raw_fprintf(@Cast("FILE*") Pointer stream, @Const double[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_raw_fprintf(@Cast("FILE*") Pointer stream, @Const DoublePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_raw_fprintf(@Cast("FILE*") Pointer stream, @Const DoubleBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_raw_fprintf(@Cast("FILE*") Pointer stream, @Const double[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native @Cast("size_t") long gsl_block_size(@Const gsl_block b);
public static native DoublePointer gsl_block_data(@Const gsl_block b);
// #endif /* __GSL_BLOCK_DOUBLE_H__ */
// Parsed from gsl/gsl_block_float.h
/* block/gsl_block_float.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_BLOCK_FLOAT_H__
// #define __GSL_BLOCK_FLOAT_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
@Name("gsl_block_float_struct") public static class gsl_block_float extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_block_float() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_block_float(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_block_float(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_block_float position(long position) {
return (gsl_block_float)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_block_float size(long size);
public native FloatPointer data(); public native gsl_block_float data(FloatPointer data);
}
public static native gsl_block_float gsl_block_float_alloc(@Cast("const size_t") long n);
public static native gsl_block_float gsl_block_float_calloc(@Cast("const size_t") long n);
public static native void gsl_block_float_free(gsl_block_float b);
public static native int gsl_block_float_fread(@Cast("FILE*") Pointer stream, gsl_block_float b);
public static native int gsl_block_float_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_block_float b);
public static native int gsl_block_float_fscanf(@Cast("FILE*") Pointer stream, gsl_block_float b);
public static native int gsl_block_float_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_float b, @Cast("const char*") BytePointer format);
public static native int gsl_block_float_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_float b, String format);
public static native int gsl_block_float_raw_fread(@Cast("FILE*") Pointer stream, FloatPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_float_raw_fread(@Cast("FILE*") Pointer stream, FloatBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_float_raw_fread(@Cast("FILE*") Pointer stream, float[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_float_raw_fwrite(@Cast("FILE*") Pointer stream, @Const FloatPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_float_raw_fwrite(@Cast("FILE*") Pointer stream, @Const FloatBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_float_raw_fwrite(@Cast("FILE*") Pointer stream, @Const float[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_float_raw_fscanf(@Cast("FILE*") Pointer stream, FloatPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_float_raw_fscanf(@Cast("FILE*") Pointer stream, FloatBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_float_raw_fscanf(@Cast("FILE*") Pointer stream, float[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_float_raw_fprintf(@Cast("FILE*") Pointer stream, @Const FloatPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_float_raw_fprintf(@Cast("FILE*") Pointer stream, @Const FloatBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_float_raw_fprintf(@Cast("FILE*") Pointer stream, @Const float[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_float_raw_fprintf(@Cast("FILE*") Pointer stream, @Const FloatPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_float_raw_fprintf(@Cast("FILE*") Pointer stream, @Const FloatBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_float_raw_fprintf(@Cast("FILE*") Pointer stream, @Const float[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native @Cast("size_t") long gsl_block_float_size(@Const gsl_block_float b);
public static native FloatPointer gsl_block_float_data(@Const gsl_block_float b);
// #endif /* __GSL_BLOCK_FLOAT_H__ */
// Parsed from gsl/gsl_block_ulong.h
/* block/gsl_block_ulong.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_BLOCK_ULONG_H__
// #define __GSL_BLOCK_ULONG_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
@Name("gsl_block_ulong_struct") public static class gsl_block_ulong extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_block_ulong() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_block_ulong(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_block_ulong(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_block_ulong position(long position) {
return (gsl_block_ulong)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_block_ulong size(long size);
public native @Cast("unsigned long*") CLongPointer data(); public native gsl_block_ulong data(CLongPointer data);
}
public static native gsl_block_ulong gsl_block_ulong_alloc(@Cast("const size_t") long n);
public static native gsl_block_ulong gsl_block_ulong_calloc(@Cast("const size_t") long n);
public static native void gsl_block_ulong_free(gsl_block_ulong b);
public static native int gsl_block_ulong_fread(@Cast("FILE*") Pointer stream, gsl_block_ulong b);
public static native int gsl_block_ulong_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_block_ulong b);
public static native int gsl_block_ulong_fscanf(@Cast("FILE*") Pointer stream, gsl_block_ulong b);
public static native int gsl_block_ulong_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_ulong b, @Cast("const char*") BytePointer format);
public static native int gsl_block_ulong_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_ulong b, String format);
public static native int gsl_block_ulong_raw_fread(@Cast("FILE*") Pointer stream, @Cast("unsigned long*") CLongPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_ulong_raw_fwrite(@Cast("FILE*") Pointer stream, @Cast("const unsigned long*") CLongPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_ulong_raw_fscanf(@Cast("FILE*") Pointer stream, @Cast("unsigned long*") CLongPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_ulong_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned long*") CLongPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_ulong_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned long*") CLongPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native @Cast("size_t") long gsl_block_ulong_size(@Const gsl_block_ulong b);
public static native @Cast("unsigned long*") CLongPointer gsl_block_ulong_data(@Const gsl_block_ulong b);
// #endif /* __GSL_BLOCK_ULONG_H__ */
// Parsed from gsl/gsl_block_long.h
/* block/gsl_block_long.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_BLOCK_LONG_H__
// #define __GSL_BLOCK_LONG_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
@Name("gsl_block_long_struct") public static class gsl_block_long extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_block_long() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_block_long(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_block_long(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_block_long position(long position) {
return (gsl_block_long)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_block_long size(long size);
public native CLongPointer data(); public native gsl_block_long data(CLongPointer data);
}
public static native gsl_block_long gsl_block_long_alloc(@Cast("const size_t") long n);
public static native gsl_block_long gsl_block_long_calloc(@Cast("const size_t") long n);
public static native void gsl_block_long_free(gsl_block_long b);
public static native int gsl_block_long_fread(@Cast("FILE*") Pointer stream, gsl_block_long b);
public static native int gsl_block_long_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_block_long b);
public static native int gsl_block_long_fscanf(@Cast("FILE*") Pointer stream, gsl_block_long b);
public static native int gsl_block_long_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_long b, @Cast("const char*") BytePointer format);
public static native int gsl_block_long_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_long b, String format);
public static native int gsl_block_long_raw_fread(@Cast("FILE*") Pointer stream, CLongPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_long_raw_fwrite(@Cast("FILE*") Pointer stream, @Const CLongPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_long_raw_fscanf(@Cast("FILE*") Pointer stream, CLongPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_long_raw_fprintf(@Cast("FILE*") Pointer stream, @Const CLongPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_long_raw_fprintf(@Cast("FILE*") Pointer stream, @Const CLongPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native @Cast("size_t") long gsl_block_long_size(@Const gsl_block_long b);
public static native CLongPointer gsl_block_long_data(@Const gsl_block_long b);
// #endif /* __GSL_BLOCK_LONG_H__ */
// Parsed from gsl/gsl_block_uint.h
/* block/gsl_block_uint.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_BLOCK_UINT_H__
// #define __GSL_BLOCK_UINT_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
@Name("gsl_block_uint_struct") public static class gsl_block_uint extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_block_uint() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_block_uint(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_block_uint(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_block_uint position(long position) {
return (gsl_block_uint)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_block_uint size(long size);
public native @Cast("unsigned int*") IntPointer data(); public native gsl_block_uint data(IntPointer data);
}
public static native gsl_block_uint gsl_block_uint_alloc(@Cast("const size_t") long n);
public static native gsl_block_uint gsl_block_uint_calloc(@Cast("const size_t") long n);
public static native void gsl_block_uint_free(gsl_block_uint b);
public static native int gsl_block_uint_fread(@Cast("FILE*") Pointer stream, gsl_block_uint b);
public static native int gsl_block_uint_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_block_uint b);
public static native int gsl_block_uint_fscanf(@Cast("FILE*") Pointer stream, gsl_block_uint b);
public static native int gsl_block_uint_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_uint b, @Cast("const char*") BytePointer format);
public static native int gsl_block_uint_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_uint b, String format);
public static native int gsl_block_uint_raw_fread(@Cast("FILE*") Pointer stream, @Cast("unsigned int*") IntPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uint_raw_fread(@Cast("FILE*") Pointer stream, @Cast("unsigned int*") IntBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uint_raw_fread(@Cast("FILE*") Pointer stream, @Cast("unsigned int*") int[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uint_raw_fwrite(@Cast("FILE*") Pointer stream, @Cast("const unsigned int*") IntPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uint_raw_fwrite(@Cast("FILE*") Pointer stream, @Cast("const unsigned int*") IntBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uint_raw_fwrite(@Cast("FILE*") Pointer stream, @Cast("const unsigned int*") int[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uint_raw_fscanf(@Cast("FILE*") Pointer stream, @Cast("unsigned int*") IntPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uint_raw_fscanf(@Cast("FILE*") Pointer stream, @Cast("unsigned int*") IntBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uint_raw_fscanf(@Cast("FILE*") Pointer stream, @Cast("unsigned int*") int[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uint_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned int*") IntPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_uint_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned int*") IntBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_uint_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned int*") int[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_uint_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned int*") IntPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_uint_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned int*") IntBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_uint_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned int*") int[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native @Cast("size_t") long gsl_block_uint_size(@Const gsl_block_uint b);
public static native @Cast("unsigned int*") IntPointer gsl_block_uint_data(@Const gsl_block_uint b);
// #endif /* __GSL_BLOCK_UINT_H__ */
// Parsed from gsl/gsl_block_int.h
/* block/gsl_block_int.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_BLOCK_INT_H__
// #define __GSL_BLOCK_INT_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
@Name("gsl_block_int_struct") public static class gsl_block_int extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_block_int() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_block_int(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_block_int(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_block_int position(long position) {
return (gsl_block_int)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_block_int size(long size);
public native IntPointer data(); public native gsl_block_int data(IntPointer data);
}
public static native gsl_block_int gsl_block_int_alloc(@Cast("const size_t") long n);
public static native gsl_block_int gsl_block_int_calloc(@Cast("const size_t") long n);
public static native void gsl_block_int_free(gsl_block_int b);
public static native int gsl_block_int_fread(@Cast("FILE*") Pointer stream, gsl_block_int b);
public static native int gsl_block_int_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_block_int b);
public static native int gsl_block_int_fscanf(@Cast("FILE*") Pointer stream, gsl_block_int b);
public static native int gsl_block_int_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_int b, @Cast("const char*") BytePointer format);
public static native int gsl_block_int_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_int b, String format);
public static native int gsl_block_int_raw_fread(@Cast("FILE*") Pointer stream, IntPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_int_raw_fread(@Cast("FILE*") Pointer stream, IntBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_int_raw_fread(@Cast("FILE*") Pointer stream, int[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_int_raw_fwrite(@Cast("FILE*") Pointer stream, @Const IntPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_int_raw_fwrite(@Cast("FILE*") Pointer stream, @Const IntBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_int_raw_fwrite(@Cast("FILE*") Pointer stream, @Const int[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_int_raw_fscanf(@Cast("FILE*") Pointer stream, IntPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_int_raw_fscanf(@Cast("FILE*") Pointer stream, IntBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_int_raw_fscanf(@Cast("FILE*") Pointer stream, int[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_int_raw_fprintf(@Cast("FILE*") Pointer stream, @Const IntPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_int_raw_fprintf(@Cast("FILE*") Pointer stream, @Const IntBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_int_raw_fprintf(@Cast("FILE*") Pointer stream, @Const int[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_int_raw_fprintf(@Cast("FILE*") Pointer stream, @Const IntPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_int_raw_fprintf(@Cast("FILE*") Pointer stream, @Const IntBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_int_raw_fprintf(@Cast("FILE*") Pointer stream, @Const int[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native @Cast("size_t") long gsl_block_int_size(@Const gsl_block_int b);
public static native IntPointer gsl_block_int_data(@Const gsl_block_int b);
// #endif /* __GSL_BLOCK_INT_H__ */
// Parsed from gsl/gsl_block_ushort.h
/* block/gsl_block_ushort.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_BLOCK_USHORT_H__
// #define __GSL_BLOCK_USHORT_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
@Name("gsl_block_ushort_struct") public static class gsl_block_ushort extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_block_ushort() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_block_ushort(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_block_ushort(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_block_ushort position(long position) {
return (gsl_block_ushort)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_block_ushort size(long size);
public native @Cast("unsigned short*") ShortPointer data(); public native gsl_block_ushort data(ShortPointer data);
}
public static native gsl_block_ushort gsl_block_ushort_alloc(@Cast("const size_t") long n);
public static native gsl_block_ushort gsl_block_ushort_calloc(@Cast("const size_t") long n);
public static native void gsl_block_ushort_free(gsl_block_ushort b);
public static native int gsl_block_ushort_fread(@Cast("FILE*") Pointer stream, gsl_block_ushort b);
public static native int gsl_block_ushort_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_block_ushort b);
public static native int gsl_block_ushort_fscanf(@Cast("FILE*") Pointer stream, gsl_block_ushort b);
public static native int gsl_block_ushort_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_ushort b, @Cast("const char*") BytePointer format);
public static native int gsl_block_ushort_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_ushort b, String format);
public static native int gsl_block_ushort_raw_fread(@Cast("FILE*") Pointer stream, @Cast("unsigned short*") ShortPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_ushort_raw_fread(@Cast("FILE*") Pointer stream, @Cast("unsigned short*") ShortBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_ushort_raw_fread(@Cast("FILE*") Pointer stream, @Cast("unsigned short*") short[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_ushort_raw_fwrite(@Cast("FILE*") Pointer stream, @Cast("const unsigned short*") ShortPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_ushort_raw_fwrite(@Cast("FILE*") Pointer stream, @Cast("const unsigned short*") ShortBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_ushort_raw_fwrite(@Cast("FILE*") Pointer stream, @Cast("const unsigned short*") short[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_ushort_raw_fscanf(@Cast("FILE*") Pointer stream, @Cast("unsigned short*") ShortPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_ushort_raw_fscanf(@Cast("FILE*") Pointer stream, @Cast("unsigned short*") ShortBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_ushort_raw_fscanf(@Cast("FILE*") Pointer stream, @Cast("unsigned short*") short[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_ushort_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned short*") ShortPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_ushort_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned short*") ShortBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_ushort_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned short*") short[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_ushort_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned short*") ShortPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_ushort_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned short*") ShortBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_ushort_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned short*") short[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native @Cast("size_t") long gsl_block_ushort_size(@Const gsl_block_ushort b);
public static native @Cast("unsigned short*") ShortPointer gsl_block_ushort_data(@Const gsl_block_ushort b);
// #endif /* __GSL_BLOCK_USHORT_H__ */
// Parsed from gsl/gsl_block_short.h
/* block/gsl_block_short.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_BLOCK_SHORT_H__
// #define __GSL_BLOCK_SHORT_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
@Name("gsl_block_short_struct") public static class gsl_block_short extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_block_short() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_block_short(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_block_short(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_block_short position(long position) {
return (gsl_block_short)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_block_short size(long size);
public native ShortPointer data(); public native gsl_block_short data(ShortPointer data);
}
public static native gsl_block_short gsl_block_short_alloc(@Cast("const size_t") long n);
public static native gsl_block_short gsl_block_short_calloc(@Cast("const size_t") long n);
public static native void gsl_block_short_free(gsl_block_short b);
public static native int gsl_block_short_fread(@Cast("FILE*") Pointer stream, gsl_block_short b);
public static native int gsl_block_short_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_block_short b);
public static native int gsl_block_short_fscanf(@Cast("FILE*") Pointer stream, gsl_block_short b);
public static native int gsl_block_short_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_short b, @Cast("const char*") BytePointer format);
public static native int gsl_block_short_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_short b, String format);
public static native int gsl_block_short_raw_fread(@Cast("FILE*") Pointer stream, ShortPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_short_raw_fread(@Cast("FILE*") Pointer stream, ShortBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_short_raw_fread(@Cast("FILE*") Pointer stream, short[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_short_raw_fwrite(@Cast("FILE*") Pointer stream, @Const ShortPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_short_raw_fwrite(@Cast("FILE*") Pointer stream, @Const ShortBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_short_raw_fwrite(@Cast("FILE*") Pointer stream, @Const short[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_short_raw_fscanf(@Cast("FILE*") Pointer stream, ShortPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_short_raw_fscanf(@Cast("FILE*") Pointer stream, ShortBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_short_raw_fscanf(@Cast("FILE*") Pointer stream, short[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_short_raw_fprintf(@Cast("FILE*") Pointer stream, @Const ShortPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_short_raw_fprintf(@Cast("FILE*") Pointer stream, @Const ShortBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_short_raw_fprintf(@Cast("FILE*") Pointer stream, @Const short[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_short_raw_fprintf(@Cast("FILE*") Pointer stream, @Const ShortPointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_short_raw_fprintf(@Cast("FILE*") Pointer stream, @Const ShortBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_short_raw_fprintf(@Cast("FILE*") Pointer stream, @Const short[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native @Cast("size_t") long gsl_block_short_size(@Const gsl_block_short b);
public static native ShortPointer gsl_block_short_data(@Const gsl_block_short b);
// #endif /* __GSL_BLOCK_SHORT_H__ */
// Parsed from gsl/gsl_block_uchar.h
/* block/gsl_block_uchar.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_BLOCK_UCHAR_H__
// #define __GSL_BLOCK_UCHAR_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
@Name("gsl_block_uchar_struct") public static class gsl_block_uchar extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_block_uchar() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_block_uchar(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_block_uchar(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_block_uchar position(long position) {
return (gsl_block_uchar)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_block_uchar size(long size);
public native @Cast("unsigned char*") BytePointer data(); public native gsl_block_uchar data(BytePointer data);
}
public static native gsl_block_uchar gsl_block_uchar_alloc(@Cast("const size_t") long n);
public static native gsl_block_uchar gsl_block_uchar_calloc(@Cast("const size_t") long n);
public static native void gsl_block_uchar_free(gsl_block_uchar b);
public static native int gsl_block_uchar_fread(@Cast("FILE*") Pointer stream, gsl_block_uchar b);
public static native int gsl_block_uchar_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_block_uchar b);
public static native int gsl_block_uchar_fscanf(@Cast("FILE*") Pointer stream, gsl_block_uchar b);
public static native int gsl_block_uchar_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_uchar b, @Cast("const char*") BytePointer format);
public static native int gsl_block_uchar_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_uchar b, String format);
public static native int gsl_block_uchar_raw_fread(@Cast("FILE*") Pointer stream, @Cast("unsigned char*") BytePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uchar_raw_fread(@Cast("FILE*") Pointer stream, @Cast("unsigned char*") ByteBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uchar_raw_fread(@Cast("FILE*") Pointer stream, @Cast("unsigned char*") byte[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uchar_raw_fwrite(@Cast("FILE*") Pointer stream, @Cast("const unsigned char*") BytePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uchar_raw_fwrite(@Cast("FILE*") Pointer stream, @Cast("const unsigned char*") ByteBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uchar_raw_fwrite(@Cast("FILE*") Pointer stream, @Cast("const unsigned char*") byte[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uchar_raw_fscanf(@Cast("FILE*") Pointer stream, @Cast("unsigned char*") BytePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uchar_raw_fscanf(@Cast("FILE*") Pointer stream, @Cast("unsigned char*") ByteBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uchar_raw_fscanf(@Cast("FILE*") Pointer stream, @Cast("unsigned char*") byte[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_uchar_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned char*") BytePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_uchar_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned char*") ByteBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_uchar_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned char*") byte[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_uchar_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned char*") BytePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native int gsl_block_uchar_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned char*") ByteBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_uchar_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const unsigned char*") byte[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native @Cast("size_t") long gsl_block_uchar_size(@Const gsl_block_uchar b);
public static native @Cast("unsigned char*") BytePointer gsl_block_uchar_data(@Const gsl_block_uchar b);
// #endif /* __GSL_BLOCK_UCHAR_H__ */
// Parsed from gsl/gsl_block_char.h
/* block/gsl_block_char.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_BLOCK_CHAR_H__
// #define __GSL_BLOCK_CHAR_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
@Name("gsl_block_char_struct") public static class gsl_block_char extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_block_char() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_block_char(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_block_char(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_block_char position(long position) {
return (gsl_block_char)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_block_char size(long size);
public native @Cast("char*") BytePointer data(); public native gsl_block_char data(BytePointer data);
}
public static native gsl_block_char gsl_block_char_alloc(@Cast("const size_t") long n);
public static native gsl_block_char gsl_block_char_calloc(@Cast("const size_t") long n);
public static native void gsl_block_char_free(gsl_block_char b);
public static native int gsl_block_char_fread(@Cast("FILE*") Pointer stream, gsl_block_char b);
public static native int gsl_block_char_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_block_char b);
public static native int gsl_block_char_fscanf(@Cast("FILE*") Pointer stream, gsl_block_char b);
public static native int gsl_block_char_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_char b, @Cast("const char*") BytePointer format);
public static native int gsl_block_char_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_block_char b, String format);
public static native int gsl_block_char_raw_fread(@Cast("FILE*") Pointer stream, @Cast("char*") BytePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_char_raw_fread(@Cast("FILE*") Pointer stream, @Cast("char*") ByteBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_char_raw_fread(@Cast("FILE*") Pointer stream, @Cast("char*") byte[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_char_raw_fwrite(@Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_char_raw_fwrite(@Cast("FILE*") Pointer stream, String b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_char_raw_fscanf(@Cast("FILE*") Pointer stream, @Cast("char*") BytePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_char_raw_fscanf(@Cast("FILE*") Pointer stream, @Cast("char*") ByteBuffer b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_char_raw_fscanf(@Cast("FILE*") Pointer stream, @Cast("char*") byte[] b, @Cast("const size_t") long n, @Cast("const size_t") long stride);
public static native int gsl_block_char_raw_fprintf(@Cast("FILE*") Pointer stream, @Cast("const char*") BytePointer b, @Cast("const size_t") long n, @Cast("const size_t") long stride, @Cast("const char*") BytePointer format);
public static native int gsl_block_char_raw_fprintf(@Cast("FILE*") Pointer stream, String b, @Cast("const size_t") long n, @Cast("const size_t") long stride, String format);
public static native @Cast("size_t") long gsl_block_char_size(@Const gsl_block_char b);
public static native @Cast("char*") BytePointer gsl_block_char_data(@Const gsl_block_char b);
// #endif /* __GSL_BLOCK_CHAR_H__ */
// Parsed from gsl/gsl_vector_complex.h
// #ifndef __GSL_VECTOR_COMPLEX_H__
// #define __GSL_VECTOR_COMPLEX_H__
// #define GSL_VECTOR_REAL(z, i) ((z)->data[2*(i)*(z)->stride])
// #define GSL_VECTOR_IMAG(z, i) ((z)->data[2*(i)*(z)->stride + 1])
// #if GSL_RANGE_CHECK
// #else
// #define GSL_VECTOR_COMPLEX(zv, i) (*GSL_COMPLEX_AT((zv),(i)))
// #endif
// #define GSL_COMPLEX_AT(zv,i) ((gsl_complex*)&((zv)->data[2*(i)*(zv)->stride]))
// #define GSL_COMPLEX_FLOAT_AT(zv,i) ((gsl_complex_float*)&((zv)->data[2*(i)*(zv)->stride]))
// #define GSL_COMPLEX_LONG_DOUBLE_AT(zv,i) ((gsl_complex_long_double*)&((zv)->data[2*(i)*(zv)->stride]))
// #endif /* __GSL_VECTOR_COMPLEX_H__ */
// Parsed from gsl/gsl_vector.h
// #ifndef __GSL_VECTOR_H__
// #define __GSL_VECTOR_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #endif /* __GSL_VECTOR_H__ */
// Parsed from gsl/gsl_vector_complex_double.h
/* vector/gsl_vector_complex_double.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_VECTOR_COMPLEX_DOUBLE_H__
// #define __GSL_VECTOR_COMPLEX_DOUBLE_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_vector_complex extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_vector_complex() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_vector_complex(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_vector_complex(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_vector_complex position(long position) {
return (gsl_vector_complex)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_vector_complex size(long size);
public native @Cast("size_t") long stride(); public native gsl_vector_complex stride(long stride);
public native DoublePointer data(); public native gsl_vector_complex data(DoublePointer data);
public native gsl_block_complex block(); public native gsl_vector_complex block(gsl_block_complex block);
public native int owner(); public native gsl_vector_complex owner(int owner);
}
public static class _gsl_vector_complex_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_complex_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_complex_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_complex_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_complex_view position(long position) {
return (_gsl_vector_complex_view)super.position(position);
}
public native @ByRef gsl_vector_complex vector(); public native _gsl_vector_complex_view vector(gsl_vector_complex vector);
}
public static class _gsl_vector_complex_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_complex_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_complex_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_complex_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_complex_const_view position(long position) {
return (_gsl_vector_complex_const_view)super.position(position);
}
public native @ByRef gsl_vector_complex vector(); public native _gsl_vector_complex_const_view vector(gsl_vector_complex vector);
}
/* Allocation */
public static native gsl_vector_complex gsl_vector_complex_alloc(@Cast("const size_t") long n);
public static native gsl_vector_complex gsl_vector_complex_calloc(@Cast("const size_t") long n);
public static native gsl_vector_complex gsl_vector_complex_alloc_from_block(gsl_block_complex b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native gsl_vector_complex gsl_vector_complex_alloc_from_vector(gsl_vector_complex v,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native void gsl_vector_complex_free(gsl_vector_complex v);
/* Views */
public static native @ByVal _gsl_vector_complex_view gsl_vector_complex_view_array(DoublePointer base,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_view gsl_vector_complex_view_array(DoubleBuffer base,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_view gsl_vector_complex_view_array(double[] base,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_view gsl_vector_complex_view_array_with_stride(DoublePointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_view gsl_vector_complex_view_array_with_stride(DoubleBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_view gsl_vector_complex_view_array_with_stride(double[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_const_view gsl_vector_complex_const_view_array(@Const DoublePointer base,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_const_view gsl_vector_complex_const_view_array(@Const DoubleBuffer base,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_const_view gsl_vector_complex_const_view_array(@Const double[] base,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_const_view gsl_vector_complex_const_view_array_with_stride(@Const DoublePointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_const_view gsl_vector_complex_const_view_array_with_stride(@Const DoubleBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_const_view gsl_vector_complex_const_view_array_with_stride(@Const double[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_view gsl_vector_complex_subvector(gsl_vector_complex base,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_view gsl_vector_complex_subvector_with_stride(gsl_vector_complex v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_const_view gsl_vector_complex_const_subvector(@Const gsl_vector_complex base,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_const_view gsl_vector_complex_const_subvector_with_stride(@Const gsl_vector_complex v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_view gsl_vector_complex_real(gsl_vector_complex v);
public static native @ByVal _gsl_vector_view gsl_vector_complex_imag(gsl_vector_complex v);
public static native @ByVal _gsl_vector_const_view gsl_vector_complex_const_real(@Const gsl_vector_complex v);
public static native @ByVal _gsl_vector_const_view gsl_vector_complex_const_imag(@Const gsl_vector_complex v);
/* Operations */
public static native void gsl_vector_complex_set_zero(gsl_vector_complex v);
public static native void gsl_vector_complex_set_all(gsl_vector_complex v,
@ByVal gsl_complex z);
public static native int gsl_vector_complex_set_basis(gsl_vector_complex v, @Cast("size_t") long i);
public static native int gsl_vector_complex_fread(@Cast("FILE*") Pointer stream,
gsl_vector_complex v);
public static native int gsl_vector_complex_fwrite(@Cast("FILE*") Pointer stream,
@Const gsl_vector_complex v);
public static native int gsl_vector_complex_fscanf(@Cast("FILE*") Pointer stream,
gsl_vector_complex v);
public static native int gsl_vector_complex_fprintf(@Cast("FILE*") Pointer stream,
@Const gsl_vector_complex v,
@Cast("const char*") BytePointer format);
public static native int gsl_vector_complex_fprintf(@Cast("FILE*") Pointer stream,
@Const gsl_vector_complex v,
String format);
public static native int gsl_vector_complex_memcpy(gsl_vector_complex dest, @Const gsl_vector_complex src);
public static native int gsl_vector_complex_reverse(gsl_vector_complex v);
public static native int gsl_vector_complex_swap(gsl_vector_complex v, gsl_vector_complex w);
public static native int gsl_vector_complex_swap_elements(gsl_vector_complex v, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_vector_complex_equal(@Const gsl_vector_complex u,
@Const gsl_vector_complex v);
public static native int gsl_vector_complex_isnull(@Const gsl_vector_complex v);
public static native int gsl_vector_complex_ispos(@Const gsl_vector_complex v);
public static native int gsl_vector_complex_isneg(@Const gsl_vector_complex v);
public static native int gsl_vector_complex_isnonneg(@Const gsl_vector_complex v);
public static native int gsl_vector_complex_add(gsl_vector_complex a, @Const gsl_vector_complex b);
public static native int gsl_vector_complex_sub(gsl_vector_complex a, @Const gsl_vector_complex b);
public static native int gsl_vector_complex_mul(gsl_vector_complex a, @Const gsl_vector_complex b);
public static native int gsl_vector_complex_div(gsl_vector_complex a, @Const gsl_vector_complex b);
public static native int gsl_vector_complex_scale(gsl_vector_complex a, @Const @ByVal gsl_complex x);
public static native int gsl_vector_complex_add_constant(gsl_vector_complex a, @Const @ByVal gsl_complex x);
/* */ public static native @ByVal gsl_complex gsl_vector_complex_get(@Const gsl_vector_complex v, @Cast("const size_t") long i);
/* */ public static native void gsl_vector_complex_set(gsl_vector_complex v, @Cast("const size_t") long i, @ByVal gsl_complex z);
/* */ public static native gsl_complex gsl_vector_complex_ptr(gsl_vector_complex v, @Cast("const size_t") long i);
/* */ public static native @Const gsl_complex gsl_vector_complex_const_ptr(@Const gsl_vector_complex v, @Cast("const size_t") long i);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_VECTOR_COMPLEX_DOUBLE_H__ */
// Parsed from gsl/gsl_vector_complex_float.h
/* vector/gsl_vector_complex_float.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_VECTOR_COMPLEX_FLOAT_H__
// #define __GSL_VECTOR_COMPLEX_FLOAT_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_vector_complex_float extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_vector_complex_float() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_vector_complex_float(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_vector_complex_float(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_vector_complex_float position(long position) {
return (gsl_vector_complex_float)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_vector_complex_float size(long size);
public native @Cast("size_t") long stride(); public native gsl_vector_complex_float stride(long stride);
public native FloatPointer data(); public native gsl_vector_complex_float data(FloatPointer data);
public native gsl_block_complex_float block(); public native gsl_vector_complex_float block(gsl_block_complex_float block);
public native int owner(); public native gsl_vector_complex_float owner(int owner);
}
public static class _gsl_vector_complex_float_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_complex_float_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_complex_float_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_complex_float_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_complex_float_view position(long position) {
return (_gsl_vector_complex_float_view)super.position(position);
}
public native @ByRef gsl_vector_complex_float vector(); public native _gsl_vector_complex_float_view vector(gsl_vector_complex_float vector);
}
public static class _gsl_vector_complex_float_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_complex_float_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_complex_float_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_complex_float_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_complex_float_const_view position(long position) {
return (_gsl_vector_complex_float_const_view)super.position(position);
}
public native @ByRef gsl_vector_complex_float vector(); public native _gsl_vector_complex_float_const_view vector(gsl_vector_complex_float vector);
}
/* Allocation */
public static native gsl_vector_complex_float gsl_vector_complex_float_alloc(@Cast("const size_t") long n);
public static native gsl_vector_complex_float gsl_vector_complex_float_calloc(@Cast("const size_t") long n);
public static native gsl_vector_complex_float gsl_vector_complex_float_alloc_from_block(gsl_block_complex_float b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native gsl_vector_complex_float gsl_vector_complex_float_alloc_from_vector(gsl_vector_complex_float v,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native void gsl_vector_complex_float_free(gsl_vector_complex_float v);
/* Views */
public static native @ByVal _gsl_vector_complex_float_view gsl_vector_complex_float_view_array(FloatPointer base,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_view gsl_vector_complex_float_view_array(FloatBuffer base,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_view gsl_vector_complex_float_view_array(float[] base,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_view gsl_vector_complex_float_view_array_with_stride(FloatPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_view gsl_vector_complex_float_view_array_with_stride(FloatBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_view gsl_vector_complex_float_view_array_with_stride(float[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_vector_complex_float_const_view_array(@Const FloatPointer base,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_vector_complex_float_const_view_array(@Const FloatBuffer base,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_vector_complex_float_const_view_array(@Const float[] base,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_vector_complex_float_const_view_array_with_stride(@Const FloatPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_vector_complex_float_const_view_array_with_stride(@Const FloatBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_vector_complex_float_const_view_array_with_stride(@Const float[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_view gsl_vector_complex_float_subvector(gsl_vector_complex_float base,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_view gsl_vector_complex_float_subvector_with_stride(gsl_vector_complex_float v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_vector_complex_float_const_subvector(@Const gsl_vector_complex_float base,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_vector_complex_float_const_subvector_with_stride(@Const gsl_vector_complex_float v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_view gsl_vector_complex_float_real(gsl_vector_complex_float v);
public static native @ByVal _gsl_vector_float_view gsl_vector_complex_float_imag(gsl_vector_complex_float v);
public static native @ByVal _gsl_vector_float_const_view gsl_vector_complex_float_const_real(@Const gsl_vector_complex_float v);
public static native @ByVal _gsl_vector_float_const_view gsl_vector_complex_float_const_imag(@Const gsl_vector_complex_float v);
/* Operations */
public static native void gsl_vector_complex_float_set_zero(gsl_vector_complex_float v);
public static native void gsl_vector_complex_float_set_all(gsl_vector_complex_float v,
@ByVal gsl_complex_float z);
public static native int gsl_vector_complex_float_set_basis(gsl_vector_complex_float v, @Cast("size_t") long i);
public static native int gsl_vector_complex_float_fread(@Cast("FILE*") Pointer stream,
gsl_vector_complex_float v);
public static native int gsl_vector_complex_float_fwrite(@Cast("FILE*") Pointer stream,
@Const gsl_vector_complex_float v);
public static native int gsl_vector_complex_float_fscanf(@Cast("FILE*") Pointer stream,
gsl_vector_complex_float v);
public static native int gsl_vector_complex_float_fprintf(@Cast("FILE*") Pointer stream,
@Const gsl_vector_complex_float v,
@Cast("const char*") BytePointer format);
public static native int gsl_vector_complex_float_fprintf(@Cast("FILE*") Pointer stream,
@Const gsl_vector_complex_float v,
String format);
public static native int gsl_vector_complex_float_memcpy(gsl_vector_complex_float dest, @Const gsl_vector_complex_float src);
public static native int gsl_vector_complex_float_reverse(gsl_vector_complex_float v);
public static native int gsl_vector_complex_float_swap(gsl_vector_complex_float v, gsl_vector_complex_float w);
public static native int gsl_vector_complex_float_swap_elements(gsl_vector_complex_float v, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_vector_complex_float_equal(@Const gsl_vector_complex_float u,
@Const gsl_vector_complex_float v);
public static native int gsl_vector_complex_float_isnull(@Const gsl_vector_complex_float v);
public static native int gsl_vector_complex_float_ispos(@Const gsl_vector_complex_float v);
public static native int gsl_vector_complex_float_isneg(@Const gsl_vector_complex_float v);
public static native int gsl_vector_complex_float_isnonneg(@Const gsl_vector_complex_float v);
public static native int gsl_vector_complex_float_add(gsl_vector_complex_float a, @Const gsl_vector_complex_float b);
public static native int gsl_vector_complex_float_sub(gsl_vector_complex_float a, @Const gsl_vector_complex_float b);
public static native int gsl_vector_complex_float_mul(gsl_vector_complex_float a, @Const gsl_vector_complex_float b);
public static native int gsl_vector_complex_float_div(gsl_vector_complex_float a, @Const gsl_vector_complex_float b);
public static native int gsl_vector_complex_float_scale(gsl_vector_complex_float a, @Const @ByVal gsl_complex_float x);
public static native int gsl_vector_complex_float_add_constant(gsl_vector_complex_float a, @Const @ByVal gsl_complex_float x);
/* */ public static native @ByVal gsl_complex_float gsl_vector_complex_float_get(@Const gsl_vector_complex_float v, @Cast("const size_t") long i);
/* */ public static native void gsl_vector_complex_float_set(gsl_vector_complex_float v, @Cast("const size_t") long i, @ByVal gsl_complex_float z);
/* */ public static native gsl_complex_float gsl_vector_complex_float_ptr(gsl_vector_complex_float v, @Cast("const size_t") long i);
/* */ public static native @Const gsl_complex_float gsl_vector_complex_float_const_ptr(@Const gsl_vector_complex_float v, @Cast("const size_t") long i);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_VECTOR_COMPLEX_FLOAT_H__ */
// Parsed from gsl/gsl_vector_double.h
/* vector/gsl_vector_double.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_VECTOR_DOUBLE_H__
// #define __GSL_VECTOR_DOUBLE_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_vector extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_vector() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_vector(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_vector(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_vector position(long position) {
return (gsl_vector)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_vector size(long size);
public native @Cast("size_t") long stride(); public native gsl_vector stride(long stride);
public native DoublePointer data(); public native gsl_vector data(DoublePointer data);
public native gsl_block block(); public native gsl_vector block(gsl_block block);
public native int owner(); public native gsl_vector owner(int owner);
}
public static class _gsl_vector_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_view position(long position) {
return (_gsl_vector_view)super.position(position);
}
public native @ByRef gsl_vector vector(); public native _gsl_vector_view vector(gsl_vector vector);
}
public static class _gsl_vector_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_const_view position(long position) {
return (_gsl_vector_const_view)super.position(position);
}
public native @ByRef gsl_vector vector(); public native _gsl_vector_const_view vector(gsl_vector vector);
}
/* Allocation */
public static native gsl_vector gsl_vector_alloc(@Cast("const size_t") long n);
public static native gsl_vector gsl_vector_calloc(@Cast("const size_t") long n);
public static native gsl_vector gsl_vector_alloc_from_block(gsl_block b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native gsl_vector gsl_vector_alloc_from_vector(gsl_vector v,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native void gsl_vector_free(gsl_vector v);
/* Views */
public static native @ByVal _gsl_vector_view gsl_vector_view_array(DoublePointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_view gsl_vector_view_array(DoubleBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_view gsl_vector_view_array(double[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_view gsl_vector_view_array_with_stride(DoublePointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_view gsl_vector_view_array_with_stride(DoubleBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_view gsl_vector_view_array_with_stride(double[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_const_view gsl_vector_const_view_array(@Const DoublePointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_const_view gsl_vector_const_view_array(@Const DoubleBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_const_view gsl_vector_const_view_array(@Const double[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_const_view gsl_vector_const_view_array_with_stride(@Const DoublePointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_const_view gsl_vector_const_view_array_with_stride(@Const DoubleBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_const_view gsl_vector_const_view_array_with_stride(@Const double[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_view gsl_vector_subvector(gsl_vector v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_view gsl_vector_subvector_with_stride(gsl_vector v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_const_view gsl_vector_const_subvector(@Const gsl_vector v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_const_view gsl_vector_const_subvector_with_stride(@Const gsl_vector v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
/* Operations */
public static native void gsl_vector_set_zero(gsl_vector v);
public static native void gsl_vector_set_all(gsl_vector v, double x);
public static native int gsl_vector_set_basis(gsl_vector v, @Cast("size_t") long i);
public static native int gsl_vector_fread(@Cast("FILE*") Pointer stream, gsl_vector v);
public static native int gsl_vector_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_vector v);
public static native int gsl_vector_fscanf(@Cast("FILE*") Pointer stream, gsl_vector v);
public static native int gsl_vector_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector v,
@Cast("const char*") BytePointer format);
public static native int gsl_vector_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector v,
String format);
public static native int gsl_vector_memcpy(gsl_vector dest, @Const gsl_vector src);
public static native int gsl_vector_reverse(gsl_vector v);
public static native int gsl_vector_swap(gsl_vector v, gsl_vector w);
public static native int gsl_vector_swap_elements(gsl_vector v, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native double gsl_vector_max(@Const gsl_vector v);
public static native double gsl_vector_min(@Const gsl_vector v);
public static native void gsl_vector_minmax(@Const gsl_vector v, DoublePointer min_out, DoublePointer max_out);
public static native void gsl_vector_minmax(@Const gsl_vector v, DoubleBuffer min_out, DoubleBuffer max_out);
public static native void gsl_vector_minmax(@Const gsl_vector v, double[] min_out, double[] max_out);
public static native @Cast("size_t") long gsl_vector_max_index(@Const gsl_vector v);
public static native @Cast("size_t") long gsl_vector_min_index(@Const gsl_vector v);
public static native void gsl_vector_minmax_index(@Const gsl_vector v, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer imax);
public static native int gsl_vector_add(gsl_vector a, @Const gsl_vector b);
public static native int gsl_vector_sub(gsl_vector a, @Const gsl_vector b);
public static native int gsl_vector_mul(gsl_vector a, @Const gsl_vector b);
public static native int gsl_vector_div(gsl_vector a, @Const gsl_vector b);
public static native int gsl_vector_scale(gsl_vector a, double x);
public static native int gsl_vector_add_constant(gsl_vector a, double x);
public static native int gsl_vector_equal(@Const gsl_vector u,
@Const gsl_vector v);
public static native int gsl_vector_isnull(@Const gsl_vector v);
public static native int gsl_vector_ispos(@Const gsl_vector v);
public static native int gsl_vector_isneg(@Const gsl_vector v);
public static native int gsl_vector_isnonneg(@Const gsl_vector v);
/* */ public static native double gsl_vector_get(@Const gsl_vector v, @Cast("const size_t") long i);
/* */ public static native void gsl_vector_set(gsl_vector v, @Cast("const size_t") long i, double x);
/* */ public static native DoublePointer gsl_vector_ptr(gsl_vector v, @Cast("const size_t") long i);
/* */ public static native @Const DoublePointer gsl_vector_const_ptr(@Const gsl_vector v, @Cast("const size_t") long i);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_VECTOR_DOUBLE_H__ */
// Parsed from gsl/gsl_vector_float.h
/* vector/gsl_vector_float.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_VECTOR_FLOAT_H__
// #define __GSL_VECTOR_FLOAT_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_vector_float extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_vector_float() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_vector_float(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_vector_float(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_vector_float position(long position) {
return (gsl_vector_float)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_vector_float size(long size);
public native @Cast("size_t") long stride(); public native gsl_vector_float stride(long stride);
public native FloatPointer data(); public native gsl_vector_float data(FloatPointer data);
public native gsl_block_float block(); public native gsl_vector_float block(gsl_block_float block);
public native int owner(); public native gsl_vector_float owner(int owner);
}
public static class _gsl_vector_float_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_float_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_float_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_float_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_float_view position(long position) {
return (_gsl_vector_float_view)super.position(position);
}
public native @ByRef gsl_vector_float vector(); public native _gsl_vector_float_view vector(gsl_vector_float vector);
}
public static class _gsl_vector_float_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_float_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_float_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_float_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_float_const_view position(long position) {
return (_gsl_vector_float_const_view)super.position(position);
}
public native @ByRef gsl_vector_float vector(); public native _gsl_vector_float_const_view vector(gsl_vector_float vector);
}
/* Allocation */
public static native gsl_vector_float gsl_vector_float_alloc(@Cast("const size_t") long n);
public static native gsl_vector_float gsl_vector_float_calloc(@Cast("const size_t") long n);
public static native gsl_vector_float gsl_vector_float_alloc_from_block(gsl_block_float b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native gsl_vector_float gsl_vector_float_alloc_from_vector(gsl_vector_float v,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native void gsl_vector_float_free(gsl_vector_float v);
/* Views */
public static native @ByVal _gsl_vector_float_view gsl_vector_float_view_array(FloatPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_view gsl_vector_float_view_array(FloatBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_view gsl_vector_float_view_array(float[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_view gsl_vector_float_view_array_with_stride(FloatPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_view gsl_vector_float_view_array_with_stride(FloatBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_view gsl_vector_float_view_array_with_stride(float[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_const_view gsl_vector_float_const_view_array(@Const FloatPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_const_view gsl_vector_float_const_view_array(@Const FloatBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_const_view gsl_vector_float_const_view_array(@Const float[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_const_view gsl_vector_float_const_view_array_with_stride(@Const FloatPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_const_view gsl_vector_float_const_view_array_with_stride(@Const FloatBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_const_view gsl_vector_float_const_view_array_with_stride(@Const float[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_view gsl_vector_float_subvector(gsl_vector_float v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_view gsl_vector_float_subvector_with_stride(gsl_vector_float v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_const_view gsl_vector_float_const_subvector(@Const gsl_vector_float v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_float_const_view gsl_vector_float_const_subvector_with_stride(@Const gsl_vector_float v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
/* Operations */
public static native void gsl_vector_float_set_zero(gsl_vector_float v);
public static native void gsl_vector_float_set_all(gsl_vector_float v, float x);
public static native int gsl_vector_float_set_basis(gsl_vector_float v, @Cast("size_t") long i);
public static native int gsl_vector_float_fread(@Cast("FILE*") Pointer stream, gsl_vector_float v);
public static native int gsl_vector_float_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_vector_float v);
public static native int gsl_vector_float_fscanf(@Cast("FILE*") Pointer stream, gsl_vector_float v);
public static native int gsl_vector_float_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_float v,
@Cast("const char*") BytePointer format);
public static native int gsl_vector_float_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_float v,
String format);
public static native int gsl_vector_float_memcpy(gsl_vector_float dest, @Const gsl_vector_float src);
public static native int gsl_vector_float_reverse(gsl_vector_float v);
public static native int gsl_vector_float_swap(gsl_vector_float v, gsl_vector_float w);
public static native int gsl_vector_float_swap_elements(gsl_vector_float v, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native float gsl_vector_float_max(@Const gsl_vector_float v);
public static native float gsl_vector_float_min(@Const gsl_vector_float v);
public static native void gsl_vector_float_minmax(@Const gsl_vector_float v, FloatPointer min_out, FloatPointer max_out);
public static native void gsl_vector_float_minmax(@Const gsl_vector_float v, FloatBuffer min_out, FloatBuffer max_out);
public static native void gsl_vector_float_minmax(@Const gsl_vector_float v, float[] min_out, float[] max_out);
public static native @Cast("size_t") long gsl_vector_float_max_index(@Const gsl_vector_float v);
public static native @Cast("size_t") long gsl_vector_float_min_index(@Const gsl_vector_float v);
public static native void gsl_vector_float_minmax_index(@Const gsl_vector_float v, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer imax);
public static native int gsl_vector_float_add(gsl_vector_float a, @Const gsl_vector_float b);
public static native int gsl_vector_float_sub(gsl_vector_float a, @Const gsl_vector_float b);
public static native int gsl_vector_float_mul(gsl_vector_float a, @Const gsl_vector_float b);
public static native int gsl_vector_float_div(gsl_vector_float a, @Const gsl_vector_float b);
public static native int gsl_vector_float_scale(gsl_vector_float a, double x);
public static native int gsl_vector_float_add_constant(gsl_vector_float a, double x);
public static native int gsl_vector_float_equal(@Const gsl_vector_float u,
@Const gsl_vector_float v);
public static native int gsl_vector_float_isnull(@Const gsl_vector_float v);
public static native int gsl_vector_float_ispos(@Const gsl_vector_float v);
public static native int gsl_vector_float_isneg(@Const gsl_vector_float v);
public static native int gsl_vector_float_isnonneg(@Const gsl_vector_float v);
/* */ public static native float gsl_vector_float_get(@Const gsl_vector_float v, @Cast("const size_t") long i);
/* */ public static native void gsl_vector_float_set(gsl_vector_float v, @Cast("const size_t") long i, float x);
/* */ public static native FloatPointer gsl_vector_float_ptr(gsl_vector_float v, @Cast("const size_t") long i);
/* */ public static native @Const FloatPointer gsl_vector_float_const_ptr(@Const gsl_vector_float v, @Cast("const size_t") long i);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_VECTOR_FLOAT_H__ */
// Parsed from gsl/gsl_vector_ulong.h
/* vector/gsl_vector_ulong.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_VECTOR_ULONG_H__
// #define __GSL_VECTOR_ULONG_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_vector_ulong extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_vector_ulong() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_vector_ulong(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_vector_ulong(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_vector_ulong position(long position) {
return (gsl_vector_ulong)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_vector_ulong size(long size);
public native @Cast("size_t") long stride(); public native gsl_vector_ulong stride(long stride);
public native @Cast("unsigned long*") CLongPointer data(); public native gsl_vector_ulong data(CLongPointer data);
public native gsl_block_ulong block(); public native gsl_vector_ulong block(gsl_block_ulong block);
public native int owner(); public native gsl_vector_ulong owner(int owner);
}
public static class _gsl_vector_ulong_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_ulong_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_ulong_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_ulong_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_ulong_view position(long position) {
return (_gsl_vector_ulong_view)super.position(position);
}
public native @ByRef gsl_vector_ulong vector(); public native _gsl_vector_ulong_view vector(gsl_vector_ulong vector);
}
public static class _gsl_vector_ulong_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_ulong_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_ulong_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_ulong_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_ulong_const_view position(long position) {
return (_gsl_vector_ulong_const_view)super.position(position);
}
public native @ByRef gsl_vector_ulong vector(); public native _gsl_vector_ulong_const_view vector(gsl_vector_ulong vector);
}
/* Allocation */
public static native gsl_vector_ulong gsl_vector_ulong_alloc(@Cast("const size_t") long n);
public static native gsl_vector_ulong gsl_vector_ulong_calloc(@Cast("const size_t") long n);
public static native gsl_vector_ulong gsl_vector_ulong_alloc_from_block(gsl_block_ulong b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native gsl_vector_ulong gsl_vector_ulong_alloc_from_vector(gsl_vector_ulong v,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native void gsl_vector_ulong_free(gsl_vector_ulong v);
/* Views */
public static native @ByVal _gsl_vector_ulong_view gsl_vector_ulong_view_array(@Cast("unsigned long*") CLongPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_ulong_view gsl_vector_ulong_view_array_with_stride(@Cast("unsigned long*") CLongPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ulong_const_view gsl_vector_ulong_const_view_array(@Cast("const unsigned long*") CLongPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_ulong_const_view gsl_vector_ulong_const_view_array_with_stride(@Cast("const unsigned long*") CLongPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ulong_view gsl_vector_ulong_subvector(gsl_vector_ulong v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ulong_view gsl_vector_ulong_subvector_with_stride(gsl_vector_ulong v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ulong_const_view gsl_vector_ulong_const_subvector(@Const gsl_vector_ulong v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ulong_const_view gsl_vector_ulong_const_subvector_with_stride(@Const gsl_vector_ulong v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
/* Operations */
public static native void gsl_vector_ulong_set_zero(gsl_vector_ulong v);
public static native void gsl_vector_ulong_set_all(gsl_vector_ulong v, @Cast("unsigned long") long x);
public static native int gsl_vector_ulong_set_basis(gsl_vector_ulong v, @Cast("size_t") long i);
public static native int gsl_vector_ulong_fread(@Cast("FILE*") Pointer stream, gsl_vector_ulong v);
public static native int gsl_vector_ulong_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_vector_ulong v);
public static native int gsl_vector_ulong_fscanf(@Cast("FILE*") Pointer stream, gsl_vector_ulong v);
public static native int gsl_vector_ulong_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_ulong v,
@Cast("const char*") BytePointer format);
public static native int gsl_vector_ulong_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_ulong v,
String format);
public static native int gsl_vector_ulong_memcpy(gsl_vector_ulong dest, @Const gsl_vector_ulong src);
public static native int gsl_vector_ulong_reverse(gsl_vector_ulong v);
public static native int gsl_vector_ulong_swap(gsl_vector_ulong v, gsl_vector_ulong w);
public static native int gsl_vector_ulong_swap_elements(gsl_vector_ulong v, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native @Cast("unsigned long") long gsl_vector_ulong_max(@Const gsl_vector_ulong v);
public static native @Cast("unsigned long") long gsl_vector_ulong_min(@Const gsl_vector_ulong v);
public static native void gsl_vector_ulong_minmax(@Const gsl_vector_ulong v, @Cast("unsigned long*") CLongPointer min_out, @Cast("unsigned long*") CLongPointer max_out);
public static native @Cast("size_t") long gsl_vector_ulong_max_index(@Const gsl_vector_ulong v);
public static native @Cast("size_t") long gsl_vector_ulong_min_index(@Const gsl_vector_ulong v);
public static native void gsl_vector_ulong_minmax_index(@Const gsl_vector_ulong v, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer imax);
public static native int gsl_vector_ulong_add(gsl_vector_ulong a, @Const gsl_vector_ulong b);
public static native int gsl_vector_ulong_sub(gsl_vector_ulong a, @Const gsl_vector_ulong b);
public static native int gsl_vector_ulong_mul(gsl_vector_ulong a, @Const gsl_vector_ulong b);
public static native int gsl_vector_ulong_div(gsl_vector_ulong a, @Const gsl_vector_ulong b);
public static native int gsl_vector_ulong_scale(gsl_vector_ulong a, double x);
public static native int gsl_vector_ulong_add_constant(gsl_vector_ulong a, double x);
public static native int gsl_vector_ulong_equal(@Const gsl_vector_ulong u,
@Const gsl_vector_ulong v);
public static native int gsl_vector_ulong_isnull(@Const gsl_vector_ulong v);
public static native int gsl_vector_ulong_ispos(@Const gsl_vector_ulong v);
public static native int gsl_vector_ulong_isneg(@Const gsl_vector_ulong v);
public static native int gsl_vector_ulong_isnonneg(@Const gsl_vector_ulong v);
/* */ public static native @Cast("unsigned long") long gsl_vector_ulong_get(@Const gsl_vector_ulong v, @Cast("const size_t") long i);
/* */ public static native void gsl_vector_ulong_set(gsl_vector_ulong v, @Cast("const size_t") long i, @Cast("unsigned long") long x);
/* */ public static native @Cast("unsigned long*") CLongPointer gsl_vector_ulong_ptr(gsl_vector_ulong v, @Cast("const size_t") long i);
/* */ public static native @Cast("const unsigned long*") CLongPointer gsl_vector_ulong_const_ptr(@Const gsl_vector_ulong v, @Cast("const size_t") long i);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_VECTOR_ULONG_H__ */
// Parsed from gsl/gsl_vector_long.h
/* vector/gsl_vector_long.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_VECTOR_LONG_H__
// #define __GSL_VECTOR_LONG_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_vector_long extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_vector_long() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_vector_long(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_vector_long(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_vector_long position(long position) {
return (gsl_vector_long)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_vector_long size(long size);
public native @Cast("size_t") long stride(); public native gsl_vector_long stride(long stride);
public native CLongPointer data(); public native gsl_vector_long data(CLongPointer data);
public native gsl_block_long block(); public native gsl_vector_long block(gsl_block_long block);
public native int owner(); public native gsl_vector_long owner(int owner);
}
public static class _gsl_vector_long_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_long_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_long_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_long_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_long_view position(long position) {
return (_gsl_vector_long_view)super.position(position);
}
public native @ByRef gsl_vector_long vector(); public native _gsl_vector_long_view vector(gsl_vector_long vector);
}
public static class _gsl_vector_long_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_long_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_long_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_long_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_long_const_view position(long position) {
return (_gsl_vector_long_const_view)super.position(position);
}
public native @ByRef gsl_vector_long vector(); public native _gsl_vector_long_const_view vector(gsl_vector_long vector);
}
/* Allocation */
public static native gsl_vector_long gsl_vector_long_alloc(@Cast("const size_t") long n);
public static native gsl_vector_long gsl_vector_long_calloc(@Cast("const size_t") long n);
public static native gsl_vector_long gsl_vector_long_alloc_from_block(gsl_block_long b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native gsl_vector_long gsl_vector_long_alloc_from_vector(gsl_vector_long v,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native void gsl_vector_long_free(gsl_vector_long v);
/* Views */
public static native @ByVal _gsl_vector_long_view gsl_vector_long_view_array(CLongPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_long_view gsl_vector_long_view_array_with_stride(CLongPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_long_const_view gsl_vector_long_const_view_array(@Const CLongPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_long_const_view gsl_vector_long_const_view_array_with_stride(@Const CLongPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_long_view gsl_vector_long_subvector(gsl_vector_long v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_long_view gsl_vector_long_subvector_with_stride(gsl_vector_long v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_long_const_view gsl_vector_long_const_subvector(@Const gsl_vector_long v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_long_const_view gsl_vector_long_const_subvector_with_stride(@Const gsl_vector_long v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
/* Operations */
public static native void gsl_vector_long_set_zero(gsl_vector_long v);
public static native void gsl_vector_long_set_all(gsl_vector_long v, long x);
public static native int gsl_vector_long_set_basis(gsl_vector_long v, @Cast("size_t") long i);
public static native int gsl_vector_long_fread(@Cast("FILE*") Pointer stream, gsl_vector_long v);
public static native int gsl_vector_long_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_vector_long v);
public static native int gsl_vector_long_fscanf(@Cast("FILE*") Pointer stream, gsl_vector_long v);
public static native int gsl_vector_long_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_long v,
@Cast("const char*") BytePointer format);
public static native int gsl_vector_long_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_long v,
String format);
public static native int gsl_vector_long_memcpy(gsl_vector_long dest, @Const gsl_vector_long src);
public static native int gsl_vector_long_reverse(gsl_vector_long v);
public static native int gsl_vector_long_swap(gsl_vector_long v, gsl_vector_long w);
public static native int gsl_vector_long_swap_elements(gsl_vector_long v, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native long gsl_vector_long_max(@Const gsl_vector_long v);
public static native long gsl_vector_long_min(@Const gsl_vector_long v);
public static native void gsl_vector_long_minmax(@Const gsl_vector_long v, CLongPointer min_out, CLongPointer max_out);
public static native @Cast("size_t") long gsl_vector_long_max_index(@Const gsl_vector_long v);
public static native @Cast("size_t") long gsl_vector_long_min_index(@Const gsl_vector_long v);
public static native void gsl_vector_long_minmax_index(@Const gsl_vector_long v, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer imax);
public static native int gsl_vector_long_add(gsl_vector_long a, @Const gsl_vector_long b);
public static native int gsl_vector_long_sub(gsl_vector_long a, @Const gsl_vector_long b);
public static native int gsl_vector_long_mul(gsl_vector_long a, @Const gsl_vector_long b);
public static native int gsl_vector_long_div(gsl_vector_long a, @Const gsl_vector_long b);
public static native int gsl_vector_long_scale(gsl_vector_long a, double x);
public static native int gsl_vector_long_add_constant(gsl_vector_long a, double x);
public static native int gsl_vector_long_equal(@Const gsl_vector_long u,
@Const gsl_vector_long v);
public static native int gsl_vector_long_isnull(@Const gsl_vector_long v);
public static native int gsl_vector_long_ispos(@Const gsl_vector_long v);
public static native int gsl_vector_long_isneg(@Const gsl_vector_long v);
public static native int gsl_vector_long_isnonneg(@Const gsl_vector_long v);
/* */ public static native long gsl_vector_long_get(@Const gsl_vector_long v, @Cast("const size_t") long i);
/* */ public static native void gsl_vector_long_set(gsl_vector_long v, @Cast("const size_t") long i, long x);
/* */ public static native CLongPointer gsl_vector_long_ptr(gsl_vector_long v, @Cast("const size_t") long i);
/* */ public static native @Const CLongPointer gsl_vector_long_const_ptr(@Const gsl_vector_long v, @Cast("const size_t") long i);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_VECTOR_LONG_H__ */
// Parsed from gsl/gsl_vector_uint.h
/* vector/gsl_vector_uint.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_VECTOR_UINT_H__
// #define __GSL_VECTOR_UINT_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_vector_uint extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_vector_uint() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_vector_uint(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_vector_uint(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_vector_uint position(long position) {
return (gsl_vector_uint)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_vector_uint size(long size);
public native @Cast("size_t") long stride(); public native gsl_vector_uint stride(long stride);
public native @Cast("unsigned int*") IntPointer data(); public native gsl_vector_uint data(IntPointer data);
public native gsl_block_uint block(); public native gsl_vector_uint block(gsl_block_uint block);
public native int owner(); public native gsl_vector_uint owner(int owner);
}
public static class _gsl_vector_uint_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_uint_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_uint_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_uint_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_uint_view position(long position) {
return (_gsl_vector_uint_view)super.position(position);
}
public native @ByRef gsl_vector_uint vector(); public native _gsl_vector_uint_view vector(gsl_vector_uint vector);
}
public static class _gsl_vector_uint_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_uint_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_uint_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_uint_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_uint_const_view position(long position) {
return (_gsl_vector_uint_const_view)super.position(position);
}
public native @ByRef gsl_vector_uint vector(); public native _gsl_vector_uint_const_view vector(gsl_vector_uint vector);
}
/* Allocation */
public static native gsl_vector_uint gsl_vector_uint_alloc(@Cast("const size_t") long n);
public static native gsl_vector_uint gsl_vector_uint_calloc(@Cast("const size_t") long n);
public static native gsl_vector_uint gsl_vector_uint_alloc_from_block(gsl_block_uint b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native gsl_vector_uint gsl_vector_uint_alloc_from_vector(gsl_vector_uint v,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native void gsl_vector_uint_free(gsl_vector_uint v);
/* Views */
public static native @ByVal _gsl_vector_uint_view gsl_vector_uint_view_array(@Cast("unsigned int*") IntPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_view gsl_vector_uint_view_array(@Cast("unsigned int*") IntBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_view gsl_vector_uint_view_array(@Cast("unsigned int*") int[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_view gsl_vector_uint_view_array_with_stride(@Cast("unsigned int*") IntPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_view gsl_vector_uint_view_array_with_stride(@Cast("unsigned int*") IntBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_view gsl_vector_uint_view_array_with_stride(@Cast("unsigned int*") int[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_const_view gsl_vector_uint_const_view_array(@Cast("const unsigned int*") IntPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_const_view gsl_vector_uint_const_view_array(@Cast("const unsigned int*") IntBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_const_view gsl_vector_uint_const_view_array(@Cast("const unsigned int*") int[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_const_view gsl_vector_uint_const_view_array_with_stride(@Cast("const unsigned int*") IntPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_const_view gsl_vector_uint_const_view_array_with_stride(@Cast("const unsigned int*") IntBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_const_view gsl_vector_uint_const_view_array_with_stride(@Cast("const unsigned int*") int[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_view gsl_vector_uint_subvector(gsl_vector_uint v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_view gsl_vector_uint_subvector_with_stride(gsl_vector_uint v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_const_view gsl_vector_uint_const_subvector(@Const gsl_vector_uint v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uint_const_view gsl_vector_uint_const_subvector_with_stride(@Const gsl_vector_uint v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
/* Operations */
public static native void gsl_vector_uint_set_zero(gsl_vector_uint v);
public static native void gsl_vector_uint_set_all(gsl_vector_uint v, @Cast("unsigned int") int x);
public static native int gsl_vector_uint_set_basis(gsl_vector_uint v, @Cast("size_t") long i);
public static native int gsl_vector_uint_fread(@Cast("FILE*") Pointer stream, gsl_vector_uint v);
public static native int gsl_vector_uint_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_vector_uint v);
public static native int gsl_vector_uint_fscanf(@Cast("FILE*") Pointer stream, gsl_vector_uint v);
public static native int gsl_vector_uint_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_uint v,
@Cast("const char*") BytePointer format);
public static native int gsl_vector_uint_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_uint v,
String format);
public static native int gsl_vector_uint_memcpy(gsl_vector_uint dest, @Const gsl_vector_uint src);
public static native int gsl_vector_uint_reverse(gsl_vector_uint v);
public static native int gsl_vector_uint_swap(gsl_vector_uint v, gsl_vector_uint w);
public static native int gsl_vector_uint_swap_elements(gsl_vector_uint v, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native @Cast("unsigned int") int gsl_vector_uint_max(@Const gsl_vector_uint v);
public static native @Cast("unsigned int") int gsl_vector_uint_min(@Const gsl_vector_uint v);
public static native void gsl_vector_uint_minmax(@Const gsl_vector_uint v, @Cast("unsigned int*") IntPointer min_out, @Cast("unsigned int*") IntPointer max_out);
public static native void gsl_vector_uint_minmax(@Const gsl_vector_uint v, @Cast("unsigned int*") IntBuffer min_out, @Cast("unsigned int*") IntBuffer max_out);
public static native void gsl_vector_uint_minmax(@Const gsl_vector_uint v, @Cast("unsigned int*") int[] min_out, @Cast("unsigned int*") int[] max_out);
public static native @Cast("size_t") long gsl_vector_uint_max_index(@Const gsl_vector_uint v);
public static native @Cast("size_t") long gsl_vector_uint_min_index(@Const gsl_vector_uint v);
public static native void gsl_vector_uint_minmax_index(@Const gsl_vector_uint v, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer imax);
public static native int gsl_vector_uint_add(gsl_vector_uint a, @Const gsl_vector_uint b);
public static native int gsl_vector_uint_sub(gsl_vector_uint a, @Const gsl_vector_uint b);
public static native int gsl_vector_uint_mul(gsl_vector_uint a, @Const gsl_vector_uint b);
public static native int gsl_vector_uint_div(gsl_vector_uint a, @Const gsl_vector_uint b);
public static native int gsl_vector_uint_scale(gsl_vector_uint a, double x);
public static native int gsl_vector_uint_add_constant(gsl_vector_uint a, double x);
public static native int gsl_vector_uint_equal(@Const gsl_vector_uint u,
@Const gsl_vector_uint v);
public static native int gsl_vector_uint_isnull(@Const gsl_vector_uint v);
public static native int gsl_vector_uint_ispos(@Const gsl_vector_uint v);
public static native int gsl_vector_uint_isneg(@Const gsl_vector_uint v);
public static native int gsl_vector_uint_isnonneg(@Const gsl_vector_uint v);
/* */ public static native @Cast("unsigned int") int gsl_vector_uint_get(@Const gsl_vector_uint v, @Cast("const size_t") long i);
/* */ public static native void gsl_vector_uint_set(gsl_vector_uint v, @Cast("const size_t") long i, @Cast("unsigned int") int x);
/* */ public static native @Cast("unsigned int*") IntPointer gsl_vector_uint_ptr(gsl_vector_uint v, @Cast("const size_t") long i);
/* */ public static native @Cast("const unsigned int*") IntPointer gsl_vector_uint_const_ptr(@Const gsl_vector_uint v, @Cast("const size_t") long i);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_VECTOR_UINT_H__ */
// Parsed from gsl/gsl_vector_int.h
/* vector/gsl_vector_int.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_VECTOR_INT_H__
// #define __GSL_VECTOR_INT_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_vector_int extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_vector_int() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_vector_int(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_vector_int(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_vector_int position(long position) {
return (gsl_vector_int)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_vector_int size(long size);
public native @Cast("size_t") long stride(); public native gsl_vector_int stride(long stride);
public native IntPointer data(); public native gsl_vector_int data(IntPointer data);
public native gsl_block_int block(); public native gsl_vector_int block(gsl_block_int block);
public native int owner(); public native gsl_vector_int owner(int owner);
}
public static class _gsl_vector_int_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_int_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_int_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_int_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_int_view position(long position) {
return (_gsl_vector_int_view)super.position(position);
}
public native @ByRef gsl_vector_int vector(); public native _gsl_vector_int_view vector(gsl_vector_int vector);
}
public static class _gsl_vector_int_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_int_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_int_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_int_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_int_const_view position(long position) {
return (_gsl_vector_int_const_view)super.position(position);
}
public native @ByRef gsl_vector_int vector(); public native _gsl_vector_int_const_view vector(gsl_vector_int vector);
}
/* Allocation */
public static native gsl_vector_int gsl_vector_int_alloc(@Cast("const size_t") long n);
public static native gsl_vector_int gsl_vector_int_calloc(@Cast("const size_t") long n);
public static native gsl_vector_int gsl_vector_int_alloc_from_block(gsl_block_int b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native gsl_vector_int gsl_vector_int_alloc_from_vector(gsl_vector_int v,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native void gsl_vector_int_free(gsl_vector_int v);
/* Views */
public static native @ByVal _gsl_vector_int_view gsl_vector_int_view_array(IntPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_view gsl_vector_int_view_array(IntBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_view gsl_vector_int_view_array(int[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_view gsl_vector_int_view_array_with_stride(IntPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_view gsl_vector_int_view_array_with_stride(IntBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_view gsl_vector_int_view_array_with_stride(int[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_const_view gsl_vector_int_const_view_array(@Const IntPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_const_view gsl_vector_int_const_view_array(@Const IntBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_const_view gsl_vector_int_const_view_array(@Const int[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_const_view gsl_vector_int_const_view_array_with_stride(@Const IntPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_const_view gsl_vector_int_const_view_array_with_stride(@Const IntBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_const_view gsl_vector_int_const_view_array_with_stride(@Const int[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_view gsl_vector_int_subvector(gsl_vector_int v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_view gsl_vector_int_subvector_with_stride(gsl_vector_int v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_const_view gsl_vector_int_const_subvector(@Const gsl_vector_int v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_int_const_view gsl_vector_int_const_subvector_with_stride(@Const gsl_vector_int v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
/* Operations */
public static native void gsl_vector_int_set_zero(gsl_vector_int v);
public static native void gsl_vector_int_set_all(gsl_vector_int v, int x);
public static native int gsl_vector_int_set_basis(gsl_vector_int v, @Cast("size_t") long i);
public static native int gsl_vector_int_fread(@Cast("FILE*") Pointer stream, gsl_vector_int v);
public static native int gsl_vector_int_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_vector_int v);
public static native int gsl_vector_int_fscanf(@Cast("FILE*") Pointer stream, gsl_vector_int v);
public static native int gsl_vector_int_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_int v,
@Cast("const char*") BytePointer format);
public static native int gsl_vector_int_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_int v,
String format);
public static native int gsl_vector_int_memcpy(gsl_vector_int dest, @Const gsl_vector_int src);
public static native int gsl_vector_int_reverse(gsl_vector_int v);
public static native int gsl_vector_int_swap(gsl_vector_int v, gsl_vector_int w);
public static native int gsl_vector_int_swap_elements(gsl_vector_int v, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_vector_int_max(@Const gsl_vector_int v);
public static native int gsl_vector_int_min(@Const gsl_vector_int v);
public static native void gsl_vector_int_minmax(@Const gsl_vector_int v, IntPointer min_out, IntPointer max_out);
public static native void gsl_vector_int_minmax(@Const gsl_vector_int v, IntBuffer min_out, IntBuffer max_out);
public static native void gsl_vector_int_minmax(@Const gsl_vector_int v, int[] min_out, int[] max_out);
public static native @Cast("size_t") long gsl_vector_int_max_index(@Const gsl_vector_int v);
public static native @Cast("size_t") long gsl_vector_int_min_index(@Const gsl_vector_int v);
public static native void gsl_vector_int_minmax_index(@Const gsl_vector_int v, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer imax);
public static native int gsl_vector_int_add(gsl_vector_int a, @Const gsl_vector_int b);
public static native int gsl_vector_int_sub(gsl_vector_int a, @Const gsl_vector_int b);
public static native int gsl_vector_int_mul(gsl_vector_int a, @Const gsl_vector_int b);
public static native int gsl_vector_int_div(gsl_vector_int a, @Const gsl_vector_int b);
public static native int gsl_vector_int_scale(gsl_vector_int a, double x);
public static native int gsl_vector_int_add_constant(gsl_vector_int a, double x);
public static native int gsl_vector_int_equal(@Const gsl_vector_int u,
@Const gsl_vector_int v);
public static native int gsl_vector_int_isnull(@Const gsl_vector_int v);
public static native int gsl_vector_int_ispos(@Const gsl_vector_int v);
public static native int gsl_vector_int_isneg(@Const gsl_vector_int v);
public static native int gsl_vector_int_isnonneg(@Const gsl_vector_int v);
/* */ public static native int gsl_vector_int_get(@Const gsl_vector_int v, @Cast("const size_t") long i);
/* */ public static native void gsl_vector_int_set(gsl_vector_int v, @Cast("const size_t") long i, int x);
/* */ public static native IntPointer gsl_vector_int_ptr(gsl_vector_int v, @Cast("const size_t") long i);
/* */ public static native @Const IntPointer gsl_vector_int_const_ptr(@Const gsl_vector_int v, @Cast("const size_t") long i);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_VECTOR_INT_H__ */
// Parsed from gsl/gsl_vector_ushort.h
/* vector/gsl_vector_ushort.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_VECTOR_USHORT_H__
// #define __GSL_VECTOR_USHORT_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_vector_ushort extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_vector_ushort() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_vector_ushort(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_vector_ushort(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_vector_ushort position(long position) {
return (gsl_vector_ushort)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_vector_ushort size(long size);
public native @Cast("size_t") long stride(); public native gsl_vector_ushort stride(long stride);
public native @Cast("unsigned short*") ShortPointer data(); public native gsl_vector_ushort data(ShortPointer data);
public native gsl_block_ushort block(); public native gsl_vector_ushort block(gsl_block_ushort block);
public native int owner(); public native gsl_vector_ushort owner(int owner);
}
public static class _gsl_vector_ushort_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_ushort_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_ushort_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_ushort_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_ushort_view position(long position) {
return (_gsl_vector_ushort_view)super.position(position);
}
public native @ByRef gsl_vector_ushort vector(); public native _gsl_vector_ushort_view vector(gsl_vector_ushort vector);
}
public static class _gsl_vector_ushort_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_ushort_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_ushort_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_ushort_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_ushort_const_view position(long position) {
return (_gsl_vector_ushort_const_view)super.position(position);
}
public native @ByRef gsl_vector_ushort vector(); public native _gsl_vector_ushort_const_view vector(gsl_vector_ushort vector);
}
/* Allocation */
public static native gsl_vector_ushort gsl_vector_ushort_alloc(@Cast("const size_t") long n);
public static native gsl_vector_ushort gsl_vector_ushort_calloc(@Cast("const size_t") long n);
public static native gsl_vector_ushort gsl_vector_ushort_alloc_from_block(gsl_block_ushort b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native gsl_vector_ushort gsl_vector_ushort_alloc_from_vector(gsl_vector_ushort v,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native void gsl_vector_ushort_free(gsl_vector_ushort v);
/* Views */
public static native @ByVal _gsl_vector_ushort_view gsl_vector_ushort_view_array(@Cast("unsigned short*") ShortPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_view gsl_vector_ushort_view_array(@Cast("unsigned short*") ShortBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_view gsl_vector_ushort_view_array(@Cast("unsigned short*") short[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_view gsl_vector_ushort_view_array_with_stride(@Cast("unsigned short*") ShortPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_view gsl_vector_ushort_view_array_with_stride(@Cast("unsigned short*") ShortBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_view gsl_vector_ushort_view_array_with_stride(@Cast("unsigned short*") short[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_const_view gsl_vector_ushort_const_view_array(@Cast("const unsigned short*") ShortPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_const_view gsl_vector_ushort_const_view_array(@Cast("const unsigned short*") ShortBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_const_view gsl_vector_ushort_const_view_array(@Cast("const unsigned short*") short[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_const_view gsl_vector_ushort_const_view_array_with_stride(@Cast("const unsigned short*") ShortPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_const_view gsl_vector_ushort_const_view_array_with_stride(@Cast("const unsigned short*") ShortBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_const_view gsl_vector_ushort_const_view_array_with_stride(@Cast("const unsigned short*") short[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_view gsl_vector_ushort_subvector(gsl_vector_ushort v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_view gsl_vector_ushort_subvector_with_stride(gsl_vector_ushort v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_const_view gsl_vector_ushort_const_subvector(@Const gsl_vector_ushort v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_ushort_const_view gsl_vector_ushort_const_subvector_with_stride(@Const gsl_vector_ushort v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
/* Operations */
public static native void gsl_vector_ushort_set_zero(gsl_vector_ushort v);
public static native void gsl_vector_ushort_set_all(gsl_vector_ushort v, @Cast("unsigned short") short x);
public static native int gsl_vector_ushort_set_basis(gsl_vector_ushort v, @Cast("size_t") long i);
public static native int gsl_vector_ushort_fread(@Cast("FILE*") Pointer stream, gsl_vector_ushort v);
public static native int gsl_vector_ushort_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_vector_ushort v);
public static native int gsl_vector_ushort_fscanf(@Cast("FILE*") Pointer stream, gsl_vector_ushort v);
public static native int gsl_vector_ushort_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_ushort v,
@Cast("const char*") BytePointer format);
public static native int gsl_vector_ushort_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_ushort v,
String format);
public static native int gsl_vector_ushort_memcpy(gsl_vector_ushort dest, @Const gsl_vector_ushort src);
public static native int gsl_vector_ushort_reverse(gsl_vector_ushort v);
public static native int gsl_vector_ushort_swap(gsl_vector_ushort v, gsl_vector_ushort w);
public static native int gsl_vector_ushort_swap_elements(gsl_vector_ushort v, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native @Cast("unsigned short") short gsl_vector_ushort_max(@Const gsl_vector_ushort v);
public static native @Cast("unsigned short") short gsl_vector_ushort_min(@Const gsl_vector_ushort v);
public static native void gsl_vector_ushort_minmax(@Const gsl_vector_ushort v, @Cast("unsigned short*") ShortPointer min_out, @Cast("unsigned short*") ShortPointer max_out);
public static native void gsl_vector_ushort_minmax(@Const gsl_vector_ushort v, @Cast("unsigned short*") ShortBuffer min_out, @Cast("unsigned short*") ShortBuffer max_out);
public static native void gsl_vector_ushort_minmax(@Const gsl_vector_ushort v, @Cast("unsigned short*") short[] min_out, @Cast("unsigned short*") short[] max_out);
public static native @Cast("size_t") long gsl_vector_ushort_max_index(@Const gsl_vector_ushort v);
public static native @Cast("size_t") long gsl_vector_ushort_min_index(@Const gsl_vector_ushort v);
public static native void gsl_vector_ushort_minmax_index(@Const gsl_vector_ushort v, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer imax);
public static native int gsl_vector_ushort_add(gsl_vector_ushort a, @Const gsl_vector_ushort b);
public static native int gsl_vector_ushort_sub(gsl_vector_ushort a, @Const gsl_vector_ushort b);
public static native int gsl_vector_ushort_mul(gsl_vector_ushort a, @Const gsl_vector_ushort b);
public static native int gsl_vector_ushort_div(gsl_vector_ushort a, @Const gsl_vector_ushort b);
public static native int gsl_vector_ushort_scale(gsl_vector_ushort a, double x);
public static native int gsl_vector_ushort_add_constant(gsl_vector_ushort a, double x);
public static native int gsl_vector_ushort_equal(@Const gsl_vector_ushort u,
@Const gsl_vector_ushort v);
public static native int gsl_vector_ushort_isnull(@Const gsl_vector_ushort v);
public static native int gsl_vector_ushort_ispos(@Const gsl_vector_ushort v);
public static native int gsl_vector_ushort_isneg(@Const gsl_vector_ushort v);
public static native int gsl_vector_ushort_isnonneg(@Const gsl_vector_ushort v);
/* */ public static native @Cast("unsigned short") short gsl_vector_ushort_get(@Const gsl_vector_ushort v, @Cast("const size_t") long i);
/* */ public static native void gsl_vector_ushort_set(gsl_vector_ushort v, @Cast("const size_t") long i, @Cast("unsigned short") short x);
/* */ public static native @Cast("unsigned short*") ShortPointer gsl_vector_ushort_ptr(gsl_vector_ushort v, @Cast("const size_t") long i);
/* */ public static native @Cast("const unsigned short*") ShortPointer gsl_vector_ushort_const_ptr(@Const gsl_vector_ushort v, @Cast("const size_t") long i);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_VECTOR_USHORT_H__ */
// Parsed from gsl/gsl_vector_short.h
/* vector/gsl_vector_short.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_VECTOR_SHORT_H__
// #define __GSL_VECTOR_SHORT_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_vector_short extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_vector_short() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_vector_short(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_vector_short(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_vector_short position(long position) {
return (gsl_vector_short)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_vector_short size(long size);
public native @Cast("size_t") long stride(); public native gsl_vector_short stride(long stride);
public native ShortPointer data(); public native gsl_vector_short data(ShortPointer data);
public native gsl_block_short block(); public native gsl_vector_short block(gsl_block_short block);
public native int owner(); public native gsl_vector_short owner(int owner);
}
public static class _gsl_vector_short_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_short_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_short_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_short_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_short_view position(long position) {
return (_gsl_vector_short_view)super.position(position);
}
public native @ByRef gsl_vector_short vector(); public native _gsl_vector_short_view vector(gsl_vector_short vector);
}
public static class _gsl_vector_short_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_short_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_short_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_short_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_short_const_view position(long position) {
return (_gsl_vector_short_const_view)super.position(position);
}
public native @ByRef gsl_vector_short vector(); public native _gsl_vector_short_const_view vector(gsl_vector_short vector);
}
/* Allocation */
public static native gsl_vector_short gsl_vector_short_alloc(@Cast("const size_t") long n);
public static native gsl_vector_short gsl_vector_short_calloc(@Cast("const size_t") long n);
public static native gsl_vector_short gsl_vector_short_alloc_from_block(gsl_block_short b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native gsl_vector_short gsl_vector_short_alloc_from_vector(gsl_vector_short v,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native void gsl_vector_short_free(gsl_vector_short v);
/* Views */
public static native @ByVal _gsl_vector_short_view gsl_vector_short_view_array(ShortPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_view gsl_vector_short_view_array(ShortBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_view gsl_vector_short_view_array(short[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_view gsl_vector_short_view_array_with_stride(ShortPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_view gsl_vector_short_view_array_with_stride(ShortBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_view gsl_vector_short_view_array_with_stride(short[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_const_view gsl_vector_short_const_view_array(@Const ShortPointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_const_view gsl_vector_short_const_view_array(@Const ShortBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_const_view gsl_vector_short_const_view_array(@Const short[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_const_view gsl_vector_short_const_view_array_with_stride(@Const ShortPointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_const_view gsl_vector_short_const_view_array_with_stride(@Const ShortBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_const_view gsl_vector_short_const_view_array_with_stride(@Const short[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_view gsl_vector_short_subvector(gsl_vector_short v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_view gsl_vector_short_subvector_with_stride(gsl_vector_short v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_const_view gsl_vector_short_const_subvector(@Const gsl_vector_short v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_short_const_view gsl_vector_short_const_subvector_with_stride(@Const gsl_vector_short v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
/* Operations */
public static native void gsl_vector_short_set_zero(gsl_vector_short v);
public static native void gsl_vector_short_set_all(gsl_vector_short v, short x);
public static native int gsl_vector_short_set_basis(gsl_vector_short v, @Cast("size_t") long i);
public static native int gsl_vector_short_fread(@Cast("FILE*") Pointer stream, gsl_vector_short v);
public static native int gsl_vector_short_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_vector_short v);
public static native int gsl_vector_short_fscanf(@Cast("FILE*") Pointer stream, gsl_vector_short v);
public static native int gsl_vector_short_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_short v,
@Cast("const char*") BytePointer format);
public static native int gsl_vector_short_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_short v,
String format);
public static native int gsl_vector_short_memcpy(gsl_vector_short dest, @Const gsl_vector_short src);
public static native int gsl_vector_short_reverse(gsl_vector_short v);
public static native int gsl_vector_short_swap(gsl_vector_short v, gsl_vector_short w);
public static native int gsl_vector_short_swap_elements(gsl_vector_short v, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native short gsl_vector_short_max(@Const gsl_vector_short v);
public static native short gsl_vector_short_min(@Const gsl_vector_short v);
public static native void gsl_vector_short_minmax(@Const gsl_vector_short v, ShortPointer min_out, ShortPointer max_out);
public static native void gsl_vector_short_minmax(@Const gsl_vector_short v, ShortBuffer min_out, ShortBuffer max_out);
public static native void gsl_vector_short_minmax(@Const gsl_vector_short v, short[] min_out, short[] max_out);
public static native @Cast("size_t") long gsl_vector_short_max_index(@Const gsl_vector_short v);
public static native @Cast("size_t") long gsl_vector_short_min_index(@Const gsl_vector_short v);
public static native void gsl_vector_short_minmax_index(@Const gsl_vector_short v, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer imax);
public static native int gsl_vector_short_add(gsl_vector_short a, @Const gsl_vector_short b);
public static native int gsl_vector_short_sub(gsl_vector_short a, @Const gsl_vector_short b);
public static native int gsl_vector_short_mul(gsl_vector_short a, @Const gsl_vector_short b);
public static native int gsl_vector_short_div(gsl_vector_short a, @Const gsl_vector_short b);
public static native int gsl_vector_short_scale(gsl_vector_short a, double x);
public static native int gsl_vector_short_add_constant(gsl_vector_short a, double x);
public static native int gsl_vector_short_equal(@Const gsl_vector_short u,
@Const gsl_vector_short v);
public static native int gsl_vector_short_isnull(@Const gsl_vector_short v);
public static native int gsl_vector_short_ispos(@Const gsl_vector_short v);
public static native int gsl_vector_short_isneg(@Const gsl_vector_short v);
public static native int gsl_vector_short_isnonneg(@Const gsl_vector_short v);
/* */ public static native short gsl_vector_short_get(@Const gsl_vector_short v, @Cast("const size_t") long i);
/* */ public static native void gsl_vector_short_set(gsl_vector_short v, @Cast("const size_t") long i, short x);
/* */ public static native ShortPointer gsl_vector_short_ptr(gsl_vector_short v, @Cast("const size_t") long i);
/* */ public static native @Const ShortPointer gsl_vector_short_const_ptr(@Const gsl_vector_short v, @Cast("const size_t") long i);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_VECTOR_SHORT_H__ */
// Parsed from gsl/gsl_vector_uchar.h
/* vector/gsl_vector_uchar.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_VECTOR_UCHAR_H__
// #define __GSL_VECTOR_UCHAR_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_vector_uchar extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_vector_uchar() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_vector_uchar(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_vector_uchar(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_vector_uchar position(long position) {
return (gsl_vector_uchar)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_vector_uchar size(long size);
public native @Cast("size_t") long stride(); public native gsl_vector_uchar stride(long stride);
public native @Cast("unsigned char*") BytePointer data(); public native gsl_vector_uchar data(BytePointer data);
public native gsl_block_uchar block(); public native gsl_vector_uchar block(gsl_block_uchar block);
public native int owner(); public native gsl_vector_uchar owner(int owner);
}
public static class _gsl_vector_uchar_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_uchar_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_uchar_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_uchar_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_uchar_view position(long position) {
return (_gsl_vector_uchar_view)super.position(position);
}
public native @ByRef gsl_vector_uchar vector(); public native _gsl_vector_uchar_view vector(gsl_vector_uchar vector);
}
public static class _gsl_vector_uchar_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_uchar_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_uchar_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_uchar_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_uchar_const_view position(long position) {
return (_gsl_vector_uchar_const_view)super.position(position);
}
public native @ByRef gsl_vector_uchar vector(); public native _gsl_vector_uchar_const_view vector(gsl_vector_uchar vector);
}
/* Allocation */
public static native gsl_vector_uchar gsl_vector_uchar_alloc(@Cast("const size_t") long n);
public static native gsl_vector_uchar gsl_vector_uchar_calloc(@Cast("const size_t") long n);
public static native gsl_vector_uchar gsl_vector_uchar_alloc_from_block(gsl_block_uchar b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native gsl_vector_uchar gsl_vector_uchar_alloc_from_vector(gsl_vector_uchar v,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native void gsl_vector_uchar_free(gsl_vector_uchar v);
/* Views */
public static native @ByVal _gsl_vector_uchar_view gsl_vector_uchar_view_array(@Cast("unsigned char*") BytePointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_view gsl_vector_uchar_view_array(@Cast("unsigned char*") ByteBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_view gsl_vector_uchar_view_array(@Cast("unsigned char*") byte[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_view gsl_vector_uchar_view_array_with_stride(@Cast("unsigned char*") BytePointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_view gsl_vector_uchar_view_array_with_stride(@Cast("unsigned char*") ByteBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_view gsl_vector_uchar_view_array_with_stride(@Cast("unsigned char*") byte[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_const_view gsl_vector_uchar_const_view_array(@Cast("const unsigned char*") BytePointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_const_view gsl_vector_uchar_const_view_array(@Cast("const unsigned char*") ByteBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_const_view gsl_vector_uchar_const_view_array(@Cast("const unsigned char*") byte[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_const_view gsl_vector_uchar_const_view_array_with_stride(@Cast("const unsigned char*") BytePointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_const_view gsl_vector_uchar_const_view_array_with_stride(@Cast("const unsigned char*") ByteBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_const_view gsl_vector_uchar_const_view_array_with_stride(@Cast("const unsigned char*") byte[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_view gsl_vector_uchar_subvector(gsl_vector_uchar v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_view gsl_vector_uchar_subvector_with_stride(gsl_vector_uchar v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_const_view gsl_vector_uchar_const_subvector(@Const gsl_vector_uchar v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_uchar_const_view gsl_vector_uchar_const_subvector_with_stride(@Const gsl_vector_uchar v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
/* Operations */
public static native void gsl_vector_uchar_set_zero(gsl_vector_uchar v);
public static native void gsl_vector_uchar_set_all(gsl_vector_uchar v, @Cast("unsigned char") byte x);
public static native int gsl_vector_uchar_set_basis(gsl_vector_uchar v, @Cast("size_t") long i);
public static native int gsl_vector_uchar_fread(@Cast("FILE*") Pointer stream, gsl_vector_uchar v);
public static native int gsl_vector_uchar_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_vector_uchar v);
public static native int gsl_vector_uchar_fscanf(@Cast("FILE*") Pointer stream, gsl_vector_uchar v);
public static native int gsl_vector_uchar_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_uchar v,
@Cast("const char*") BytePointer format);
public static native int gsl_vector_uchar_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_uchar v,
String format);
public static native int gsl_vector_uchar_memcpy(gsl_vector_uchar dest, @Const gsl_vector_uchar src);
public static native int gsl_vector_uchar_reverse(gsl_vector_uchar v);
public static native int gsl_vector_uchar_swap(gsl_vector_uchar v, gsl_vector_uchar w);
public static native int gsl_vector_uchar_swap_elements(gsl_vector_uchar v, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native @Cast("unsigned char") byte gsl_vector_uchar_max(@Const gsl_vector_uchar v);
public static native @Cast("unsigned char") byte gsl_vector_uchar_min(@Const gsl_vector_uchar v);
public static native void gsl_vector_uchar_minmax(@Const gsl_vector_uchar v, @Cast("unsigned char*") BytePointer min_out, @Cast("unsigned char*") BytePointer max_out);
public static native void gsl_vector_uchar_minmax(@Const gsl_vector_uchar v, @Cast("unsigned char*") ByteBuffer min_out, @Cast("unsigned char*") ByteBuffer max_out);
public static native void gsl_vector_uchar_minmax(@Const gsl_vector_uchar v, @Cast("unsigned char*") byte[] min_out, @Cast("unsigned char*") byte[] max_out);
public static native @Cast("size_t") long gsl_vector_uchar_max_index(@Const gsl_vector_uchar v);
public static native @Cast("size_t") long gsl_vector_uchar_min_index(@Const gsl_vector_uchar v);
public static native void gsl_vector_uchar_minmax_index(@Const gsl_vector_uchar v, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer imax);
public static native int gsl_vector_uchar_add(gsl_vector_uchar a, @Const gsl_vector_uchar b);
public static native int gsl_vector_uchar_sub(gsl_vector_uchar a, @Const gsl_vector_uchar b);
public static native int gsl_vector_uchar_mul(gsl_vector_uchar a, @Const gsl_vector_uchar b);
public static native int gsl_vector_uchar_div(gsl_vector_uchar a, @Const gsl_vector_uchar b);
public static native int gsl_vector_uchar_scale(gsl_vector_uchar a, double x);
public static native int gsl_vector_uchar_add_constant(gsl_vector_uchar a, double x);
public static native int gsl_vector_uchar_equal(@Const gsl_vector_uchar u,
@Const gsl_vector_uchar v);
public static native int gsl_vector_uchar_isnull(@Const gsl_vector_uchar v);
public static native int gsl_vector_uchar_ispos(@Const gsl_vector_uchar v);
public static native int gsl_vector_uchar_isneg(@Const gsl_vector_uchar v);
public static native int gsl_vector_uchar_isnonneg(@Const gsl_vector_uchar v);
/* */ public static native @Cast("unsigned char") byte gsl_vector_uchar_get(@Const gsl_vector_uchar v, @Cast("const size_t") long i);
/* */ public static native void gsl_vector_uchar_set(gsl_vector_uchar v, @Cast("const size_t") long i, @Cast("unsigned char") byte x);
/* */ public static native @Cast("unsigned char*") BytePointer gsl_vector_uchar_ptr(gsl_vector_uchar v, @Cast("const size_t") long i);
/* */ public static native @Cast("const unsigned char*") BytePointer gsl_vector_uchar_const_ptr(@Const gsl_vector_uchar v, @Cast("const size_t") long i);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_VECTOR_UCHAR_H__ */
// Parsed from gsl/gsl_vector_char.h
/* vector/gsl_vector_char.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_VECTOR_CHAR_H__
// #define __GSL_VECTOR_CHAR_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_vector_char extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_vector_char() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_vector_char(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_vector_char(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_vector_char position(long position) {
return (gsl_vector_char)super.position(position);
}
public native @Cast("size_t") long size(); public native gsl_vector_char size(long size);
public native @Cast("size_t") long stride(); public native gsl_vector_char stride(long stride);
public native @Cast("char*") BytePointer data(); public native gsl_vector_char data(BytePointer data);
public native gsl_block_char block(); public native gsl_vector_char block(gsl_block_char block);
public native int owner(); public native gsl_vector_char owner(int owner);
}
public static class _gsl_vector_char_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_char_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_char_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_char_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_char_view position(long position) {
return (_gsl_vector_char_view)super.position(position);
}
public native @ByRef gsl_vector_char vector(); public native _gsl_vector_char_view vector(gsl_vector_char vector);
}
public static class _gsl_vector_char_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_vector_char_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_vector_char_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_vector_char_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_vector_char_const_view position(long position) {
return (_gsl_vector_char_const_view)super.position(position);
}
public native @ByRef gsl_vector_char vector(); public native _gsl_vector_char_const_view vector(gsl_vector_char vector);
}
/* Allocation */
public static native gsl_vector_char gsl_vector_char_alloc(@Cast("const size_t") long n);
public static native gsl_vector_char gsl_vector_char_calloc(@Cast("const size_t") long n);
public static native gsl_vector_char gsl_vector_char_alloc_from_block(gsl_block_char b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native gsl_vector_char gsl_vector_char_alloc_from_vector(gsl_vector_char v,
@Cast("const size_t") long offset,
@Cast("const size_t") long n,
@Cast("const size_t") long stride);
public static native void gsl_vector_char_free(gsl_vector_char v);
/* Views */
public static native @ByVal _gsl_vector_char_view gsl_vector_char_view_array(@Cast("char*") BytePointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_char_view gsl_vector_char_view_array(@Cast("char*") ByteBuffer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_char_view gsl_vector_char_view_array(@Cast("char*") byte[] v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_char_view gsl_vector_char_view_array_with_stride(@Cast("char*") BytePointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_char_view gsl_vector_char_view_array_with_stride(@Cast("char*") ByteBuffer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_char_view gsl_vector_char_view_array_with_stride(@Cast("char*") byte[] base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_char_const_view gsl_vector_char_const_view_array(@Cast("const char*") BytePointer v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_char_const_view gsl_vector_char_const_view_array(String v, @Cast("size_t") long n);
public static native @ByVal _gsl_vector_char_const_view gsl_vector_char_const_view_array_with_stride(@Cast("const char*") BytePointer base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_char_const_view gsl_vector_char_const_view_array_with_stride(String base,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_char_view gsl_vector_char_subvector(gsl_vector_char v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_char_view gsl_vector_char_subvector_with_stride(gsl_vector_char v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_char_const_view gsl_vector_char_const_subvector(@Const gsl_vector_char v,
@Cast("size_t") long i,
@Cast("size_t") long n);
public static native @ByVal _gsl_vector_char_const_view gsl_vector_char_const_subvector_with_stride(@Const gsl_vector_char v,
@Cast("size_t") long i,
@Cast("size_t") long stride,
@Cast("size_t") long n);
/* Operations */
public static native void gsl_vector_char_set_zero(gsl_vector_char v);
public static native void gsl_vector_char_set_all(gsl_vector_char v, @Cast("char") byte x);
public static native int gsl_vector_char_set_basis(gsl_vector_char v, @Cast("size_t") long i);
public static native int gsl_vector_char_fread(@Cast("FILE*") Pointer stream, gsl_vector_char v);
public static native int gsl_vector_char_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_vector_char v);
public static native int gsl_vector_char_fscanf(@Cast("FILE*") Pointer stream, gsl_vector_char v);
public static native int gsl_vector_char_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_char v,
@Cast("const char*") BytePointer format);
public static native int gsl_vector_char_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_vector_char v,
String format);
public static native int gsl_vector_char_memcpy(gsl_vector_char dest, @Const gsl_vector_char src);
public static native int gsl_vector_char_reverse(gsl_vector_char v);
public static native int gsl_vector_char_swap(gsl_vector_char v, gsl_vector_char w);
public static native int gsl_vector_char_swap_elements(gsl_vector_char v, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native @Cast("char") byte gsl_vector_char_max(@Const gsl_vector_char v);
public static native @Cast("char") byte gsl_vector_char_min(@Const gsl_vector_char v);
public static native void gsl_vector_char_minmax(@Const gsl_vector_char v, @Cast("char*") BytePointer min_out, @Cast("char*") BytePointer max_out);
public static native void gsl_vector_char_minmax(@Const gsl_vector_char v, @Cast("char*") ByteBuffer min_out, @Cast("char*") ByteBuffer max_out);
public static native void gsl_vector_char_minmax(@Const gsl_vector_char v, @Cast("char*") byte[] min_out, @Cast("char*") byte[] max_out);
public static native @Cast("size_t") long gsl_vector_char_max_index(@Const gsl_vector_char v);
public static native @Cast("size_t") long gsl_vector_char_min_index(@Const gsl_vector_char v);
public static native void gsl_vector_char_minmax_index(@Const gsl_vector_char v, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer imax);
public static native int gsl_vector_char_add(gsl_vector_char a, @Const gsl_vector_char b);
public static native int gsl_vector_char_sub(gsl_vector_char a, @Const gsl_vector_char b);
public static native int gsl_vector_char_mul(gsl_vector_char a, @Const gsl_vector_char b);
public static native int gsl_vector_char_div(gsl_vector_char a, @Const gsl_vector_char b);
public static native int gsl_vector_char_scale(gsl_vector_char a, double x);
public static native int gsl_vector_char_add_constant(gsl_vector_char a, double x);
public static native int gsl_vector_char_equal(@Const gsl_vector_char u,
@Const gsl_vector_char v);
public static native int gsl_vector_char_isnull(@Const gsl_vector_char v);
public static native int gsl_vector_char_ispos(@Const gsl_vector_char v);
public static native int gsl_vector_char_isneg(@Const gsl_vector_char v);
public static native int gsl_vector_char_isnonneg(@Const gsl_vector_char v);
/* */ public static native @Cast("char") byte gsl_vector_char_get(@Const gsl_vector_char v, @Cast("const size_t") long i);
/* */ public static native void gsl_vector_char_set(gsl_vector_char v, @Cast("const size_t") long i, @Cast("char") byte x);
/* */ public static native @Cast("char*") BytePointer gsl_vector_char_ptr(gsl_vector_char v, @Cast("const size_t") long i);
/* */ public static native @Cast("const char*") BytePointer gsl_vector_char_const_ptr(@Const gsl_vector_char v, @Cast("const size_t") long i);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_VECTOR_CHAR_H__ */
// Parsed from gsl/gsl_matrix.h
// #ifndef __GSL_MATRIX_H__
// #define __GSL_MATRIX_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #include
// #endif /* __GSL_MATRIX_H__ */
// Parsed from gsl/gsl_matrix_complex_double.h
/* matrix/gsl_matrix_complex_double.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MATRIX_COMPLEX_DOUBLE_H__
// #define __GSL_MATRIX_COMPLEX_DOUBLE_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_matrix_complex extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_matrix_complex() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_matrix_complex(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_matrix_complex(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_matrix_complex position(long position) {
return (gsl_matrix_complex)super.position(position);
}
public native @Cast("size_t") long size1(); public native gsl_matrix_complex size1(long size1);
public native @Cast("size_t") long size2(); public native gsl_matrix_complex size2(long size2);
public native @Cast("size_t") long tda(); public native gsl_matrix_complex tda(long tda);
public native DoublePointer data(); public native gsl_matrix_complex data(DoublePointer data);
public native gsl_block_complex block(); public native gsl_matrix_complex block(gsl_block_complex block);
public native int owner(); public native gsl_matrix_complex owner(int owner);
}
public static class _gsl_matrix_complex_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_complex_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_complex_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_complex_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_complex_view position(long position) {
return (_gsl_matrix_complex_view)super.position(position);
}
public native @ByRef gsl_matrix_complex matrix(); public native _gsl_matrix_complex_view matrix(gsl_matrix_complex matrix);
}
public static class _gsl_matrix_complex_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_complex_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_complex_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_complex_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_complex_const_view position(long position) {
return (_gsl_matrix_complex_const_view)super.position(position);
}
public native @ByRef gsl_matrix_complex matrix(); public native _gsl_matrix_complex_const_view matrix(gsl_matrix_complex matrix);
}
/* Allocation */
public static native gsl_matrix_complex gsl_matrix_complex_alloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_complex gsl_matrix_complex_calloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_complex gsl_matrix_complex_alloc_from_block(gsl_block_complex b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n1, @Cast("const size_t") long n2, @Cast("const size_t") long d2);
public static native gsl_matrix_complex gsl_matrix_complex_alloc_from_matrix(gsl_matrix_complex b,
@Cast("const size_t") long k1, @Cast("const size_t") long k2,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_vector_complex gsl_vector_complex_alloc_row_from_matrix(gsl_matrix_complex m,
@Cast("const size_t") long i);
public static native gsl_vector_complex gsl_vector_complex_alloc_col_from_matrix(gsl_matrix_complex m,
@Cast("const size_t") long j);
public static native void gsl_matrix_complex_free(gsl_matrix_complex m);
/* Views */
public static native @ByVal _gsl_matrix_complex_view gsl_matrix_complex_submatrix(gsl_matrix_complex m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_complex_view gsl_matrix_complex_row(gsl_matrix_complex m, @Cast("const size_t") long i);
public static native @ByVal _gsl_vector_complex_view gsl_matrix_complex_column(gsl_matrix_complex m, @Cast("const size_t") long j);
public static native @ByVal _gsl_vector_complex_view gsl_matrix_complex_diagonal(gsl_matrix_complex m);
public static native @ByVal _gsl_vector_complex_view gsl_matrix_complex_subdiagonal(gsl_matrix_complex m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_complex_view gsl_matrix_complex_superdiagonal(gsl_matrix_complex m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_complex_view gsl_matrix_complex_subrow(gsl_matrix_complex m,
@Cast("const size_t") long i, @Cast("const size_t") long offset,
@Cast("const size_t") long n);
public static native @ByVal _gsl_vector_complex_view gsl_matrix_complex_subcolumn(gsl_matrix_complex m,
@Cast("const size_t") long j, @Cast("const size_t") long offset,
@Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_complex_view gsl_matrix_complex_view_array(DoublePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_view gsl_matrix_complex_view_array(DoubleBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_view gsl_matrix_complex_view_array(double[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_view gsl_matrix_complex_view_array_with_tda(DoublePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_view gsl_matrix_complex_view_array_with_tda(DoubleBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_view gsl_matrix_complex_view_array_with_tda(double[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_view gsl_matrix_complex_view_vector(gsl_vector_complex v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_view gsl_matrix_complex_view_vector_with_tda(gsl_vector_complex v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_const_view gsl_matrix_complex_const_submatrix(@Const gsl_matrix_complex m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_complex_const_view gsl_matrix_complex_const_row(@Const gsl_matrix_complex m,
@Cast("const size_t") long i);
public static native @ByVal _gsl_vector_complex_const_view gsl_matrix_complex_const_column(@Const gsl_matrix_complex m,
@Cast("const size_t") long j);
public static native @ByVal _gsl_vector_complex_const_view gsl_matrix_complex_const_diagonal(@Const gsl_matrix_complex m);
public static native @ByVal _gsl_vector_complex_const_view gsl_matrix_complex_const_subdiagonal(@Const gsl_matrix_complex m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_complex_const_view gsl_matrix_complex_const_superdiagonal(@Const gsl_matrix_complex m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_complex_const_view gsl_matrix_complex_const_subrow(@Const gsl_matrix_complex m,
@Cast("const size_t") long i, @Cast("const size_t") long offset,
@Cast("const size_t") long n);
public static native @ByVal _gsl_vector_complex_const_view gsl_matrix_complex_const_subcolumn(@Const gsl_matrix_complex m,
@Cast("const size_t") long j, @Cast("const size_t") long offset,
@Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_complex_const_view gsl_matrix_complex_const_view_array(@Const DoublePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_const_view gsl_matrix_complex_const_view_array(@Const DoubleBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_const_view gsl_matrix_complex_const_view_array(@Const double[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_const_view gsl_matrix_complex_const_view_array_with_tda(@Const DoublePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_const_view gsl_matrix_complex_const_view_array_with_tda(@Const DoubleBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_const_view gsl_matrix_complex_const_view_array_with_tda(@Const double[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_const_view gsl_matrix_complex_const_view_vector(@Const gsl_vector_complex v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_const_view gsl_matrix_complex_const_view_vector_with_tda(@Const gsl_vector_complex v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
/* Operations */
public static native void gsl_matrix_complex_set_zero(gsl_matrix_complex m);
public static native void gsl_matrix_complex_set_identity(gsl_matrix_complex m);
public static native void gsl_matrix_complex_set_all(gsl_matrix_complex m, @ByVal gsl_complex x);
public static native int gsl_matrix_complex_fread(@Cast("FILE*") Pointer stream, gsl_matrix_complex m);
public static native int gsl_matrix_complex_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_matrix_complex m);
public static native int gsl_matrix_complex_fscanf(@Cast("FILE*") Pointer stream, gsl_matrix_complex m);
public static native int gsl_matrix_complex_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_complex m, @Cast("const char*") BytePointer format);
public static native int gsl_matrix_complex_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_complex m, String format);
public static native int gsl_matrix_complex_memcpy(gsl_matrix_complex dest, @Const gsl_matrix_complex src);
public static native int gsl_matrix_complex_swap(gsl_matrix_complex m1, gsl_matrix_complex m2);
public static native int gsl_matrix_complex_tricpy(byte uplo_src, int copy_diag, gsl_matrix_complex dest, @Const gsl_matrix_complex src);
public static native int gsl_matrix_complex_swap_rows(gsl_matrix_complex m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_complex_swap_columns(gsl_matrix_complex m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_complex_swap_rowcol(gsl_matrix_complex m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_complex_transpose(gsl_matrix_complex m);
public static native int gsl_matrix_complex_transpose_memcpy(gsl_matrix_complex dest, @Const gsl_matrix_complex src);
public static native int gsl_matrix_complex_transpose_tricpy(byte uplo_src, int copy_diag, gsl_matrix_complex dest, @Const gsl_matrix_complex src);
public static native int gsl_matrix_complex_equal(@Const gsl_matrix_complex a, @Const gsl_matrix_complex b);
public static native int gsl_matrix_complex_isnull(@Const gsl_matrix_complex m);
public static native int gsl_matrix_complex_ispos(@Const gsl_matrix_complex m);
public static native int gsl_matrix_complex_isneg(@Const gsl_matrix_complex m);
public static native int gsl_matrix_complex_isnonneg(@Const gsl_matrix_complex m);
public static native int gsl_matrix_complex_add(gsl_matrix_complex a, @Const gsl_matrix_complex b);
public static native int gsl_matrix_complex_sub(gsl_matrix_complex a, @Const gsl_matrix_complex b);
public static native int gsl_matrix_complex_mul_elements(gsl_matrix_complex a, @Const gsl_matrix_complex b);
public static native int gsl_matrix_complex_div_elements(gsl_matrix_complex a, @Const gsl_matrix_complex b);
public static native int gsl_matrix_complex_scale(gsl_matrix_complex a, @Const @ByVal gsl_complex x);
public static native int gsl_matrix_complex_add_constant(gsl_matrix_complex a, @Const @ByVal gsl_complex x);
public static native int gsl_matrix_complex_add_diagonal(gsl_matrix_complex a, @Const @ByVal gsl_complex x);
/***********************************************************************/
/* The functions below are obsolete */
/***********************************************************************/
public static native int gsl_matrix_complex_get_row(gsl_vector_complex v, @Const gsl_matrix_complex m, @Cast("const size_t") long i);
public static native int gsl_matrix_complex_get_col(gsl_vector_complex v, @Const gsl_matrix_complex m, @Cast("const size_t") long j);
public static native int gsl_matrix_complex_set_row(gsl_matrix_complex m, @Cast("const size_t") long i, @Const gsl_vector_complex v);
public static native int gsl_matrix_complex_set_col(gsl_matrix_complex m, @Cast("const size_t") long j, @Const gsl_vector_complex v);
/***********************************************************************/
/* inline functions if you are using GCC */
/* */ public static native @ByVal gsl_complex gsl_matrix_complex_get(@Const gsl_matrix_complex m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native void gsl_matrix_complex_set(gsl_matrix_complex m, @Cast("const size_t") long i, @Cast("const size_t") long j, @Const @ByVal gsl_complex x);
/* */ public static native gsl_complex gsl_matrix_complex_ptr(gsl_matrix_complex m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native @Const gsl_complex gsl_matrix_complex_const_ptr(@Const gsl_matrix_complex m, @Cast("const size_t") long i, @Cast("const size_t") long j);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_MATRIX_COMPLEX_DOUBLE_H__ */
// Parsed from gsl/gsl_matrix_complex_float.h
/* matrix/gsl_matrix_complex_float.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MATRIX_COMPLEX_FLOAT_H__
// #define __GSL_MATRIX_COMPLEX_FLOAT_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_matrix_complex_float extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_matrix_complex_float() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_matrix_complex_float(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_matrix_complex_float(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_matrix_complex_float position(long position) {
return (gsl_matrix_complex_float)super.position(position);
}
public native @Cast("size_t") long size1(); public native gsl_matrix_complex_float size1(long size1);
public native @Cast("size_t") long size2(); public native gsl_matrix_complex_float size2(long size2);
public native @Cast("size_t") long tda(); public native gsl_matrix_complex_float tda(long tda);
public native FloatPointer data(); public native gsl_matrix_complex_float data(FloatPointer data);
public native gsl_block_complex_float block(); public native gsl_matrix_complex_float block(gsl_block_complex_float block);
public native int owner(); public native gsl_matrix_complex_float owner(int owner);
}
public static class _gsl_matrix_complex_float_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_complex_float_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_complex_float_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_complex_float_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_complex_float_view position(long position) {
return (_gsl_matrix_complex_float_view)super.position(position);
}
public native @ByRef gsl_matrix_complex_float matrix(); public native _gsl_matrix_complex_float_view matrix(gsl_matrix_complex_float matrix);
}
public static class _gsl_matrix_complex_float_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_complex_float_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_complex_float_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_complex_float_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_complex_float_const_view position(long position) {
return (_gsl_matrix_complex_float_const_view)super.position(position);
}
public native @ByRef gsl_matrix_complex_float matrix(); public native _gsl_matrix_complex_float_const_view matrix(gsl_matrix_complex_float matrix);
}
/* Allocation */
public static native gsl_matrix_complex_float gsl_matrix_complex_float_alloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_complex_float gsl_matrix_complex_float_calloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_complex_float gsl_matrix_complex_float_alloc_from_block(gsl_block_complex_float b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n1, @Cast("const size_t") long n2, @Cast("const size_t") long d2);
public static native gsl_matrix_complex_float gsl_matrix_complex_float_alloc_from_matrix(gsl_matrix_complex_float b,
@Cast("const size_t") long k1, @Cast("const size_t") long k2,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_vector_complex_float gsl_vector_complex_float_alloc_row_from_matrix(gsl_matrix_complex_float m,
@Cast("const size_t") long i);
public static native gsl_vector_complex_float gsl_vector_complex_float_alloc_col_from_matrix(gsl_matrix_complex_float m,
@Cast("const size_t") long j);
public static native void gsl_matrix_complex_float_free(gsl_matrix_complex_float m);
/* Views */
public static native @ByVal _gsl_matrix_complex_float_view gsl_matrix_complex_float_submatrix(gsl_matrix_complex_float m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_complex_float_view gsl_matrix_complex_float_row(gsl_matrix_complex_float m, @Cast("const size_t") long i);
public static native @ByVal _gsl_vector_complex_float_view gsl_matrix_complex_float_column(gsl_matrix_complex_float m, @Cast("const size_t") long j);
public static native @ByVal _gsl_vector_complex_float_view gsl_matrix_complex_float_diagonal(gsl_matrix_complex_float m);
public static native @ByVal _gsl_vector_complex_float_view gsl_matrix_complex_float_subdiagonal(gsl_matrix_complex_float m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_complex_float_view gsl_matrix_complex_float_superdiagonal(gsl_matrix_complex_float m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_complex_float_view gsl_matrix_complex_float_subrow(gsl_matrix_complex_float m,
@Cast("const size_t") long i, @Cast("const size_t") long offset,
@Cast("const size_t") long n);
public static native @ByVal _gsl_vector_complex_float_view gsl_matrix_complex_float_subcolumn(gsl_matrix_complex_float m,
@Cast("const size_t") long j, @Cast("const size_t") long offset,
@Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_complex_float_view gsl_matrix_complex_float_view_array(FloatPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_float_view gsl_matrix_complex_float_view_array(FloatBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_float_view gsl_matrix_complex_float_view_array(float[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_float_view gsl_matrix_complex_float_view_array_with_tda(FloatPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_float_view gsl_matrix_complex_float_view_array_with_tda(FloatBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_float_view gsl_matrix_complex_float_view_array_with_tda(float[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_float_view gsl_matrix_complex_float_view_vector(gsl_vector_complex_float v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_float_view gsl_matrix_complex_float_view_vector_with_tda(gsl_vector_complex_float v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_float_const_view gsl_matrix_complex_float_const_submatrix(@Const gsl_matrix_complex_float m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_matrix_complex_float_const_row(@Const gsl_matrix_complex_float m,
@Cast("const size_t") long i);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_matrix_complex_float_const_column(@Const gsl_matrix_complex_float m,
@Cast("const size_t") long j);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_matrix_complex_float_const_diagonal(@Const gsl_matrix_complex_float m);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_matrix_complex_float_const_subdiagonal(@Const gsl_matrix_complex_float m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_matrix_complex_float_const_superdiagonal(@Const gsl_matrix_complex_float m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_matrix_complex_float_const_subrow(@Const gsl_matrix_complex_float m,
@Cast("const size_t") long i, @Cast("const size_t") long offset,
@Cast("const size_t") long n);
public static native @ByVal _gsl_vector_complex_float_const_view gsl_matrix_complex_float_const_subcolumn(@Const gsl_matrix_complex_float m,
@Cast("const size_t") long j, @Cast("const size_t") long offset,
@Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_complex_float_const_view gsl_matrix_complex_float_const_view_array(@Const FloatPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_float_const_view gsl_matrix_complex_float_const_view_array(@Const FloatBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_float_const_view gsl_matrix_complex_float_const_view_array(@Const float[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_float_const_view gsl_matrix_complex_float_const_view_array_with_tda(@Const FloatPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_float_const_view gsl_matrix_complex_float_const_view_array_with_tda(@Const FloatBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_float_const_view gsl_matrix_complex_float_const_view_array_with_tda(@Const float[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_complex_float_const_view gsl_matrix_complex_float_const_view_vector(@Const gsl_vector_complex_float v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_complex_float_const_view gsl_matrix_complex_float_const_view_vector_with_tda(@Const gsl_vector_complex_float v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
/* Operations */
public static native void gsl_matrix_complex_float_set_zero(gsl_matrix_complex_float m);
public static native void gsl_matrix_complex_float_set_identity(gsl_matrix_complex_float m);
public static native void gsl_matrix_complex_float_set_all(gsl_matrix_complex_float m, @ByVal gsl_complex_float x);
public static native int gsl_matrix_complex_float_fread(@Cast("FILE*") Pointer stream, gsl_matrix_complex_float m);
public static native int gsl_matrix_complex_float_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_matrix_complex_float m);
public static native int gsl_matrix_complex_float_fscanf(@Cast("FILE*") Pointer stream, gsl_matrix_complex_float m);
public static native int gsl_matrix_complex_float_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_complex_float m, @Cast("const char*") BytePointer format);
public static native int gsl_matrix_complex_float_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_complex_float m, String format);
public static native int gsl_matrix_complex_float_memcpy(gsl_matrix_complex_float dest, @Const gsl_matrix_complex_float src);
public static native int gsl_matrix_complex_float_swap(gsl_matrix_complex_float m1, gsl_matrix_complex_float m2);
public static native int gsl_matrix_complex_float_tricpy(byte uplo_src, int copy_diag, gsl_matrix_complex_float dest, @Const gsl_matrix_complex_float src);
public static native int gsl_matrix_complex_float_swap_rows(gsl_matrix_complex_float m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_complex_float_swap_columns(gsl_matrix_complex_float m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_complex_float_swap_rowcol(gsl_matrix_complex_float m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_complex_float_transpose(gsl_matrix_complex_float m);
public static native int gsl_matrix_complex_float_transpose_memcpy(gsl_matrix_complex_float dest, @Const gsl_matrix_complex_float src);
public static native int gsl_matrix_complex_float_transpose_tricpy(byte uplo_src, int copy_diag, gsl_matrix_complex_float dest, @Const gsl_matrix_complex_float src);
public static native int gsl_matrix_complex_float_equal(@Const gsl_matrix_complex_float a, @Const gsl_matrix_complex_float b);
public static native int gsl_matrix_complex_float_isnull(@Const gsl_matrix_complex_float m);
public static native int gsl_matrix_complex_float_ispos(@Const gsl_matrix_complex_float m);
public static native int gsl_matrix_complex_float_isneg(@Const gsl_matrix_complex_float m);
public static native int gsl_matrix_complex_float_isnonneg(@Const gsl_matrix_complex_float m);
public static native int gsl_matrix_complex_float_add(gsl_matrix_complex_float a, @Const gsl_matrix_complex_float b);
public static native int gsl_matrix_complex_float_sub(gsl_matrix_complex_float a, @Const gsl_matrix_complex_float b);
public static native int gsl_matrix_complex_float_mul_elements(gsl_matrix_complex_float a, @Const gsl_matrix_complex_float b);
public static native int gsl_matrix_complex_float_div_elements(gsl_matrix_complex_float a, @Const gsl_matrix_complex_float b);
public static native int gsl_matrix_complex_float_scale(gsl_matrix_complex_float a, @Const @ByVal gsl_complex_float x);
public static native int gsl_matrix_complex_float_add_constant(gsl_matrix_complex_float a, @Const @ByVal gsl_complex_float x);
public static native int gsl_matrix_complex_float_add_diagonal(gsl_matrix_complex_float a, @Const @ByVal gsl_complex_float x);
/***********************************************************************/
/* The functions below are obsolete */
/***********************************************************************/
public static native int gsl_matrix_complex_float_get_row(gsl_vector_complex_float v, @Const gsl_matrix_complex_float m, @Cast("const size_t") long i);
public static native int gsl_matrix_complex_float_get_col(gsl_vector_complex_float v, @Const gsl_matrix_complex_float m, @Cast("const size_t") long j);
public static native int gsl_matrix_complex_float_set_row(gsl_matrix_complex_float m, @Cast("const size_t") long i, @Const gsl_vector_complex_float v);
public static native int gsl_matrix_complex_float_set_col(gsl_matrix_complex_float m, @Cast("const size_t") long j, @Const gsl_vector_complex_float v);
/***********************************************************************/
/* inline functions if you are using GCC */
/* */ public static native @ByVal gsl_complex_float gsl_matrix_complex_float_get(@Const gsl_matrix_complex_float m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native void gsl_matrix_complex_float_set(gsl_matrix_complex_float m, @Cast("const size_t") long i, @Cast("const size_t") long j, @Const @ByVal gsl_complex_float x);
/* */ public static native gsl_complex_float gsl_matrix_complex_float_ptr(gsl_matrix_complex_float m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native @Const gsl_complex_float gsl_matrix_complex_float_const_ptr(@Const gsl_matrix_complex_float m, @Cast("const size_t") long i, @Cast("const size_t") long j);
// #ifdef HAVE_INLINE
// #endif /* HAVE_INLINE */
// #endif /* __GSL_MATRIX_COMPLEX_FLOAT_H__ */
// Parsed from gsl/gsl_matrix_double.h
/* matrix/gsl_matrix_double.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MATRIX_DOUBLE_H__
// #define __GSL_MATRIX_DOUBLE_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_matrix extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_matrix() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_matrix(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_matrix(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_matrix position(long position) {
return (gsl_matrix)super.position(position);
}
public native @Cast("size_t") long size1(); public native gsl_matrix size1(long size1);
public native @Cast("size_t") long size2(); public native gsl_matrix size2(long size2);
public native @Cast("size_t") long tda(); public native gsl_matrix tda(long tda);
public native DoublePointer data(); public native gsl_matrix data(DoublePointer data);
public native gsl_block block(); public native gsl_matrix block(gsl_block block);
public native int owner(); public native gsl_matrix owner(int owner);
}
public static class _gsl_matrix_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_view position(long position) {
return (_gsl_matrix_view)super.position(position);
}
public native @ByRef gsl_matrix matrix(); public native _gsl_matrix_view matrix(gsl_matrix matrix);
}
public static class _gsl_matrix_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_const_view position(long position) {
return (_gsl_matrix_const_view)super.position(position);
}
public native @ByRef gsl_matrix matrix(); public native _gsl_matrix_const_view matrix(gsl_matrix matrix);
}
/* Allocation */
public static native gsl_matrix gsl_matrix_alloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix gsl_matrix_calloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix gsl_matrix_alloc_from_block(gsl_block b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long d2);
public static native gsl_matrix gsl_matrix_alloc_from_matrix(gsl_matrix m,
@Cast("const size_t") long k1,
@Cast("const size_t") long k2,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native gsl_vector gsl_vector_alloc_row_from_matrix(gsl_matrix m,
@Cast("const size_t") long i);
public static native gsl_vector gsl_vector_alloc_col_from_matrix(gsl_matrix m,
@Cast("const size_t") long j);
public static native void gsl_matrix_free(gsl_matrix m);
/* Views */
public static native @ByVal _gsl_matrix_view gsl_matrix_submatrix(gsl_matrix m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_view gsl_matrix_row(gsl_matrix m, @Cast("const size_t") long i);
public static native @ByVal _gsl_vector_view gsl_matrix_column(gsl_matrix m, @Cast("const size_t") long j);
public static native @ByVal _gsl_vector_view gsl_matrix_diagonal(gsl_matrix m);
public static native @ByVal _gsl_vector_view gsl_matrix_subdiagonal(gsl_matrix m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_view gsl_matrix_superdiagonal(gsl_matrix m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_view gsl_matrix_subrow(gsl_matrix m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_view gsl_matrix_subcolumn(gsl_matrix m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_view gsl_matrix_view_array(DoublePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_view gsl_matrix_view_array(DoubleBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_view gsl_matrix_view_array(double[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_view gsl_matrix_view_array_with_tda(DoublePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_view gsl_matrix_view_array_with_tda(DoubleBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_view gsl_matrix_view_array_with_tda(double[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_view gsl_matrix_view_vector(gsl_vector v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_view gsl_matrix_view_vector_with_tda(gsl_vector v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_const_view gsl_matrix_const_submatrix(@Const gsl_matrix m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_const_view gsl_matrix_const_row(@Const gsl_matrix m,
@Cast("const size_t") long i);
public static native @ByVal _gsl_vector_const_view gsl_matrix_const_column(@Const gsl_matrix m,
@Cast("const size_t") long j);
public static native @ByVal _gsl_vector_const_view gsl_matrix_const_diagonal(@Const gsl_matrix m);
public static native @ByVal _gsl_vector_const_view gsl_matrix_const_subdiagonal(@Const gsl_matrix m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_const_view gsl_matrix_const_superdiagonal(@Const gsl_matrix m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_const_view gsl_matrix_const_subrow(@Const gsl_matrix m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_const_view gsl_matrix_const_subcolumn(@Const gsl_matrix m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_const_view gsl_matrix_const_view_array(@Const DoublePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_const_view gsl_matrix_const_view_array(@Const DoubleBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_const_view gsl_matrix_const_view_array(@Const double[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_const_view gsl_matrix_const_view_array_with_tda(@Const DoublePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_const_view gsl_matrix_const_view_array_with_tda(@Const DoubleBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_const_view gsl_matrix_const_view_array_with_tda(@Const double[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_const_view gsl_matrix_const_view_vector(@Const gsl_vector v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_const_view gsl_matrix_const_view_vector_with_tda(@Const gsl_vector v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
/* Operations */
public static native void gsl_matrix_set_zero(gsl_matrix m);
public static native void gsl_matrix_set_identity(gsl_matrix m);
public static native void gsl_matrix_set_all(gsl_matrix m, double x);
public static native int gsl_matrix_fread(@Cast("FILE*") Pointer stream, gsl_matrix m);
public static native int gsl_matrix_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_matrix m);
public static native int gsl_matrix_fscanf(@Cast("FILE*") Pointer stream, gsl_matrix m);
public static native int gsl_matrix_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix m, @Cast("const char*") BytePointer format);
public static native int gsl_matrix_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix m, String format);
public static native int gsl_matrix_memcpy(gsl_matrix dest, @Const gsl_matrix src);
public static native int gsl_matrix_swap(gsl_matrix m1, gsl_matrix m2);
public static native int gsl_matrix_tricpy(byte uplo_src, int copy_diag, gsl_matrix dest, @Const gsl_matrix src);
public static native int gsl_matrix_swap_rows(gsl_matrix m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_swap_columns(gsl_matrix m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_swap_rowcol(gsl_matrix m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_transpose(gsl_matrix m);
public static native int gsl_matrix_transpose_memcpy(gsl_matrix dest, @Const gsl_matrix src);
public static native int gsl_matrix_transpose_tricpy(byte uplo_src, int copy_diag, gsl_matrix dest, @Const gsl_matrix src);
public static native double gsl_matrix_max(@Const gsl_matrix m);
public static native double gsl_matrix_min(@Const gsl_matrix m);
public static native void gsl_matrix_minmax(@Const gsl_matrix m, DoublePointer min_out, DoublePointer max_out);
public static native void gsl_matrix_minmax(@Const gsl_matrix m, DoubleBuffer min_out, DoubleBuffer max_out);
public static native void gsl_matrix_minmax(@Const gsl_matrix m, double[] min_out, double[] max_out);
public static native void gsl_matrix_max_index(@Const gsl_matrix m, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native void gsl_matrix_min_index(@Const gsl_matrix m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin);
public static native void gsl_matrix_minmax_index(@Const gsl_matrix m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native int gsl_matrix_equal(@Const gsl_matrix a, @Const gsl_matrix b);
public static native int gsl_matrix_isnull(@Const gsl_matrix m);
public static native int gsl_matrix_ispos(@Const gsl_matrix m);
public static native int gsl_matrix_isneg(@Const gsl_matrix m);
public static native int gsl_matrix_isnonneg(@Const gsl_matrix m);
public static native int gsl_matrix_add(gsl_matrix a, @Const gsl_matrix b);
public static native int gsl_matrix_sub(gsl_matrix a, @Const gsl_matrix b);
public static native int gsl_matrix_mul_elements(gsl_matrix a, @Const gsl_matrix b);
public static native int gsl_matrix_div_elements(gsl_matrix a, @Const gsl_matrix b);
public static native int gsl_matrix_scale(gsl_matrix a, double x);
public static native int gsl_matrix_add_constant(gsl_matrix a, double x);
public static native int gsl_matrix_add_diagonal(gsl_matrix a, double x);
/***********************************************************************/
/* The functions below are obsolete */
/***********************************************************************/
public static native int gsl_matrix_get_row(gsl_vector v, @Const gsl_matrix m, @Cast("const size_t") long i);
public static native int gsl_matrix_get_col(gsl_vector v, @Const gsl_matrix m, @Cast("const size_t") long j);
public static native int gsl_matrix_set_row(gsl_matrix m, @Cast("const size_t") long i, @Const gsl_vector v);
public static native int gsl_matrix_set_col(gsl_matrix m, @Cast("const size_t") long j, @Const gsl_vector v);
/***********************************************************************/
/* inline functions if you are using GCC */
/* */ public static native double gsl_matrix_get(@Const gsl_matrix m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native void gsl_matrix_set(gsl_matrix m, @Cast("const size_t") long i, @Cast("const size_t") long j, double x);
/* */ public static native DoublePointer gsl_matrix_ptr(gsl_matrix m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native @Const DoublePointer gsl_matrix_const_ptr(@Const gsl_matrix m, @Cast("const size_t") long i, @Cast("const size_t") long j);
// #ifdef HAVE_INLINE
// #endif
// #endif /* __GSL_MATRIX_DOUBLE_H__ */
// Parsed from gsl/gsl_matrix_float.h
/* matrix/gsl_matrix_float.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MATRIX_FLOAT_H__
// #define __GSL_MATRIX_FLOAT_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_matrix_float extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_matrix_float() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_matrix_float(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_matrix_float(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_matrix_float position(long position) {
return (gsl_matrix_float)super.position(position);
}
public native @Cast("size_t") long size1(); public native gsl_matrix_float size1(long size1);
public native @Cast("size_t") long size2(); public native gsl_matrix_float size2(long size2);
public native @Cast("size_t") long tda(); public native gsl_matrix_float tda(long tda);
public native FloatPointer data(); public native gsl_matrix_float data(FloatPointer data);
public native gsl_block_float block(); public native gsl_matrix_float block(gsl_block_float block);
public native int owner(); public native gsl_matrix_float owner(int owner);
}
public static class _gsl_matrix_float_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_float_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_float_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_float_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_float_view position(long position) {
return (_gsl_matrix_float_view)super.position(position);
}
public native @ByRef gsl_matrix_float matrix(); public native _gsl_matrix_float_view matrix(gsl_matrix_float matrix);
}
public static class _gsl_matrix_float_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_float_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_float_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_float_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_float_const_view position(long position) {
return (_gsl_matrix_float_const_view)super.position(position);
}
public native @ByRef gsl_matrix_float matrix(); public native _gsl_matrix_float_const_view matrix(gsl_matrix_float matrix);
}
/* Allocation */
public static native gsl_matrix_float gsl_matrix_float_alloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_float gsl_matrix_float_calloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_float gsl_matrix_float_alloc_from_block(gsl_block_float b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long d2);
public static native gsl_matrix_float gsl_matrix_float_alloc_from_matrix(gsl_matrix_float m,
@Cast("const size_t") long k1,
@Cast("const size_t") long k2,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native gsl_vector_float gsl_vector_float_alloc_row_from_matrix(gsl_matrix_float m,
@Cast("const size_t") long i);
public static native gsl_vector_float gsl_vector_float_alloc_col_from_matrix(gsl_matrix_float m,
@Cast("const size_t") long j);
public static native void gsl_matrix_float_free(gsl_matrix_float m);
/* Views */
public static native @ByVal _gsl_matrix_float_view gsl_matrix_float_submatrix(gsl_matrix_float m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_float_view gsl_matrix_float_row(gsl_matrix_float m, @Cast("const size_t") long i);
public static native @ByVal _gsl_vector_float_view gsl_matrix_float_column(gsl_matrix_float m, @Cast("const size_t") long j);
public static native @ByVal _gsl_vector_float_view gsl_matrix_float_diagonal(gsl_matrix_float m);
public static native @ByVal _gsl_vector_float_view gsl_matrix_float_subdiagonal(gsl_matrix_float m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_float_view gsl_matrix_float_superdiagonal(gsl_matrix_float m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_float_view gsl_matrix_float_subrow(gsl_matrix_float m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_float_view gsl_matrix_float_subcolumn(gsl_matrix_float m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_float_view gsl_matrix_float_view_array(FloatPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_float_view gsl_matrix_float_view_array(FloatBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_float_view gsl_matrix_float_view_array(float[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_float_view gsl_matrix_float_view_array_with_tda(FloatPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_float_view gsl_matrix_float_view_array_with_tda(FloatBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_float_view gsl_matrix_float_view_array_with_tda(float[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_float_view gsl_matrix_float_view_vector(gsl_vector_float v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_float_view gsl_matrix_float_view_vector_with_tda(gsl_vector_float v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_float_const_view gsl_matrix_float_const_submatrix(@Const gsl_matrix_float m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_float_const_view gsl_matrix_float_const_row(@Const gsl_matrix_float m,
@Cast("const size_t") long i);
public static native @ByVal _gsl_vector_float_const_view gsl_matrix_float_const_column(@Const gsl_matrix_float m,
@Cast("const size_t") long j);
public static native @ByVal _gsl_vector_float_const_view gsl_matrix_float_const_diagonal(@Const gsl_matrix_float m);
public static native @ByVal _gsl_vector_float_const_view gsl_matrix_float_const_subdiagonal(@Const gsl_matrix_float m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_float_const_view gsl_matrix_float_const_superdiagonal(@Const gsl_matrix_float m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_float_const_view gsl_matrix_float_const_subrow(@Const gsl_matrix_float m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_float_const_view gsl_matrix_float_const_subcolumn(@Const gsl_matrix_float m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_float_const_view gsl_matrix_float_const_view_array(@Const FloatPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_float_const_view gsl_matrix_float_const_view_array(@Const FloatBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_float_const_view gsl_matrix_float_const_view_array(@Const float[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_float_const_view gsl_matrix_float_const_view_array_with_tda(@Const FloatPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_float_const_view gsl_matrix_float_const_view_array_with_tda(@Const FloatBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_float_const_view gsl_matrix_float_const_view_array_with_tda(@Const float[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_float_const_view gsl_matrix_float_const_view_vector(@Const gsl_vector_float v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_float_const_view gsl_matrix_float_const_view_vector_with_tda(@Const gsl_vector_float v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
/* Operations */
public static native void gsl_matrix_float_set_zero(gsl_matrix_float m);
public static native void gsl_matrix_float_set_identity(gsl_matrix_float m);
public static native void gsl_matrix_float_set_all(gsl_matrix_float m, float x);
public static native int gsl_matrix_float_fread(@Cast("FILE*") Pointer stream, gsl_matrix_float m);
public static native int gsl_matrix_float_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_matrix_float m);
public static native int gsl_matrix_float_fscanf(@Cast("FILE*") Pointer stream, gsl_matrix_float m);
public static native int gsl_matrix_float_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_float m, @Cast("const char*") BytePointer format);
public static native int gsl_matrix_float_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_float m, String format);
public static native int gsl_matrix_float_memcpy(gsl_matrix_float dest, @Const gsl_matrix_float src);
public static native int gsl_matrix_float_swap(gsl_matrix_float m1, gsl_matrix_float m2);
public static native int gsl_matrix_float_tricpy(byte uplo_src, int copy_diag, gsl_matrix_float dest, @Const gsl_matrix_float src);
public static native int gsl_matrix_float_swap_rows(gsl_matrix_float m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_float_swap_columns(gsl_matrix_float m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_float_swap_rowcol(gsl_matrix_float m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_float_transpose(gsl_matrix_float m);
public static native int gsl_matrix_float_transpose_memcpy(gsl_matrix_float dest, @Const gsl_matrix_float src);
public static native int gsl_matrix_float_transpose_tricpy(byte uplo_src, int copy_diag, gsl_matrix_float dest, @Const gsl_matrix_float src);
public static native float gsl_matrix_float_max(@Const gsl_matrix_float m);
public static native float gsl_matrix_float_min(@Const gsl_matrix_float m);
public static native void gsl_matrix_float_minmax(@Const gsl_matrix_float m, FloatPointer min_out, FloatPointer max_out);
public static native void gsl_matrix_float_minmax(@Const gsl_matrix_float m, FloatBuffer min_out, FloatBuffer max_out);
public static native void gsl_matrix_float_minmax(@Const gsl_matrix_float m, float[] min_out, float[] max_out);
public static native void gsl_matrix_float_max_index(@Const gsl_matrix_float m, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native void gsl_matrix_float_min_index(@Const gsl_matrix_float m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin);
public static native void gsl_matrix_float_minmax_index(@Const gsl_matrix_float m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native int gsl_matrix_float_equal(@Const gsl_matrix_float a, @Const gsl_matrix_float b);
public static native int gsl_matrix_float_isnull(@Const gsl_matrix_float m);
public static native int gsl_matrix_float_ispos(@Const gsl_matrix_float m);
public static native int gsl_matrix_float_isneg(@Const gsl_matrix_float m);
public static native int gsl_matrix_float_isnonneg(@Const gsl_matrix_float m);
public static native int gsl_matrix_float_add(gsl_matrix_float a, @Const gsl_matrix_float b);
public static native int gsl_matrix_float_sub(gsl_matrix_float a, @Const gsl_matrix_float b);
public static native int gsl_matrix_float_mul_elements(gsl_matrix_float a, @Const gsl_matrix_float b);
public static native int gsl_matrix_float_div_elements(gsl_matrix_float a, @Const gsl_matrix_float b);
public static native int gsl_matrix_float_scale(gsl_matrix_float a, double x);
public static native int gsl_matrix_float_add_constant(gsl_matrix_float a, double x);
public static native int gsl_matrix_float_add_diagonal(gsl_matrix_float a, double x);
/***********************************************************************/
/* The functions below are obsolete */
/***********************************************************************/
public static native int gsl_matrix_float_get_row(gsl_vector_float v, @Const gsl_matrix_float m, @Cast("const size_t") long i);
public static native int gsl_matrix_float_get_col(gsl_vector_float v, @Const gsl_matrix_float m, @Cast("const size_t") long j);
public static native int gsl_matrix_float_set_row(gsl_matrix_float m, @Cast("const size_t") long i, @Const gsl_vector_float v);
public static native int gsl_matrix_float_set_col(gsl_matrix_float m, @Cast("const size_t") long j, @Const gsl_vector_float v);
/***********************************************************************/
/* inline functions if you are using GCC */
/* */ public static native float gsl_matrix_float_get(@Const gsl_matrix_float m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native void gsl_matrix_float_set(gsl_matrix_float m, @Cast("const size_t") long i, @Cast("const size_t") long j, float x);
/* */ public static native FloatPointer gsl_matrix_float_ptr(gsl_matrix_float m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native @Const FloatPointer gsl_matrix_float_const_ptr(@Const gsl_matrix_float m, @Cast("const size_t") long i, @Cast("const size_t") long j);
// #ifdef HAVE_INLINE
// #endif
// #endif /* __GSL_MATRIX_FLOAT_H__ */
// Parsed from gsl/gsl_matrix_ulong.h
/* matrix/gsl_matrix_ulong.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MATRIX_ULONG_H__
// #define __GSL_MATRIX_ULONG_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_matrix_ulong extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_matrix_ulong() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_matrix_ulong(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_matrix_ulong(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_matrix_ulong position(long position) {
return (gsl_matrix_ulong)super.position(position);
}
public native @Cast("size_t") long size1(); public native gsl_matrix_ulong size1(long size1);
public native @Cast("size_t") long size2(); public native gsl_matrix_ulong size2(long size2);
public native @Cast("size_t") long tda(); public native gsl_matrix_ulong tda(long tda);
public native @Cast("unsigned long*") CLongPointer data(); public native gsl_matrix_ulong data(CLongPointer data);
public native gsl_block_ulong block(); public native gsl_matrix_ulong block(gsl_block_ulong block);
public native int owner(); public native gsl_matrix_ulong owner(int owner);
}
public static class _gsl_matrix_ulong_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_ulong_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_ulong_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_ulong_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_ulong_view position(long position) {
return (_gsl_matrix_ulong_view)super.position(position);
}
public native @ByRef gsl_matrix_ulong matrix(); public native _gsl_matrix_ulong_view matrix(gsl_matrix_ulong matrix);
}
public static class _gsl_matrix_ulong_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_ulong_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_ulong_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_ulong_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_ulong_const_view position(long position) {
return (_gsl_matrix_ulong_const_view)super.position(position);
}
public native @ByRef gsl_matrix_ulong matrix(); public native _gsl_matrix_ulong_const_view matrix(gsl_matrix_ulong matrix);
}
/* Allocation */
public static native gsl_matrix_ulong gsl_matrix_ulong_alloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_ulong gsl_matrix_ulong_calloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_ulong gsl_matrix_ulong_alloc_from_block(gsl_block_ulong b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long d2);
public static native gsl_matrix_ulong gsl_matrix_ulong_alloc_from_matrix(gsl_matrix_ulong m,
@Cast("const size_t") long k1,
@Cast("const size_t") long k2,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native gsl_vector_ulong gsl_vector_ulong_alloc_row_from_matrix(gsl_matrix_ulong m,
@Cast("const size_t") long i);
public static native gsl_vector_ulong gsl_vector_ulong_alloc_col_from_matrix(gsl_matrix_ulong m,
@Cast("const size_t") long j);
public static native void gsl_matrix_ulong_free(gsl_matrix_ulong m);
/* Views */
public static native @ByVal _gsl_matrix_ulong_view gsl_matrix_ulong_submatrix(gsl_matrix_ulong m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_ulong_view gsl_matrix_ulong_row(gsl_matrix_ulong m, @Cast("const size_t") long i);
public static native @ByVal _gsl_vector_ulong_view gsl_matrix_ulong_column(gsl_matrix_ulong m, @Cast("const size_t") long j);
public static native @ByVal _gsl_vector_ulong_view gsl_matrix_ulong_diagonal(gsl_matrix_ulong m);
public static native @ByVal _gsl_vector_ulong_view gsl_matrix_ulong_subdiagonal(gsl_matrix_ulong m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_ulong_view gsl_matrix_ulong_superdiagonal(gsl_matrix_ulong m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_ulong_view gsl_matrix_ulong_subrow(gsl_matrix_ulong m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_ulong_view gsl_matrix_ulong_subcolumn(gsl_matrix_ulong m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_ulong_view gsl_matrix_ulong_view_array(@Cast("unsigned long*") CLongPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_ulong_view gsl_matrix_ulong_view_array_with_tda(@Cast("unsigned long*") CLongPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_ulong_view gsl_matrix_ulong_view_vector(gsl_vector_ulong v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_ulong_view gsl_matrix_ulong_view_vector_with_tda(gsl_vector_ulong v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_ulong_const_view gsl_matrix_ulong_const_submatrix(@Const gsl_matrix_ulong m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_ulong_const_view gsl_matrix_ulong_const_row(@Const gsl_matrix_ulong m,
@Cast("const size_t") long i);
public static native @ByVal _gsl_vector_ulong_const_view gsl_matrix_ulong_const_column(@Const gsl_matrix_ulong m,
@Cast("const size_t") long j);
public static native @ByVal _gsl_vector_ulong_const_view gsl_matrix_ulong_const_diagonal(@Const gsl_matrix_ulong m);
public static native @ByVal _gsl_vector_ulong_const_view gsl_matrix_ulong_const_subdiagonal(@Const gsl_matrix_ulong m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_ulong_const_view gsl_matrix_ulong_const_superdiagonal(@Const gsl_matrix_ulong m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_ulong_const_view gsl_matrix_ulong_const_subrow(@Const gsl_matrix_ulong m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_ulong_const_view gsl_matrix_ulong_const_subcolumn(@Const gsl_matrix_ulong m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_ulong_const_view gsl_matrix_ulong_const_view_array(@Cast("const unsigned long*") CLongPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_ulong_const_view gsl_matrix_ulong_const_view_array_with_tda(@Cast("const unsigned long*") CLongPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_ulong_const_view gsl_matrix_ulong_const_view_vector(@Const gsl_vector_ulong v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_ulong_const_view gsl_matrix_ulong_const_view_vector_with_tda(@Const gsl_vector_ulong v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
/* Operations */
public static native void gsl_matrix_ulong_set_zero(gsl_matrix_ulong m);
public static native void gsl_matrix_ulong_set_identity(gsl_matrix_ulong m);
public static native void gsl_matrix_ulong_set_all(gsl_matrix_ulong m, @Cast("unsigned long") long x);
public static native int gsl_matrix_ulong_fread(@Cast("FILE*") Pointer stream, gsl_matrix_ulong m);
public static native int gsl_matrix_ulong_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_matrix_ulong m);
public static native int gsl_matrix_ulong_fscanf(@Cast("FILE*") Pointer stream, gsl_matrix_ulong m);
public static native int gsl_matrix_ulong_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_ulong m, @Cast("const char*") BytePointer format);
public static native int gsl_matrix_ulong_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_ulong m, String format);
public static native int gsl_matrix_ulong_memcpy(gsl_matrix_ulong dest, @Const gsl_matrix_ulong src);
public static native int gsl_matrix_ulong_swap(gsl_matrix_ulong m1, gsl_matrix_ulong m2);
public static native int gsl_matrix_ulong_tricpy(byte uplo_src, int copy_diag, gsl_matrix_ulong dest, @Const gsl_matrix_ulong src);
public static native int gsl_matrix_ulong_swap_rows(gsl_matrix_ulong m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_ulong_swap_columns(gsl_matrix_ulong m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_ulong_swap_rowcol(gsl_matrix_ulong m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_ulong_transpose(gsl_matrix_ulong m);
public static native int gsl_matrix_ulong_transpose_memcpy(gsl_matrix_ulong dest, @Const gsl_matrix_ulong src);
public static native int gsl_matrix_ulong_transpose_tricpy(byte uplo_src, int copy_diag, gsl_matrix_ulong dest, @Const gsl_matrix_ulong src);
public static native @Cast("unsigned long") long gsl_matrix_ulong_max(@Const gsl_matrix_ulong m);
public static native @Cast("unsigned long") long gsl_matrix_ulong_min(@Const gsl_matrix_ulong m);
public static native void gsl_matrix_ulong_minmax(@Const gsl_matrix_ulong m, @Cast("unsigned long*") CLongPointer min_out, @Cast("unsigned long*") CLongPointer max_out);
public static native void gsl_matrix_ulong_max_index(@Const gsl_matrix_ulong m, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native void gsl_matrix_ulong_min_index(@Const gsl_matrix_ulong m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin);
public static native void gsl_matrix_ulong_minmax_index(@Const gsl_matrix_ulong m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native int gsl_matrix_ulong_equal(@Const gsl_matrix_ulong a, @Const gsl_matrix_ulong b);
public static native int gsl_matrix_ulong_isnull(@Const gsl_matrix_ulong m);
public static native int gsl_matrix_ulong_ispos(@Const gsl_matrix_ulong m);
public static native int gsl_matrix_ulong_isneg(@Const gsl_matrix_ulong m);
public static native int gsl_matrix_ulong_isnonneg(@Const gsl_matrix_ulong m);
public static native int gsl_matrix_ulong_add(gsl_matrix_ulong a, @Const gsl_matrix_ulong b);
public static native int gsl_matrix_ulong_sub(gsl_matrix_ulong a, @Const gsl_matrix_ulong b);
public static native int gsl_matrix_ulong_mul_elements(gsl_matrix_ulong a, @Const gsl_matrix_ulong b);
public static native int gsl_matrix_ulong_div_elements(gsl_matrix_ulong a, @Const gsl_matrix_ulong b);
public static native int gsl_matrix_ulong_scale(gsl_matrix_ulong a, double x);
public static native int gsl_matrix_ulong_add_constant(gsl_matrix_ulong a, double x);
public static native int gsl_matrix_ulong_add_diagonal(gsl_matrix_ulong a, double x);
/***********************************************************************/
/* The functions below are obsolete */
/***********************************************************************/
public static native int gsl_matrix_ulong_get_row(gsl_vector_ulong v, @Const gsl_matrix_ulong m, @Cast("const size_t") long i);
public static native int gsl_matrix_ulong_get_col(gsl_vector_ulong v, @Const gsl_matrix_ulong m, @Cast("const size_t") long j);
public static native int gsl_matrix_ulong_set_row(gsl_matrix_ulong m, @Cast("const size_t") long i, @Const gsl_vector_ulong v);
public static native int gsl_matrix_ulong_set_col(gsl_matrix_ulong m, @Cast("const size_t") long j, @Const gsl_vector_ulong v);
/***********************************************************************/
/* inline functions if you are using GCC */
/* */ public static native @Cast("unsigned long") long gsl_matrix_ulong_get(@Const gsl_matrix_ulong m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native void gsl_matrix_ulong_set(gsl_matrix_ulong m, @Cast("const size_t") long i, @Cast("const size_t") long j, @Cast("const unsigned long") long x);
/* */ public static native @Cast("unsigned long*") CLongPointer gsl_matrix_ulong_ptr(gsl_matrix_ulong m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native @Cast("const unsigned long*") CLongPointer gsl_matrix_ulong_const_ptr(@Const gsl_matrix_ulong m, @Cast("const size_t") long i, @Cast("const size_t") long j);
// #ifdef HAVE_INLINE
// #endif
// #endif /* __GSL_MATRIX_ULONG_H__ */
// Parsed from gsl/gsl_matrix_long.h
/* matrix/gsl_matrix_long.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MATRIX_LONG_H__
// #define __GSL_MATRIX_LONG_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_matrix_long extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_matrix_long() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_matrix_long(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_matrix_long(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_matrix_long position(long position) {
return (gsl_matrix_long)super.position(position);
}
public native @Cast("size_t") long size1(); public native gsl_matrix_long size1(long size1);
public native @Cast("size_t") long size2(); public native gsl_matrix_long size2(long size2);
public native @Cast("size_t") long tda(); public native gsl_matrix_long tda(long tda);
public native CLongPointer data(); public native gsl_matrix_long data(CLongPointer data);
public native gsl_block_long block(); public native gsl_matrix_long block(gsl_block_long block);
public native int owner(); public native gsl_matrix_long owner(int owner);
}
public static class _gsl_matrix_long_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_long_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_long_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_long_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_long_view position(long position) {
return (_gsl_matrix_long_view)super.position(position);
}
public native @ByRef gsl_matrix_long matrix(); public native _gsl_matrix_long_view matrix(gsl_matrix_long matrix);
}
public static class _gsl_matrix_long_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_long_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_long_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_long_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_long_const_view position(long position) {
return (_gsl_matrix_long_const_view)super.position(position);
}
public native @ByRef gsl_matrix_long matrix(); public native _gsl_matrix_long_const_view matrix(gsl_matrix_long matrix);
}
/* Allocation */
public static native gsl_matrix_long gsl_matrix_long_alloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_long gsl_matrix_long_calloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_long gsl_matrix_long_alloc_from_block(gsl_block_long b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long d2);
public static native gsl_matrix_long gsl_matrix_long_alloc_from_matrix(gsl_matrix_long m,
@Cast("const size_t") long k1,
@Cast("const size_t") long k2,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native gsl_vector_long gsl_vector_long_alloc_row_from_matrix(gsl_matrix_long m,
@Cast("const size_t") long i);
public static native gsl_vector_long gsl_vector_long_alloc_col_from_matrix(gsl_matrix_long m,
@Cast("const size_t") long j);
public static native void gsl_matrix_long_free(gsl_matrix_long m);
/* Views */
public static native @ByVal _gsl_matrix_long_view gsl_matrix_long_submatrix(gsl_matrix_long m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_long_view gsl_matrix_long_row(gsl_matrix_long m, @Cast("const size_t") long i);
public static native @ByVal _gsl_vector_long_view gsl_matrix_long_column(gsl_matrix_long m, @Cast("const size_t") long j);
public static native @ByVal _gsl_vector_long_view gsl_matrix_long_diagonal(gsl_matrix_long m);
public static native @ByVal _gsl_vector_long_view gsl_matrix_long_subdiagonal(gsl_matrix_long m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_long_view gsl_matrix_long_superdiagonal(gsl_matrix_long m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_long_view gsl_matrix_long_subrow(gsl_matrix_long m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_long_view gsl_matrix_long_subcolumn(gsl_matrix_long m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_long_view gsl_matrix_long_view_array(CLongPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_long_view gsl_matrix_long_view_array_with_tda(CLongPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_long_view gsl_matrix_long_view_vector(gsl_vector_long v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_long_view gsl_matrix_long_view_vector_with_tda(gsl_vector_long v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_long_const_view gsl_matrix_long_const_submatrix(@Const gsl_matrix_long m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_long_const_view gsl_matrix_long_const_row(@Const gsl_matrix_long m,
@Cast("const size_t") long i);
public static native @ByVal _gsl_vector_long_const_view gsl_matrix_long_const_column(@Const gsl_matrix_long m,
@Cast("const size_t") long j);
public static native @ByVal _gsl_vector_long_const_view gsl_matrix_long_const_diagonal(@Const gsl_matrix_long m);
public static native @ByVal _gsl_vector_long_const_view gsl_matrix_long_const_subdiagonal(@Const gsl_matrix_long m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_long_const_view gsl_matrix_long_const_superdiagonal(@Const gsl_matrix_long m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_long_const_view gsl_matrix_long_const_subrow(@Const gsl_matrix_long m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_long_const_view gsl_matrix_long_const_subcolumn(@Const gsl_matrix_long m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_long_const_view gsl_matrix_long_const_view_array(@Const CLongPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_long_const_view gsl_matrix_long_const_view_array_with_tda(@Const CLongPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_long_const_view gsl_matrix_long_const_view_vector(@Const gsl_vector_long v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_long_const_view gsl_matrix_long_const_view_vector_with_tda(@Const gsl_vector_long v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
/* Operations */
public static native void gsl_matrix_long_set_zero(gsl_matrix_long m);
public static native void gsl_matrix_long_set_identity(gsl_matrix_long m);
public static native void gsl_matrix_long_set_all(gsl_matrix_long m, long x);
public static native int gsl_matrix_long_fread(@Cast("FILE*") Pointer stream, gsl_matrix_long m);
public static native int gsl_matrix_long_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_matrix_long m);
public static native int gsl_matrix_long_fscanf(@Cast("FILE*") Pointer stream, gsl_matrix_long m);
public static native int gsl_matrix_long_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_long m, @Cast("const char*") BytePointer format);
public static native int gsl_matrix_long_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_long m, String format);
public static native int gsl_matrix_long_memcpy(gsl_matrix_long dest, @Const gsl_matrix_long src);
public static native int gsl_matrix_long_swap(gsl_matrix_long m1, gsl_matrix_long m2);
public static native int gsl_matrix_long_tricpy(byte uplo_src, int copy_diag, gsl_matrix_long dest, @Const gsl_matrix_long src);
public static native int gsl_matrix_long_swap_rows(gsl_matrix_long m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_long_swap_columns(gsl_matrix_long m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_long_swap_rowcol(gsl_matrix_long m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_long_transpose(gsl_matrix_long m);
public static native int gsl_matrix_long_transpose_memcpy(gsl_matrix_long dest, @Const gsl_matrix_long src);
public static native int gsl_matrix_long_transpose_tricpy(byte uplo_src, int copy_diag, gsl_matrix_long dest, @Const gsl_matrix_long src);
public static native long gsl_matrix_long_max(@Const gsl_matrix_long m);
public static native long gsl_matrix_long_min(@Const gsl_matrix_long m);
public static native void gsl_matrix_long_minmax(@Const gsl_matrix_long m, CLongPointer min_out, CLongPointer max_out);
public static native void gsl_matrix_long_max_index(@Const gsl_matrix_long m, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native void gsl_matrix_long_min_index(@Const gsl_matrix_long m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin);
public static native void gsl_matrix_long_minmax_index(@Const gsl_matrix_long m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native int gsl_matrix_long_equal(@Const gsl_matrix_long a, @Const gsl_matrix_long b);
public static native int gsl_matrix_long_isnull(@Const gsl_matrix_long m);
public static native int gsl_matrix_long_ispos(@Const gsl_matrix_long m);
public static native int gsl_matrix_long_isneg(@Const gsl_matrix_long m);
public static native int gsl_matrix_long_isnonneg(@Const gsl_matrix_long m);
public static native int gsl_matrix_long_add(gsl_matrix_long a, @Const gsl_matrix_long b);
public static native int gsl_matrix_long_sub(gsl_matrix_long a, @Const gsl_matrix_long b);
public static native int gsl_matrix_long_mul_elements(gsl_matrix_long a, @Const gsl_matrix_long b);
public static native int gsl_matrix_long_div_elements(gsl_matrix_long a, @Const gsl_matrix_long b);
public static native int gsl_matrix_long_scale(gsl_matrix_long a, double x);
public static native int gsl_matrix_long_add_constant(gsl_matrix_long a, double x);
public static native int gsl_matrix_long_add_diagonal(gsl_matrix_long a, double x);
/***********************************************************************/
/* The functions below are obsolete */
/***********************************************************************/
public static native int gsl_matrix_long_get_row(gsl_vector_long v, @Const gsl_matrix_long m, @Cast("const size_t") long i);
public static native int gsl_matrix_long_get_col(gsl_vector_long v, @Const gsl_matrix_long m, @Cast("const size_t") long j);
public static native int gsl_matrix_long_set_row(gsl_matrix_long m, @Cast("const size_t") long i, @Const gsl_vector_long v);
public static native int gsl_matrix_long_set_col(gsl_matrix_long m, @Cast("const size_t") long j, @Const gsl_vector_long v);
/***********************************************************************/
/* inline functions if you are using GCC */
/* */ public static native long gsl_matrix_long_get(@Const gsl_matrix_long m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native void gsl_matrix_long_set(gsl_matrix_long m, @Cast("const size_t") long i, @Cast("const size_t") long j, long x);
/* */ public static native CLongPointer gsl_matrix_long_ptr(gsl_matrix_long m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native @Const CLongPointer gsl_matrix_long_const_ptr(@Const gsl_matrix_long m, @Cast("const size_t") long i, @Cast("const size_t") long j);
// #ifdef HAVE_INLINE
// #endif
// #endif /* __GSL_MATRIX_LONG_H__ */
// Parsed from gsl/gsl_matrix_uint.h
/* matrix/gsl_matrix_uint.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MATRIX_UINT_H__
// #define __GSL_MATRIX_UINT_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_matrix_uint extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_matrix_uint() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_matrix_uint(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_matrix_uint(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_matrix_uint position(long position) {
return (gsl_matrix_uint)super.position(position);
}
public native @Cast("size_t") long size1(); public native gsl_matrix_uint size1(long size1);
public native @Cast("size_t") long size2(); public native gsl_matrix_uint size2(long size2);
public native @Cast("size_t") long tda(); public native gsl_matrix_uint tda(long tda);
public native @Cast("unsigned int*") IntPointer data(); public native gsl_matrix_uint data(IntPointer data);
public native gsl_block_uint block(); public native gsl_matrix_uint block(gsl_block_uint block);
public native int owner(); public native gsl_matrix_uint owner(int owner);
}
public static class _gsl_matrix_uint_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_uint_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_uint_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_uint_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_uint_view position(long position) {
return (_gsl_matrix_uint_view)super.position(position);
}
public native @ByRef gsl_matrix_uint matrix(); public native _gsl_matrix_uint_view matrix(gsl_matrix_uint matrix);
}
public static class _gsl_matrix_uint_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_uint_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_uint_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_uint_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_uint_const_view position(long position) {
return (_gsl_matrix_uint_const_view)super.position(position);
}
public native @ByRef gsl_matrix_uint matrix(); public native _gsl_matrix_uint_const_view matrix(gsl_matrix_uint matrix);
}
/* Allocation */
public static native gsl_matrix_uint gsl_matrix_uint_alloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_uint gsl_matrix_uint_calloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_uint gsl_matrix_uint_alloc_from_block(gsl_block_uint b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long d2);
public static native gsl_matrix_uint gsl_matrix_uint_alloc_from_matrix(gsl_matrix_uint m,
@Cast("const size_t") long k1,
@Cast("const size_t") long k2,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native gsl_vector_uint gsl_vector_uint_alloc_row_from_matrix(gsl_matrix_uint m,
@Cast("const size_t") long i);
public static native gsl_vector_uint gsl_vector_uint_alloc_col_from_matrix(gsl_matrix_uint m,
@Cast("const size_t") long j);
public static native void gsl_matrix_uint_free(gsl_matrix_uint m);
/* Views */
public static native @ByVal _gsl_matrix_uint_view gsl_matrix_uint_submatrix(gsl_matrix_uint m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_uint_view gsl_matrix_uint_row(gsl_matrix_uint m, @Cast("const size_t") long i);
public static native @ByVal _gsl_vector_uint_view gsl_matrix_uint_column(gsl_matrix_uint m, @Cast("const size_t") long j);
public static native @ByVal _gsl_vector_uint_view gsl_matrix_uint_diagonal(gsl_matrix_uint m);
public static native @ByVal _gsl_vector_uint_view gsl_matrix_uint_subdiagonal(gsl_matrix_uint m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_uint_view gsl_matrix_uint_superdiagonal(gsl_matrix_uint m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_uint_view gsl_matrix_uint_subrow(gsl_matrix_uint m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_uint_view gsl_matrix_uint_subcolumn(gsl_matrix_uint m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_uint_view gsl_matrix_uint_view_array(@Cast("unsigned int*") IntPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uint_view gsl_matrix_uint_view_array(@Cast("unsigned int*") IntBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uint_view gsl_matrix_uint_view_array(@Cast("unsigned int*") int[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uint_view gsl_matrix_uint_view_array_with_tda(@Cast("unsigned int*") IntPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uint_view gsl_matrix_uint_view_array_with_tda(@Cast("unsigned int*") IntBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uint_view gsl_matrix_uint_view_array_with_tda(@Cast("unsigned int*") int[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uint_view gsl_matrix_uint_view_vector(gsl_vector_uint v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uint_view gsl_matrix_uint_view_vector_with_tda(gsl_vector_uint v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uint_const_view gsl_matrix_uint_const_submatrix(@Const gsl_matrix_uint m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_uint_const_view gsl_matrix_uint_const_row(@Const gsl_matrix_uint m,
@Cast("const size_t") long i);
public static native @ByVal _gsl_vector_uint_const_view gsl_matrix_uint_const_column(@Const gsl_matrix_uint m,
@Cast("const size_t") long j);
public static native @ByVal _gsl_vector_uint_const_view gsl_matrix_uint_const_diagonal(@Const gsl_matrix_uint m);
public static native @ByVal _gsl_vector_uint_const_view gsl_matrix_uint_const_subdiagonal(@Const gsl_matrix_uint m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_uint_const_view gsl_matrix_uint_const_superdiagonal(@Const gsl_matrix_uint m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_uint_const_view gsl_matrix_uint_const_subrow(@Const gsl_matrix_uint m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_uint_const_view gsl_matrix_uint_const_subcolumn(@Const gsl_matrix_uint m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_uint_const_view gsl_matrix_uint_const_view_array(@Cast("const unsigned int*") IntPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uint_const_view gsl_matrix_uint_const_view_array(@Cast("const unsigned int*") IntBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uint_const_view gsl_matrix_uint_const_view_array(@Cast("const unsigned int*") int[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uint_const_view gsl_matrix_uint_const_view_array_with_tda(@Cast("const unsigned int*") IntPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uint_const_view gsl_matrix_uint_const_view_array_with_tda(@Cast("const unsigned int*") IntBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uint_const_view gsl_matrix_uint_const_view_array_with_tda(@Cast("const unsigned int*") int[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uint_const_view gsl_matrix_uint_const_view_vector(@Const gsl_vector_uint v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uint_const_view gsl_matrix_uint_const_view_vector_with_tda(@Const gsl_vector_uint v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
/* Operations */
public static native void gsl_matrix_uint_set_zero(gsl_matrix_uint m);
public static native void gsl_matrix_uint_set_identity(gsl_matrix_uint m);
public static native void gsl_matrix_uint_set_all(gsl_matrix_uint m, @Cast("unsigned int") int x);
public static native int gsl_matrix_uint_fread(@Cast("FILE*") Pointer stream, gsl_matrix_uint m);
public static native int gsl_matrix_uint_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_matrix_uint m);
public static native int gsl_matrix_uint_fscanf(@Cast("FILE*") Pointer stream, gsl_matrix_uint m);
public static native int gsl_matrix_uint_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_uint m, @Cast("const char*") BytePointer format);
public static native int gsl_matrix_uint_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_uint m, String format);
public static native int gsl_matrix_uint_memcpy(gsl_matrix_uint dest, @Const gsl_matrix_uint src);
public static native int gsl_matrix_uint_swap(gsl_matrix_uint m1, gsl_matrix_uint m2);
public static native int gsl_matrix_uint_tricpy(byte uplo_src, int copy_diag, gsl_matrix_uint dest, @Const gsl_matrix_uint src);
public static native int gsl_matrix_uint_swap_rows(gsl_matrix_uint m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_uint_swap_columns(gsl_matrix_uint m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_uint_swap_rowcol(gsl_matrix_uint m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_uint_transpose(gsl_matrix_uint m);
public static native int gsl_matrix_uint_transpose_memcpy(gsl_matrix_uint dest, @Const gsl_matrix_uint src);
public static native int gsl_matrix_uint_transpose_tricpy(byte uplo_src, int copy_diag, gsl_matrix_uint dest, @Const gsl_matrix_uint src);
public static native @Cast("unsigned int") int gsl_matrix_uint_max(@Const gsl_matrix_uint m);
public static native @Cast("unsigned int") int gsl_matrix_uint_min(@Const gsl_matrix_uint m);
public static native void gsl_matrix_uint_minmax(@Const gsl_matrix_uint m, @Cast("unsigned int*") IntPointer min_out, @Cast("unsigned int*") IntPointer max_out);
public static native void gsl_matrix_uint_minmax(@Const gsl_matrix_uint m, @Cast("unsigned int*") IntBuffer min_out, @Cast("unsigned int*") IntBuffer max_out);
public static native void gsl_matrix_uint_minmax(@Const gsl_matrix_uint m, @Cast("unsigned int*") int[] min_out, @Cast("unsigned int*") int[] max_out);
public static native void gsl_matrix_uint_max_index(@Const gsl_matrix_uint m, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native void gsl_matrix_uint_min_index(@Const gsl_matrix_uint m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin);
public static native void gsl_matrix_uint_minmax_index(@Const gsl_matrix_uint m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native int gsl_matrix_uint_equal(@Const gsl_matrix_uint a, @Const gsl_matrix_uint b);
public static native int gsl_matrix_uint_isnull(@Const gsl_matrix_uint m);
public static native int gsl_matrix_uint_ispos(@Const gsl_matrix_uint m);
public static native int gsl_matrix_uint_isneg(@Const gsl_matrix_uint m);
public static native int gsl_matrix_uint_isnonneg(@Const gsl_matrix_uint m);
public static native int gsl_matrix_uint_add(gsl_matrix_uint a, @Const gsl_matrix_uint b);
public static native int gsl_matrix_uint_sub(gsl_matrix_uint a, @Const gsl_matrix_uint b);
public static native int gsl_matrix_uint_mul_elements(gsl_matrix_uint a, @Const gsl_matrix_uint b);
public static native int gsl_matrix_uint_div_elements(gsl_matrix_uint a, @Const gsl_matrix_uint b);
public static native int gsl_matrix_uint_scale(gsl_matrix_uint a, double x);
public static native int gsl_matrix_uint_add_constant(gsl_matrix_uint a, double x);
public static native int gsl_matrix_uint_add_diagonal(gsl_matrix_uint a, double x);
/***********************************************************************/
/* The functions below are obsolete */
/***********************************************************************/
public static native int gsl_matrix_uint_get_row(gsl_vector_uint v, @Const gsl_matrix_uint m, @Cast("const size_t") long i);
public static native int gsl_matrix_uint_get_col(gsl_vector_uint v, @Const gsl_matrix_uint m, @Cast("const size_t") long j);
public static native int gsl_matrix_uint_set_row(gsl_matrix_uint m, @Cast("const size_t") long i, @Const gsl_vector_uint v);
public static native int gsl_matrix_uint_set_col(gsl_matrix_uint m, @Cast("const size_t") long j, @Const gsl_vector_uint v);
/***********************************************************************/
/* inline functions if you are using GCC */
/* */ public static native @Cast("unsigned int") int gsl_matrix_uint_get(@Const gsl_matrix_uint m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native void gsl_matrix_uint_set(gsl_matrix_uint m, @Cast("const size_t") long i, @Cast("const size_t") long j, @Cast("const unsigned int") int x);
/* */ public static native @Cast("unsigned int*") IntPointer gsl_matrix_uint_ptr(gsl_matrix_uint m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native @Cast("const unsigned int*") IntPointer gsl_matrix_uint_const_ptr(@Const gsl_matrix_uint m, @Cast("const size_t") long i, @Cast("const size_t") long j);
// #ifdef HAVE_INLINE
// #endif
// #endif /* __GSL_MATRIX_UINT_H__ */
// Parsed from gsl/gsl_matrix_int.h
/* matrix/gsl_matrix_int.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MATRIX_INT_H__
// #define __GSL_MATRIX_INT_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_matrix_int extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_matrix_int() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_matrix_int(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_matrix_int(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_matrix_int position(long position) {
return (gsl_matrix_int)super.position(position);
}
public native @Cast("size_t") long size1(); public native gsl_matrix_int size1(long size1);
public native @Cast("size_t") long size2(); public native gsl_matrix_int size2(long size2);
public native @Cast("size_t") long tda(); public native gsl_matrix_int tda(long tda);
public native IntPointer data(); public native gsl_matrix_int data(IntPointer data);
public native gsl_block_int block(); public native gsl_matrix_int block(gsl_block_int block);
public native int owner(); public native gsl_matrix_int owner(int owner);
}
public static class _gsl_matrix_int_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_int_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_int_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_int_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_int_view position(long position) {
return (_gsl_matrix_int_view)super.position(position);
}
public native @ByRef gsl_matrix_int matrix(); public native _gsl_matrix_int_view matrix(gsl_matrix_int matrix);
}
public static class _gsl_matrix_int_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_int_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_int_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_int_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_int_const_view position(long position) {
return (_gsl_matrix_int_const_view)super.position(position);
}
public native @ByRef gsl_matrix_int matrix(); public native _gsl_matrix_int_const_view matrix(gsl_matrix_int matrix);
}
/* Allocation */
public static native gsl_matrix_int gsl_matrix_int_alloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_int gsl_matrix_int_calloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_int gsl_matrix_int_alloc_from_block(gsl_block_int b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long d2);
public static native gsl_matrix_int gsl_matrix_int_alloc_from_matrix(gsl_matrix_int m,
@Cast("const size_t") long k1,
@Cast("const size_t") long k2,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native gsl_vector_int gsl_vector_int_alloc_row_from_matrix(gsl_matrix_int m,
@Cast("const size_t") long i);
public static native gsl_vector_int gsl_vector_int_alloc_col_from_matrix(gsl_matrix_int m,
@Cast("const size_t") long j);
public static native void gsl_matrix_int_free(gsl_matrix_int m);
/* Views */
public static native @ByVal _gsl_matrix_int_view gsl_matrix_int_submatrix(gsl_matrix_int m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_int_view gsl_matrix_int_row(gsl_matrix_int m, @Cast("const size_t") long i);
public static native @ByVal _gsl_vector_int_view gsl_matrix_int_column(gsl_matrix_int m, @Cast("const size_t") long j);
public static native @ByVal _gsl_vector_int_view gsl_matrix_int_diagonal(gsl_matrix_int m);
public static native @ByVal _gsl_vector_int_view gsl_matrix_int_subdiagonal(gsl_matrix_int m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_int_view gsl_matrix_int_superdiagonal(gsl_matrix_int m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_int_view gsl_matrix_int_subrow(gsl_matrix_int m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_int_view gsl_matrix_int_subcolumn(gsl_matrix_int m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_int_view gsl_matrix_int_view_array(IntPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_int_view gsl_matrix_int_view_array(IntBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_int_view gsl_matrix_int_view_array(int[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_int_view gsl_matrix_int_view_array_with_tda(IntPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_int_view gsl_matrix_int_view_array_with_tda(IntBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_int_view gsl_matrix_int_view_array_with_tda(int[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_int_view gsl_matrix_int_view_vector(gsl_vector_int v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_int_view gsl_matrix_int_view_vector_with_tda(gsl_vector_int v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_int_const_view gsl_matrix_int_const_submatrix(@Const gsl_matrix_int m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_int_const_view gsl_matrix_int_const_row(@Const gsl_matrix_int m,
@Cast("const size_t") long i);
public static native @ByVal _gsl_vector_int_const_view gsl_matrix_int_const_column(@Const gsl_matrix_int m,
@Cast("const size_t") long j);
public static native @ByVal _gsl_vector_int_const_view gsl_matrix_int_const_diagonal(@Const gsl_matrix_int m);
public static native @ByVal _gsl_vector_int_const_view gsl_matrix_int_const_subdiagonal(@Const gsl_matrix_int m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_int_const_view gsl_matrix_int_const_superdiagonal(@Const gsl_matrix_int m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_int_const_view gsl_matrix_int_const_subrow(@Const gsl_matrix_int m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_int_const_view gsl_matrix_int_const_subcolumn(@Const gsl_matrix_int m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_int_const_view gsl_matrix_int_const_view_array(@Const IntPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_int_const_view gsl_matrix_int_const_view_array(@Const IntBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_int_const_view gsl_matrix_int_const_view_array(@Const int[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_int_const_view gsl_matrix_int_const_view_array_with_tda(@Const IntPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_int_const_view gsl_matrix_int_const_view_array_with_tda(@Const IntBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_int_const_view gsl_matrix_int_const_view_array_with_tda(@Const int[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_int_const_view gsl_matrix_int_const_view_vector(@Const gsl_vector_int v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_int_const_view gsl_matrix_int_const_view_vector_with_tda(@Const gsl_vector_int v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
/* Operations */
public static native void gsl_matrix_int_set_zero(gsl_matrix_int m);
public static native void gsl_matrix_int_set_identity(gsl_matrix_int m);
public static native void gsl_matrix_int_set_all(gsl_matrix_int m, int x);
public static native int gsl_matrix_int_fread(@Cast("FILE*") Pointer stream, gsl_matrix_int m);
public static native int gsl_matrix_int_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_matrix_int m);
public static native int gsl_matrix_int_fscanf(@Cast("FILE*") Pointer stream, gsl_matrix_int m);
public static native int gsl_matrix_int_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_int m, @Cast("const char*") BytePointer format);
public static native int gsl_matrix_int_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_int m, String format);
public static native int gsl_matrix_int_memcpy(gsl_matrix_int dest, @Const gsl_matrix_int src);
public static native int gsl_matrix_int_swap(gsl_matrix_int m1, gsl_matrix_int m2);
public static native int gsl_matrix_int_tricpy(byte uplo_src, int copy_diag, gsl_matrix_int dest, @Const gsl_matrix_int src);
public static native int gsl_matrix_int_swap_rows(gsl_matrix_int m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_int_swap_columns(gsl_matrix_int m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_int_swap_rowcol(gsl_matrix_int m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_int_transpose(gsl_matrix_int m);
public static native int gsl_matrix_int_transpose_memcpy(gsl_matrix_int dest, @Const gsl_matrix_int src);
public static native int gsl_matrix_int_transpose_tricpy(byte uplo_src, int copy_diag, gsl_matrix_int dest, @Const gsl_matrix_int src);
public static native int gsl_matrix_int_max(@Const gsl_matrix_int m);
public static native int gsl_matrix_int_min(@Const gsl_matrix_int m);
public static native void gsl_matrix_int_minmax(@Const gsl_matrix_int m, IntPointer min_out, IntPointer max_out);
public static native void gsl_matrix_int_minmax(@Const gsl_matrix_int m, IntBuffer min_out, IntBuffer max_out);
public static native void gsl_matrix_int_minmax(@Const gsl_matrix_int m, int[] min_out, int[] max_out);
public static native void gsl_matrix_int_max_index(@Const gsl_matrix_int m, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native void gsl_matrix_int_min_index(@Const gsl_matrix_int m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin);
public static native void gsl_matrix_int_minmax_index(@Const gsl_matrix_int m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native int gsl_matrix_int_equal(@Const gsl_matrix_int a, @Const gsl_matrix_int b);
public static native int gsl_matrix_int_isnull(@Const gsl_matrix_int m);
public static native int gsl_matrix_int_ispos(@Const gsl_matrix_int m);
public static native int gsl_matrix_int_isneg(@Const gsl_matrix_int m);
public static native int gsl_matrix_int_isnonneg(@Const gsl_matrix_int m);
public static native int gsl_matrix_int_add(gsl_matrix_int a, @Const gsl_matrix_int b);
public static native int gsl_matrix_int_sub(gsl_matrix_int a, @Const gsl_matrix_int b);
public static native int gsl_matrix_int_mul_elements(gsl_matrix_int a, @Const gsl_matrix_int b);
public static native int gsl_matrix_int_div_elements(gsl_matrix_int a, @Const gsl_matrix_int b);
public static native int gsl_matrix_int_scale(gsl_matrix_int a, double x);
public static native int gsl_matrix_int_add_constant(gsl_matrix_int a, double x);
public static native int gsl_matrix_int_add_diagonal(gsl_matrix_int a, double x);
/***********************************************************************/
/* The functions below are obsolete */
/***********************************************************************/
public static native int gsl_matrix_int_get_row(gsl_vector_int v, @Const gsl_matrix_int m, @Cast("const size_t") long i);
public static native int gsl_matrix_int_get_col(gsl_vector_int v, @Const gsl_matrix_int m, @Cast("const size_t") long j);
public static native int gsl_matrix_int_set_row(gsl_matrix_int m, @Cast("const size_t") long i, @Const gsl_vector_int v);
public static native int gsl_matrix_int_set_col(gsl_matrix_int m, @Cast("const size_t") long j, @Const gsl_vector_int v);
/***********************************************************************/
/* inline functions if you are using GCC */
/* */ public static native int gsl_matrix_int_get(@Const gsl_matrix_int m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native void gsl_matrix_int_set(gsl_matrix_int m, @Cast("const size_t") long i, @Cast("const size_t") long j, int x);
/* */ public static native IntPointer gsl_matrix_int_ptr(gsl_matrix_int m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native @Const IntPointer gsl_matrix_int_const_ptr(@Const gsl_matrix_int m, @Cast("const size_t") long i, @Cast("const size_t") long j);
// #ifdef HAVE_INLINE
// #endif
// #endif /* __GSL_MATRIX_INT_H__ */
// Parsed from gsl/gsl_matrix_ushort.h
/* matrix/gsl_matrix_ushort.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MATRIX_USHORT_H__
// #define __GSL_MATRIX_USHORT_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_matrix_ushort extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_matrix_ushort() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_matrix_ushort(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_matrix_ushort(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_matrix_ushort position(long position) {
return (gsl_matrix_ushort)super.position(position);
}
public native @Cast("size_t") long size1(); public native gsl_matrix_ushort size1(long size1);
public native @Cast("size_t") long size2(); public native gsl_matrix_ushort size2(long size2);
public native @Cast("size_t") long tda(); public native gsl_matrix_ushort tda(long tda);
public native @Cast("unsigned short*") ShortPointer data(); public native gsl_matrix_ushort data(ShortPointer data);
public native gsl_block_ushort block(); public native gsl_matrix_ushort block(gsl_block_ushort block);
public native int owner(); public native gsl_matrix_ushort owner(int owner);
}
public static class _gsl_matrix_ushort_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_ushort_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_ushort_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_ushort_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_ushort_view position(long position) {
return (_gsl_matrix_ushort_view)super.position(position);
}
public native @ByRef gsl_matrix_ushort matrix(); public native _gsl_matrix_ushort_view matrix(gsl_matrix_ushort matrix);
}
public static class _gsl_matrix_ushort_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_ushort_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_ushort_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_ushort_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_ushort_const_view position(long position) {
return (_gsl_matrix_ushort_const_view)super.position(position);
}
public native @ByRef gsl_matrix_ushort matrix(); public native _gsl_matrix_ushort_const_view matrix(gsl_matrix_ushort matrix);
}
/* Allocation */
public static native gsl_matrix_ushort gsl_matrix_ushort_alloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_ushort gsl_matrix_ushort_calloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_ushort gsl_matrix_ushort_alloc_from_block(gsl_block_ushort b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long d2);
public static native gsl_matrix_ushort gsl_matrix_ushort_alloc_from_matrix(gsl_matrix_ushort m,
@Cast("const size_t") long k1,
@Cast("const size_t") long k2,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native gsl_vector_ushort gsl_vector_ushort_alloc_row_from_matrix(gsl_matrix_ushort m,
@Cast("const size_t") long i);
public static native gsl_vector_ushort gsl_vector_ushort_alloc_col_from_matrix(gsl_matrix_ushort m,
@Cast("const size_t") long j);
public static native void gsl_matrix_ushort_free(gsl_matrix_ushort m);
/* Views */
public static native @ByVal _gsl_matrix_ushort_view gsl_matrix_ushort_submatrix(gsl_matrix_ushort m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_ushort_view gsl_matrix_ushort_row(gsl_matrix_ushort m, @Cast("const size_t") long i);
public static native @ByVal _gsl_vector_ushort_view gsl_matrix_ushort_column(gsl_matrix_ushort m, @Cast("const size_t") long j);
public static native @ByVal _gsl_vector_ushort_view gsl_matrix_ushort_diagonal(gsl_matrix_ushort m);
public static native @ByVal _gsl_vector_ushort_view gsl_matrix_ushort_subdiagonal(gsl_matrix_ushort m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_ushort_view gsl_matrix_ushort_superdiagonal(gsl_matrix_ushort m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_ushort_view gsl_matrix_ushort_subrow(gsl_matrix_ushort m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_ushort_view gsl_matrix_ushort_subcolumn(gsl_matrix_ushort m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_ushort_view gsl_matrix_ushort_view_array(@Cast("unsigned short*") ShortPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_ushort_view gsl_matrix_ushort_view_array(@Cast("unsigned short*") ShortBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_ushort_view gsl_matrix_ushort_view_array(@Cast("unsigned short*") short[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_ushort_view gsl_matrix_ushort_view_array_with_tda(@Cast("unsigned short*") ShortPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_ushort_view gsl_matrix_ushort_view_array_with_tda(@Cast("unsigned short*") ShortBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_ushort_view gsl_matrix_ushort_view_array_with_tda(@Cast("unsigned short*") short[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_ushort_view gsl_matrix_ushort_view_vector(gsl_vector_ushort v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_ushort_view gsl_matrix_ushort_view_vector_with_tda(gsl_vector_ushort v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_ushort_const_view gsl_matrix_ushort_const_submatrix(@Const gsl_matrix_ushort m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_ushort_const_view gsl_matrix_ushort_const_row(@Const gsl_matrix_ushort m,
@Cast("const size_t") long i);
public static native @ByVal _gsl_vector_ushort_const_view gsl_matrix_ushort_const_column(@Const gsl_matrix_ushort m,
@Cast("const size_t") long j);
public static native @ByVal _gsl_vector_ushort_const_view gsl_matrix_ushort_const_diagonal(@Const gsl_matrix_ushort m);
public static native @ByVal _gsl_vector_ushort_const_view gsl_matrix_ushort_const_subdiagonal(@Const gsl_matrix_ushort m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_ushort_const_view gsl_matrix_ushort_const_superdiagonal(@Const gsl_matrix_ushort m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_ushort_const_view gsl_matrix_ushort_const_subrow(@Const gsl_matrix_ushort m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_ushort_const_view gsl_matrix_ushort_const_subcolumn(@Const gsl_matrix_ushort m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_ushort_const_view gsl_matrix_ushort_const_view_array(@Cast("const unsigned short*") ShortPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_ushort_const_view gsl_matrix_ushort_const_view_array(@Cast("const unsigned short*") ShortBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_ushort_const_view gsl_matrix_ushort_const_view_array(@Cast("const unsigned short*") short[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_ushort_const_view gsl_matrix_ushort_const_view_array_with_tda(@Cast("const unsigned short*") ShortPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_ushort_const_view gsl_matrix_ushort_const_view_array_with_tda(@Cast("const unsigned short*") ShortBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_ushort_const_view gsl_matrix_ushort_const_view_array_with_tda(@Cast("const unsigned short*") short[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_ushort_const_view gsl_matrix_ushort_const_view_vector(@Const gsl_vector_ushort v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_ushort_const_view gsl_matrix_ushort_const_view_vector_with_tda(@Const gsl_vector_ushort v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
/* Operations */
public static native void gsl_matrix_ushort_set_zero(gsl_matrix_ushort m);
public static native void gsl_matrix_ushort_set_identity(gsl_matrix_ushort m);
public static native void gsl_matrix_ushort_set_all(gsl_matrix_ushort m, @Cast("unsigned short") short x);
public static native int gsl_matrix_ushort_fread(@Cast("FILE*") Pointer stream, gsl_matrix_ushort m);
public static native int gsl_matrix_ushort_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_matrix_ushort m);
public static native int gsl_matrix_ushort_fscanf(@Cast("FILE*") Pointer stream, gsl_matrix_ushort m);
public static native int gsl_matrix_ushort_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_ushort m, @Cast("const char*") BytePointer format);
public static native int gsl_matrix_ushort_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_ushort m, String format);
public static native int gsl_matrix_ushort_memcpy(gsl_matrix_ushort dest, @Const gsl_matrix_ushort src);
public static native int gsl_matrix_ushort_swap(gsl_matrix_ushort m1, gsl_matrix_ushort m2);
public static native int gsl_matrix_ushort_tricpy(byte uplo_src, int copy_diag, gsl_matrix_ushort dest, @Const gsl_matrix_ushort src);
public static native int gsl_matrix_ushort_swap_rows(gsl_matrix_ushort m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_ushort_swap_columns(gsl_matrix_ushort m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_ushort_swap_rowcol(gsl_matrix_ushort m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_ushort_transpose(gsl_matrix_ushort m);
public static native int gsl_matrix_ushort_transpose_memcpy(gsl_matrix_ushort dest, @Const gsl_matrix_ushort src);
public static native int gsl_matrix_ushort_transpose_tricpy(byte uplo_src, int copy_diag, gsl_matrix_ushort dest, @Const gsl_matrix_ushort src);
public static native @Cast("unsigned short") short gsl_matrix_ushort_max(@Const gsl_matrix_ushort m);
public static native @Cast("unsigned short") short gsl_matrix_ushort_min(@Const gsl_matrix_ushort m);
public static native void gsl_matrix_ushort_minmax(@Const gsl_matrix_ushort m, @Cast("unsigned short*") ShortPointer min_out, @Cast("unsigned short*") ShortPointer max_out);
public static native void gsl_matrix_ushort_minmax(@Const gsl_matrix_ushort m, @Cast("unsigned short*") ShortBuffer min_out, @Cast("unsigned short*") ShortBuffer max_out);
public static native void gsl_matrix_ushort_minmax(@Const gsl_matrix_ushort m, @Cast("unsigned short*") short[] min_out, @Cast("unsigned short*") short[] max_out);
public static native void gsl_matrix_ushort_max_index(@Const gsl_matrix_ushort m, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native void gsl_matrix_ushort_min_index(@Const gsl_matrix_ushort m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin);
public static native void gsl_matrix_ushort_minmax_index(@Const gsl_matrix_ushort m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native int gsl_matrix_ushort_equal(@Const gsl_matrix_ushort a, @Const gsl_matrix_ushort b);
public static native int gsl_matrix_ushort_isnull(@Const gsl_matrix_ushort m);
public static native int gsl_matrix_ushort_ispos(@Const gsl_matrix_ushort m);
public static native int gsl_matrix_ushort_isneg(@Const gsl_matrix_ushort m);
public static native int gsl_matrix_ushort_isnonneg(@Const gsl_matrix_ushort m);
public static native int gsl_matrix_ushort_add(gsl_matrix_ushort a, @Const gsl_matrix_ushort b);
public static native int gsl_matrix_ushort_sub(gsl_matrix_ushort a, @Const gsl_matrix_ushort b);
public static native int gsl_matrix_ushort_mul_elements(gsl_matrix_ushort a, @Const gsl_matrix_ushort b);
public static native int gsl_matrix_ushort_div_elements(gsl_matrix_ushort a, @Const gsl_matrix_ushort b);
public static native int gsl_matrix_ushort_scale(gsl_matrix_ushort a, double x);
public static native int gsl_matrix_ushort_add_constant(gsl_matrix_ushort a, double x);
public static native int gsl_matrix_ushort_add_diagonal(gsl_matrix_ushort a, double x);
/***********************************************************************/
/* The functions below are obsolete */
/***********************************************************************/
public static native int gsl_matrix_ushort_get_row(gsl_vector_ushort v, @Const gsl_matrix_ushort m, @Cast("const size_t") long i);
public static native int gsl_matrix_ushort_get_col(gsl_vector_ushort v, @Const gsl_matrix_ushort m, @Cast("const size_t") long j);
public static native int gsl_matrix_ushort_set_row(gsl_matrix_ushort m, @Cast("const size_t") long i, @Const gsl_vector_ushort v);
public static native int gsl_matrix_ushort_set_col(gsl_matrix_ushort m, @Cast("const size_t") long j, @Const gsl_vector_ushort v);
/***********************************************************************/
/* inline functions if you are using GCC */
/* */ public static native @Cast("unsigned short") short gsl_matrix_ushort_get(@Const gsl_matrix_ushort m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native void gsl_matrix_ushort_set(gsl_matrix_ushort m, @Cast("const size_t") long i, @Cast("const size_t") long j, @Cast("const unsigned short") short x);
/* */ public static native @Cast("unsigned short*") ShortPointer gsl_matrix_ushort_ptr(gsl_matrix_ushort m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native @Cast("const unsigned short*") ShortPointer gsl_matrix_ushort_const_ptr(@Const gsl_matrix_ushort m, @Cast("const size_t") long i, @Cast("const size_t") long j);
// #ifdef HAVE_INLINE
// #endif
// #endif /* __GSL_MATRIX_USHORT_H__ */
// Parsed from gsl/gsl_matrix_short.h
/* matrix/gsl_matrix_short.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MATRIX_SHORT_H__
// #define __GSL_MATRIX_SHORT_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_matrix_short extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_matrix_short() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_matrix_short(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_matrix_short(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_matrix_short position(long position) {
return (gsl_matrix_short)super.position(position);
}
public native @Cast("size_t") long size1(); public native gsl_matrix_short size1(long size1);
public native @Cast("size_t") long size2(); public native gsl_matrix_short size2(long size2);
public native @Cast("size_t") long tda(); public native gsl_matrix_short tda(long tda);
public native ShortPointer data(); public native gsl_matrix_short data(ShortPointer data);
public native gsl_block_short block(); public native gsl_matrix_short block(gsl_block_short block);
public native int owner(); public native gsl_matrix_short owner(int owner);
}
public static class _gsl_matrix_short_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_short_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_short_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_short_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_short_view position(long position) {
return (_gsl_matrix_short_view)super.position(position);
}
public native @ByRef gsl_matrix_short matrix(); public native _gsl_matrix_short_view matrix(gsl_matrix_short matrix);
}
public static class _gsl_matrix_short_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_short_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_short_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_short_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_short_const_view position(long position) {
return (_gsl_matrix_short_const_view)super.position(position);
}
public native @ByRef gsl_matrix_short matrix(); public native _gsl_matrix_short_const_view matrix(gsl_matrix_short matrix);
}
/* Allocation */
public static native gsl_matrix_short gsl_matrix_short_alloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_short gsl_matrix_short_calloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_short gsl_matrix_short_alloc_from_block(gsl_block_short b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long d2);
public static native gsl_matrix_short gsl_matrix_short_alloc_from_matrix(gsl_matrix_short m,
@Cast("const size_t") long k1,
@Cast("const size_t") long k2,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native gsl_vector_short gsl_vector_short_alloc_row_from_matrix(gsl_matrix_short m,
@Cast("const size_t") long i);
public static native gsl_vector_short gsl_vector_short_alloc_col_from_matrix(gsl_matrix_short m,
@Cast("const size_t") long j);
public static native void gsl_matrix_short_free(gsl_matrix_short m);
/* Views */
public static native @ByVal _gsl_matrix_short_view gsl_matrix_short_submatrix(gsl_matrix_short m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_short_view gsl_matrix_short_row(gsl_matrix_short m, @Cast("const size_t") long i);
public static native @ByVal _gsl_vector_short_view gsl_matrix_short_column(gsl_matrix_short m, @Cast("const size_t") long j);
public static native @ByVal _gsl_vector_short_view gsl_matrix_short_diagonal(gsl_matrix_short m);
public static native @ByVal _gsl_vector_short_view gsl_matrix_short_subdiagonal(gsl_matrix_short m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_short_view gsl_matrix_short_superdiagonal(gsl_matrix_short m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_short_view gsl_matrix_short_subrow(gsl_matrix_short m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_short_view gsl_matrix_short_subcolumn(gsl_matrix_short m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_short_view gsl_matrix_short_view_array(ShortPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_short_view gsl_matrix_short_view_array(ShortBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_short_view gsl_matrix_short_view_array(short[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_short_view gsl_matrix_short_view_array_with_tda(ShortPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_short_view gsl_matrix_short_view_array_with_tda(ShortBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_short_view gsl_matrix_short_view_array_with_tda(short[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_short_view gsl_matrix_short_view_vector(gsl_vector_short v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_short_view gsl_matrix_short_view_vector_with_tda(gsl_vector_short v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_short_const_view gsl_matrix_short_const_submatrix(@Const gsl_matrix_short m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_short_const_view gsl_matrix_short_const_row(@Const gsl_matrix_short m,
@Cast("const size_t") long i);
public static native @ByVal _gsl_vector_short_const_view gsl_matrix_short_const_column(@Const gsl_matrix_short m,
@Cast("const size_t") long j);
public static native @ByVal _gsl_vector_short_const_view gsl_matrix_short_const_diagonal(@Const gsl_matrix_short m);
public static native @ByVal _gsl_vector_short_const_view gsl_matrix_short_const_subdiagonal(@Const gsl_matrix_short m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_short_const_view gsl_matrix_short_const_superdiagonal(@Const gsl_matrix_short m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_short_const_view gsl_matrix_short_const_subrow(@Const gsl_matrix_short m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_short_const_view gsl_matrix_short_const_subcolumn(@Const gsl_matrix_short m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_short_const_view gsl_matrix_short_const_view_array(@Const ShortPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_short_const_view gsl_matrix_short_const_view_array(@Const ShortBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_short_const_view gsl_matrix_short_const_view_array(@Const short[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_short_const_view gsl_matrix_short_const_view_array_with_tda(@Const ShortPointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_short_const_view gsl_matrix_short_const_view_array_with_tda(@Const ShortBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_short_const_view gsl_matrix_short_const_view_array_with_tda(@Const short[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_short_const_view gsl_matrix_short_const_view_vector(@Const gsl_vector_short v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_short_const_view gsl_matrix_short_const_view_vector_with_tda(@Const gsl_vector_short v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
/* Operations */
public static native void gsl_matrix_short_set_zero(gsl_matrix_short m);
public static native void gsl_matrix_short_set_identity(gsl_matrix_short m);
public static native void gsl_matrix_short_set_all(gsl_matrix_short m, short x);
public static native int gsl_matrix_short_fread(@Cast("FILE*") Pointer stream, gsl_matrix_short m);
public static native int gsl_matrix_short_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_matrix_short m);
public static native int gsl_matrix_short_fscanf(@Cast("FILE*") Pointer stream, gsl_matrix_short m);
public static native int gsl_matrix_short_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_short m, @Cast("const char*") BytePointer format);
public static native int gsl_matrix_short_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_short m, String format);
public static native int gsl_matrix_short_memcpy(gsl_matrix_short dest, @Const gsl_matrix_short src);
public static native int gsl_matrix_short_swap(gsl_matrix_short m1, gsl_matrix_short m2);
public static native int gsl_matrix_short_tricpy(byte uplo_src, int copy_diag, gsl_matrix_short dest, @Const gsl_matrix_short src);
public static native int gsl_matrix_short_swap_rows(gsl_matrix_short m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_short_swap_columns(gsl_matrix_short m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_short_swap_rowcol(gsl_matrix_short m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_short_transpose(gsl_matrix_short m);
public static native int gsl_matrix_short_transpose_memcpy(gsl_matrix_short dest, @Const gsl_matrix_short src);
public static native int gsl_matrix_short_transpose_tricpy(byte uplo_src, int copy_diag, gsl_matrix_short dest, @Const gsl_matrix_short src);
public static native short gsl_matrix_short_max(@Const gsl_matrix_short m);
public static native short gsl_matrix_short_min(@Const gsl_matrix_short m);
public static native void gsl_matrix_short_minmax(@Const gsl_matrix_short m, ShortPointer min_out, ShortPointer max_out);
public static native void gsl_matrix_short_minmax(@Const gsl_matrix_short m, ShortBuffer min_out, ShortBuffer max_out);
public static native void gsl_matrix_short_minmax(@Const gsl_matrix_short m, short[] min_out, short[] max_out);
public static native void gsl_matrix_short_max_index(@Const gsl_matrix_short m, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native void gsl_matrix_short_min_index(@Const gsl_matrix_short m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin);
public static native void gsl_matrix_short_minmax_index(@Const gsl_matrix_short m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native int gsl_matrix_short_equal(@Const gsl_matrix_short a, @Const gsl_matrix_short b);
public static native int gsl_matrix_short_isnull(@Const gsl_matrix_short m);
public static native int gsl_matrix_short_ispos(@Const gsl_matrix_short m);
public static native int gsl_matrix_short_isneg(@Const gsl_matrix_short m);
public static native int gsl_matrix_short_isnonneg(@Const gsl_matrix_short m);
public static native int gsl_matrix_short_add(gsl_matrix_short a, @Const gsl_matrix_short b);
public static native int gsl_matrix_short_sub(gsl_matrix_short a, @Const gsl_matrix_short b);
public static native int gsl_matrix_short_mul_elements(gsl_matrix_short a, @Const gsl_matrix_short b);
public static native int gsl_matrix_short_div_elements(gsl_matrix_short a, @Const gsl_matrix_short b);
public static native int gsl_matrix_short_scale(gsl_matrix_short a, double x);
public static native int gsl_matrix_short_add_constant(gsl_matrix_short a, double x);
public static native int gsl_matrix_short_add_diagonal(gsl_matrix_short a, double x);
/***********************************************************************/
/* The functions below are obsolete */
/***********************************************************************/
public static native int gsl_matrix_short_get_row(gsl_vector_short v, @Const gsl_matrix_short m, @Cast("const size_t") long i);
public static native int gsl_matrix_short_get_col(gsl_vector_short v, @Const gsl_matrix_short m, @Cast("const size_t") long j);
public static native int gsl_matrix_short_set_row(gsl_matrix_short m, @Cast("const size_t") long i, @Const gsl_vector_short v);
public static native int gsl_matrix_short_set_col(gsl_matrix_short m, @Cast("const size_t") long j, @Const gsl_vector_short v);
/***********************************************************************/
/* inline functions if you are using GCC */
/* */ public static native short gsl_matrix_short_get(@Const gsl_matrix_short m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native void gsl_matrix_short_set(gsl_matrix_short m, @Cast("const size_t") long i, @Cast("const size_t") long j, short x);
/* */ public static native ShortPointer gsl_matrix_short_ptr(gsl_matrix_short m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native @Const ShortPointer gsl_matrix_short_const_ptr(@Const gsl_matrix_short m, @Cast("const size_t") long i, @Cast("const size_t") long j);
// #ifdef HAVE_INLINE
// #endif
// #endif /* __GSL_MATRIX_SHORT_H__ */
// Parsed from gsl/gsl_matrix_uchar.h
/* matrix/gsl_matrix_uchar.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MATRIX_UCHAR_H__
// #define __GSL_MATRIX_UCHAR_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_matrix_uchar extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_matrix_uchar() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_matrix_uchar(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_matrix_uchar(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_matrix_uchar position(long position) {
return (gsl_matrix_uchar)super.position(position);
}
public native @Cast("size_t") long size1(); public native gsl_matrix_uchar size1(long size1);
public native @Cast("size_t") long size2(); public native gsl_matrix_uchar size2(long size2);
public native @Cast("size_t") long tda(); public native gsl_matrix_uchar tda(long tda);
public native @Cast("unsigned char*") BytePointer data(); public native gsl_matrix_uchar data(BytePointer data);
public native gsl_block_uchar block(); public native gsl_matrix_uchar block(gsl_block_uchar block);
public native int owner(); public native gsl_matrix_uchar owner(int owner);
}
public static class _gsl_matrix_uchar_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_uchar_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_uchar_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_uchar_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_uchar_view position(long position) {
return (_gsl_matrix_uchar_view)super.position(position);
}
public native @ByRef gsl_matrix_uchar matrix(); public native _gsl_matrix_uchar_view matrix(gsl_matrix_uchar matrix);
}
public static class _gsl_matrix_uchar_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_uchar_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_uchar_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_uchar_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_uchar_const_view position(long position) {
return (_gsl_matrix_uchar_const_view)super.position(position);
}
public native @ByRef gsl_matrix_uchar matrix(); public native _gsl_matrix_uchar_const_view matrix(gsl_matrix_uchar matrix);
}
/* Allocation */
public static native gsl_matrix_uchar gsl_matrix_uchar_alloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_uchar gsl_matrix_uchar_calloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_uchar gsl_matrix_uchar_alloc_from_block(gsl_block_uchar b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long d2);
public static native gsl_matrix_uchar gsl_matrix_uchar_alloc_from_matrix(gsl_matrix_uchar m,
@Cast("const size_t") long k1,
@Cast("const size_t") long k2,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native gsl_vector_uchar gsl_vector_uchar_alloc_row_from_matrix(gsl_matrix_uchar m,
@Cast("const size_t") long i);
public static native gsl_vector_uchar gsl_vector_uchar_alloc_col_from_matrix(gsl_matrix_uchar m,
@Cast("const size_t") long j);
public static native void gsl_matrix_uchar_free(gsl_matrix_uchar m);
/* Views */
public static native @ByVal _gsl_matrix_uchar_view gsl_matrix_uchar_submatrix(gsl_matrix_uchar m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_uchar_view gsl_matrix_uchar_row(gsl_matrix_uchar m, @Cast("const size_t") long i);
public static native @ByVal _gsl_vector_uchar_view gsl_matrix_uchar_column(gsl_matrix_uchar m, @Cast("const size_t") long j);
public static native @ByVal _gsl_vector_uchar_view gsl_matrix_uchar_diagonal(gsl_matrix_uchar m);
public static native @ByVal _gsl_vector_uchar_view gsl_matrix_uchar_subdiagonal(gsl_matrix_uchar m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_uchar_view gsl_matrix_uchar_superdiagonal(gsl_matrix_uchar m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_uchar_view gsl_matrix_uchar_subrow(gsl_matrix_uchar m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_uchar_view gsl_matrix_uchar_subcolumn(gsl_matrix_uchar m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_uchar_view gsl_matrix_uchar_view_array(@Cast("unsigned char*") BytePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uchar_view gsl_matrix_uchar_view_array(@Cast("unsigned char*") ByteBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uchar_view gsl_matrix_uchar_view_array(@Cast("unsigned char*") byte[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uchar_view gsl_matrix_uchar_view_array_with_tda(@Cast("unsigned char*") BytePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uchar_view gsl_matrix_uchar_view_array_with_tda(@Cast("unsigned char*") ByteBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uchar_view gsl_matrix_uchar_view_array_with_tda(@Cast("unsigned char*") byte[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uchar_view gsl_matrix_uchar_view_vector(gsl_vector_uchar v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uchar_view gsl_matrix_uchar_view_vector_with_tda(gsl_vector_uchar v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uchar_const_view gsl_matrix_uchar_const_submatrix(@Const gsl_matrix_uchar m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_uchar_const_view gsl_matrix_uchar_const_row(@Const gsl_matrix_uchar m,
@Cast("const size_t") long i);
public static native @ByVal _gsl_vector_uchar_const_view gsl_matrix_uchar_const_column(@Const gsl_matrix_uchar m,
@Cast("const size_t") long j);
public static native @ByVal _gsl_vector_uchar_const_view gsl_matrix_uchar_const_diagonal(@Const gsl_matrix_uchar m);
public static native @ByVal _gsl_vector_uchar_const_view gsl_matrix_uchar_const_subdiagonal(@Const gsl_matrix_uchar m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_uchar_const_view gsl_matrix_uchar_const_superdiagonal(@Const gsl_matrix_uchar m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_uchar_const_view gsl_matrix_uchar_const_subrow(@Const gsl_matrix_uchar m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_uchar_const_view gsl_matrix_uchar_const_subcolumn(@Const gsl_matrix_uchar m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_uchar_const_view gsl_matrix_uchar_const_view_array(@Cast("const unsigned char*") BytePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uchar_const_view gsl_matrix_uchar_const_view_array(@Cast("const unsigned char*") ByteBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uchar_const_view gsl_matrix_uchar_const_view_array(@Cast("const unsigned char*") byte[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uchar_const_view gsl_matrix_uchar_const_view_array_with_tda(@Cast("const unsigned char*") BytePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uchar_const_view gsl_matrix_uchar_const_view_array_with_tda(@Cast("const unsigned char*") ByteBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uchar_const_view gsl_matrix_uchar_const_view_array_with_tda(@Cast("const unsigned char*") byte[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_uchar_const_view gsl_matrix_uchar_const_view_vector(@Const gsl_vector_uchar v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_uchar_const_view gsl_matrix_uchar_const_view_vector_with_tda(@Const gsl_vector_uchar v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
/* Operations */
public static native void gsl_matrix_uchar_set_zero(gsl_matrix_uchar m);
public static native void gsl_matrix_uchar_set_identity(gsl_matrix_uchar m);
public static native void gsl_matrix_uchar_set_all(gsl_matrix_uchar m, @Cast("unsigned char") byte x);
public static native int gsl_matrix_uchar_fread(@Cast("FILE*") Pointer stream, gsl_matrix_uchar m);
public static native int gsl_matrix_uchar_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_matrix_uchar m);
public static native int gsl_matrix_uchar_fscanf(@Cast("FILE*") Pointer stream, gsl_matrix_uchar m);
public static native int gsl_matrix_uchar_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_uchar m, @Cast("const char*") BytePointer format);
public static native int gsl_matrix_uchar_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_uchar m, String format);
public static native int gsl_matrix_uchar_memcpy(gsl_matrix_uchar dest, @Const gsl_matrix_uchar src);
public static native int gsl_matrix_uchar_swap(gsl_matrix_uchar m1, gsl_matrix_uchar m2);
public static native int gsl_matrix_uchar_tricpy(byte uplo_src, int copy_diag, gsl_matrix_uchar dest, @Const gsl_matrix_uchar src);
public static native int gsl_matrix_uchar_swap_rows(gsl_matrix_uchar m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_uchar_swap_columns(gsl_matrix_uchar m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_uchar_swap_rowcol(gsl_matrix_uchar m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_uchar_transpose(gsl_matrix_uchar m);
public static native int gsl_matrix_uchar_transpose_memcpy(gsl_matrix_uchar dest, @Const gsl_matrix_uchar src);
public static native int gsl_matrix_uchar_transpose_tricpy(byte uplo_src, int copy_diag, gsl_matrix_uchar dest, @Const gsl_matrix_uchar src);
public static native @Cast("unsigned char") byte gsl_matrix_uchar_max(@Const gsl_matrix_uchar m);
public static native @Cast("unsigned char") byte gsl_matrix_uchar_min(@Const gsl_matrix_uchar m);
public static native void gsl_matrix_uchar_minmax(@Const gsl_matrix_uchar m, @Cast("unsigned char*") BytePointer min_out, @Cast("unsigned char*") BytePointer max_out);
public static native void gsl_matrix_uchar_minmax(@Const gsl_matrix_uchar m, @Cast("unsigned char*") ByteBuffer min_out, @Cast("unsigned char*") ByteBuffer max_out);
public static native void gsl_matrix_uchar_minmax(@Const gsl_matrix_uchar m, @Cast("unsigned char*") byte[] min_out, @Cast("unsigned char*") byte[] max_out);
public static native void gsl_matrix_uchar_max_index(@Const gsl_matrix_uchar m, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native void gsl_matrix_uchar_min_index(@Const gsl_matrix_uchar m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin);
public static native void gsl_matrix_uchar_minmax_index(@Const gsl_matrix_uchar m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native int gsl_matrix_uchar_equal(@Const gsl_matrix_uchar a, @Const gsl_matrix_uchar b);
public static native int gsl_matrix_uchar_isnull(@Const gsl_matrix_uchar m);
public static native int gsl_matrix_uchar_ispos(@Const gsl_matrix_uchar m);
public static native int gsl_matrix_uchar_isneg(@Const gsl_matrix_uchar m);
public static native int gsl_matrix_uchar_isnonneg(@Const gsl_matrix_uchar m);
public static native int gsl_matrix_uchar_add(gsl_matrix_uchar a, @Const gsl_matrix_uchar b);
public static native int gsl_matrix_uchar_sub(gsl_matrix_uchar a, @Const gsl_matrix_uchar b);
public static native int gsl_matrix_uchar_mul_elements(gsl_matrix_uchar a, @Const gsl_matrix_uchar b);
public static native int gsl_matrix_uchar_div_elements(gsl_matrix_uchar a, @Const gsl_matrix_uchar b);
public static native int gsl_matrix_uchar_scale(gsl_matrix_uchar a, double x);
public static native int gsl_matrix_uchar_add_constant(gsl_matrix_uchar a, double x);
public static native int gsl_matrix_uchar_add_diagonal(gsl_matrix_uchar a, double x);
/***********************************************************************/
/* The functions below are obsolete */
/***********************************************************************/
public static native int gsl_matrix_uchar_get_row(gsl_vector_uchar v, @Const gsl_matrix_uchar m, @Cast("const size_t") long i);
public static native int gsl_matrix_uchar_get_col(gsl_vector_uchar v, @Const gsl_matrix_uchar m, @Cast("const size_t") long j);
public static native int gsl_matrix_uchar_set_row(gsl_matrix_uchar m, @Cast("const size_t") long i, @Const gsl_vector_uchar v);
public static native int gsl_matrix_uchar_set_col(gsl_matrix_uchar m, @Cast("const size_t") long j, @Const gsl_vector_uchar v);
/***********************************************************************/
/* inline functions if you are using GCC */
/* */ public static native @Cast("unsigned char") byte gsl_matrix_uchar_get(@Const gsl_matrix_uchar m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native void gsl_matrix_uchar_set(gsl_matrix_uchar m, @Cast("const size_t") long i, @Cast("const size_t") long j, @Cast("const unsigned char") byte x);
/* */ public static native @Cast("unsigned char*") BytePointer gsl_matrix_uchar_ptr(gsl_matrix_uchar m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native @Cast("const unsigned char*") BytePointer gsl_matrix_uchar_const_ptr(@Const gsl_matrix_uchar m, @Cast("const size_t") long i, @Cast("const size_t") long j);
// #ifdef HAVE_INLINE
// #endif
// #endif /* __GSL_MATRIX_UCHAR_H__ */
// Parsed from gsl/gsl_matrix_char.h
/* matrix/gsl_matrix_char.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_MATRIX_CHAR_H__
// #define __GSL_MATRIX_CHAR_H__
// #include
// #include
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_matrix_char extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_matrix_char() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_matrix_char(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_matrix_char(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_matrix_char position(long position) {
return (gsl_matrix_char)super.position(position);
}
public native @Cast("size_t") long size1(); public native gsl_matrix_char size1(long size1);
public native @Cast("size_t") long size2(); public native gsl_matrix_char size2(long size2);
public native @Cast("size_t") long tda(); public native gsl_matrix_char tda(long tda);
public native @Cast("char*") BytePointer data(); public native gsl_matrix_char data(BytePointer data);
public native gsl_block_char block(); public native gsl_matrix_char block(gsl_block_char block);
public native int owner(); public native gsl_matrix_char owner(int owner);
}
public static class _gsl_matrix_char_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_char_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_char_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_char_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_char_view position(long position) {
return (_gsl_matrix_char_view)super.position(position);
}
public native @ByRef gsl_matrix_char matrix(); public native _gsl_matrix_char_view matrix(gsl_matrix_char matrix);
}
public static class _gsl_matrix_char_const_view extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public _gsl_matrix_char_const_view() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public _gsl_matrix_char_const_view(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public _gsl_matrix_char_const_view(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public _gsl_matrix_char_const_view position(long position) {
return (_gsl_matrix_char_const_view)super.position(position);
}
public native @ByRef gsl_matrix_char matrix(); public native _gsl_matrix_char_const_view matrix(gsl_matrix_char matrix);
}
/* Allocation */
public static native gsl_matrix_char gsl_matrix_char_alloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_char gsl_matrix_char_calloc(@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native gsl_matrix_char gsl_matrix_char_alloc_from_block(gsl_block_char b,
@Cast("const size_t") long offset,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long d2);
public static native gsl_matrix_char gsl_matrix_char_alloc_from_matrix(gsl_matrix_char m,
@Cast("const size_t") long k1,
@Cast("const size_t") long k2,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native gsl_vector_char gsl_vector_char_alloc_row_from_matrix(gsl_matrix_char m,
@Cast("const size_t") long i);
public static native gsl_vector_char gsl_vector_char_alloc_col_from_matrix(gsl_matrix_char m,
@Cast("const size_t") long j);
public static native void gsl_matrix_char_free(gsl_matrix_char m);
/* Views */
public static native @ByVal _gsl_matrix_char_view gsl_matrix_char_submatrix(gsl_matrix_char m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_char_view gsl_matrix_char_row(gsl_matrix_char m, @Cast("const size_t") long i);
public static native @ByVal _gsl_vector_char_view gsl_matrix_char_column(gsl_matrix_char m, @Cast("const size_t") long j);
public static native @ByVal _gsl_vector_char_view gsl_matrix_char_diagonal(gsl_matrix_char m);
public static native @ByVal _gsl_vector_char_view gsl_matrix_char_subdiagonal(gsl_matrix_char m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_char_view gsl_matrix_char_superdiagonal(gsl_matrix_char m, @Cast("const size_t") long k);
public static native @ByVal _gsl_vector_char_view gsl_matrix_char_subrow(gsl_matrix_char m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_char_view gsl_matrix_char_subcolumn(gsl_matrix_char m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_char_view gsl_matrix_char_view_array(@Cast("char*") BytePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_char_view gsl_matrix_char_view_array(@Cast("char*") ByteBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_char_view gsl_matrix_char_view_array(@Cast("char*") byte[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_char_view gsl_matrix_char_view_array_with_tda(@Cast("char*") BytePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_char_view gsl_matrix_char_view_array_with_tda(@Cast("char*") ByteBuffer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_char_view gsl_matrix_char_view_array_with_tda(@Cast("char*") byte[] base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_char_view gsl_matrix_char_view_vector(gsl_vector_char v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_char_view gsl_matrix_char_view_vector_with_tda(gsl_vector_char v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_char_const_view gsl_matrix_char_const_submatrix(@Const gsl_matrix_char m,
@Cast("const size_t") long i, @Cast("const size_t") long j,
@Cast("const size_t") long n1, @Cast("const size_t") long n2);
public static native @ByVal _gsl_vector_char_const_view gsl_matrix_char_const_row(@Const gsl_matrix_char m,
@Cast("const size_t") long i);
public static native @ByVal _gsl_vector_char_const_view gsl_matrix_char_const_column(@Const gsl_matrix_char m,
@Cast("const size_t") long j);
public static native @ByVal _gsl_vector_char_const_view gsl_matrix_char_const_diagonal(@Const gsl_matrix_char m);
public static native @ByVal _gsl_vector_char_const_view gsl_matrix_char_const_subdiagonal(@Const gsl_matrix_char m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_char_const_view gsl_matrix_char_const_superdiagonal(@Const gsl_matrix_char m,
@Cast("const size_t") long k);
public static native @ByVal _gsl_vector_char_const_view gsl_matrix_char_const_subrow(@Const gsl_matrix_char m, @Cast("const size_t") long i,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_vector_char_const_view gsl_matrix_char_const_subcolumn(@Const gsl_matrix_char m, @Cast("const size_t") long j,
@Cast("const size_t") long offset, @Cast("const size_t") long n);
public static native @ByVal _gsl_matrix_char_const_view gsl_matrix_char_const_view_array(@Cast("const char*") BytePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_char_const_view gsl_matrix_char_const_view_array(String base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_char_const_view gsl_matrix_char_const_view_array_with_tda(@Cast("const char*") BytePointer base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_char_const_view gsl_matrix_char_const_view_array_with_tda(String base,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
public static native @ByVal _gsl_matrix_char_const_view gsl_matrix_char_const_view_vector(@Const gsl_vector_char v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2);
public static native @ByVal _gsl_matrix_char_const_view gsl_matrix_char_const_view_vector_with_tda(@Const gsl_vector_char v,
@Cast("const size_t") long n1,
@Cast("const size_t") long n2,
@Cast("const size_t") long tda);
/* Operations */
public static native void gsl_matrix_char_set_zero(gsl_matrix_char m);
public static native void gsl_matrix_char_set_identity(gsl_matrix_char m);
public static native void gsl_matrix_char_set_all(gsl_matrix_char m, @Cast("char") byte x);
public static native int gsl_matrix_char_fread(@Cast("FILE*") Pointer stream, gsl_matrix_char m);
public static native int gsl_matrix_char_fwrite(@Cast("FILE*") Pointer stream, @Const gsl_matrix_char m);
public static native int gsl_matrix_char_fscanf(@Cast("FILE*") Pointer stream, gsl_matrix_char m);
public static native int gsl_matrix_char_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_char m, @Cast("const char*") BytePointer format);
public static native int gsl_matrix_char_fprintf(@Cast("FILE*") Pointer stream, @Const gsl_matrix_char m, String format);
public static native int gsl_matrix_char_memcpy(gsl_matrix_char dest, @Const gsl_matrix_char src);
public static native int gsl_matrix_char_swap(gsl_matrix_char m1, gsl_matrix_char m2);
public static native int gsl_matrix_char_tricpy(byte uplo_src, int copy_diag, gsl_matrix_char dest, @Const gsl_matrix_char src);
public static native int gsl_matrix_char_swap_rows(gsl_matrix_char m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_char_swap_columns(gsl_matrix_char m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_char_swap_rowcol(gsl_matrix_char m, @Cast("const size_t") long i, @Cast("const size_t") long j);
public static native int gsl_matrix_char_transpose(gsl_matrix_char m);
public static native int gsl_matrix_char_transpose_memcpy(gsl_matrix_char dest, @Const gsl_matrix_char src);
public static native int gsl_matrix_char_transpose_tricpy(byte uplo_src, int copy_diag, gsl_matrix_char dest, @Const gsl_matrix_char src);
public static native @Cast("char") byte gsl_matrix_char_max(@Const gsl_matrix_char m);
public static native @Cast("char") byte gsl_matrix_char_min(@Const gsl_matrix_char m);
public static native void gsl_matrix_char_minmax(@Const gsl_matrix_char m, @Cast("char*") BytePointer min_out, @Cast("char*") BytePointer max_out);
public static native void gsl_matrix_char_minmax(@Const gsl_matrix_char m, @Cast("char*") ByteBuffer min_out, @Cast("char*") ByteBuffer max_out);
public static native void gsl_matrix_char_minmax(@Const gsl_matrix_char m, @Cast("char*") byte[] min_out, @Cast("char*") byte[] max_out);
public static native void gsl_matrix_char_max_index(@Const gsl_matrix_char m, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native void gsl_matrix_char_min_index(@Const gsl_matrix_char m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin);
public static native void gsl_matrix_char_minmax_index(@Const gsl_matrix_char m, @Cast("size_t*") SizeTPointer imin, @Cast("size_t*") SizeTPointer jmin, @Cast("size_t*") SizeTPointer imax, @Cast("size_t*") SizeTPointer jmax);
public static native int gsl_matrix_char_equal(@Const gsl_matrix_char a, @Const gsl_matrix_char b);
public static native int gsl_matrix_char_isnull(@Const gsl_matrix_char m);
public static native int gsl_matrix_char_ispos(@Const gsl_matrix_char m);
public static native int gsl_matrix_char_isneg(@Const gsl_matrix_char m);
public static native int gsl_matrix_char_isnonneg(@Const gsl_matrix_char m);
public static native int gsl_matrix_char_add(gsl_matrix_char a, @Const gsl_matrix_char b);
public static native int gsl_matrix_char_sub(gsl_matrix_char a, @Const gsl_matrix_char b);
public static native int gsl_matrix_char_mul_elements(gsl_matrix_char a, @Const gsl_matrix_char b);
public static native int gsl_matrix_char_div_elements(gsl_matrix_char a, @Const gsl_matrix_char b);
public static native int gsl_matrix_char_scale(gsl_matrix_char a, double x);
public static native int gsl_matrix_char_add_constant(gsl_matrix_char a, double x);
public static native int gsl_matrix_char_add_diagonal(gsl_matrix_char a, double x);
/***********************************************************************/
/* The functions below are obsolete */
/***********************************************************************/
public static native int gsl_matrix_char_get_row(gsl_vector_char v, @Const gsl_matrix_char m, @Cast("const size_t") long i);
public static native int gsl_matrix_char_get_col(gsl_vector_char v, @Const gsl_matrix_char m, @Cast("const size_t") long j);
public static native int gsl_matrix_char_set_row(gsl_matrix_char m, @Cast("const size_t") long i, @Const gsl_vector_char v);
public static native int gsl_matrix_char_set_col(gsl_matrix_char m, @Cast("const size_t") long j, @Const gsl_vector_char v);
/***********************************************************************/
/* inline functions if you are using GCC */
/* */ public static native @Cast("char") byte gsl_matrix_char_get(@Const gsl_matrix_char m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native void gsl_matrix_char_set(gsl_matrix_char m, @Cast("const size_t") long i, @Cast("const size_t") long j, byte x);
/* */ public static native @Cast("char*") BytePointer gsl_matrix_char_ptr(gsl_matrix_char m, @Cast("const size_t") long i, @Cast("const size_t") long j);
/* */ public static native @Cast("const char*") BytePointer gsl_matrix_char_const_ptr(@Const gsl_matrix_char m, @Cast("const size_t") long i, @Cast("const size_t") long j);
// #ifdef HAVE_INLINE
// #endif
// #endif /* __GSL_MATRIX_CHAR_H__ */
// Parsed from gsl/gsl_blas_types.h
/* blas/gsl_blas_types.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*
* Author: G. Jungman
*/
/* Based on draft BLAST C interface specification [Jul 7 1998]
*/
// #ifndef __GSL_BLAS_TYPES_H__
// #define __GSL_BLAS_TYPES_H__
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
/* typedef gsl_complex COMPLEX; */
// #endif /* __GSL_BLAS_TYPES_H__ */
// Parsed from gsl/gsl_blas.h
/* blas/gsl_blas.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*
* Author: G. Jungman
*/
// #ifndef __GSL_BLAS_H__
// #define __GSL_BLAS_H__
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
/* ========================================================================
* Level 1
* ========================================================================
*/
public static native int gsl_blas_sdsdot(float alpha,
@Const gsl_vector_float X,
@Const gsl_vector_float Y,
FloatPointer result
);
public static native int gsl_blas_sdsdot(float alpha,
@Const gsl_vector_float X,
@Const gsl_vector_float Y,
FloatBuffer result
);
public static native int gsl_blas_sdsdot(float alpha,
@Const gsl_vector_float X,
@Const gsl_vector_float Y,
float[] result
);
public static native int gsl_blas_dsdot(@Const gsl_vector_float X,
@Const gsl_vector_float Y,
DoublePointer result
);
public static native int gsl_blas_dsdot(@Const gsl_vector_float X,
@Const gsl_vector_float Y,
DoubleBuffer result
);
public static native int gsl_blas_dsdot(@Const gsl_vector_float X,
@Const gsl_vector_float Y,
double[] result
);
public static native int gsl_blas_sdot(@Const gsl_vector_float X,
@Const gsl_vector_float Y,
FloatPointer result
);
public static native int gsl_blas_sdot(@Const gsl_vector_float X,
@Const gsl_vector_float Y,
FloatBuffer result
);
public static native int gsl_blas_sdot(@Const gsl_vector_float X,
@Const gsl_vector_float Y,
float[] result
);
public static native int gsl_blas_ddot(@Const gsl_vector X,
@Const gsl_vector Y,
DoublePointer result
);
public static native int gsl_blas_ddot(@Const gsl_vector X,
@Const gsl_vector Y,
DoubleBuffer result
);
public static native int gsl_blas_ddot(@Const gsl_vector X,
@Const gsl_vector Y,
double[] result
);
public static native int gsl_blas_cdotu(@Const gsl_vector_complex_float X,
@Const gsl_vector_complex_float Y,
gsl_complex_float dotu);
public static native int gsl_blas_cdotc(@Const gsl_vector_complex_float X,
@Const gsl_vector_complex_float Y,
gsl_complex_float dotc);
public static native int gsl_blas_zdotu(@Const gsl_vector_complex X,
@Const gsl_vector_complex Y,
gsl_complex dotu);
public static native int gsl_blas_zdotc(@Const gsl_vector_complex X,
@Const gsl_vector_complex Y,
gsl_complex dotc);
public static native float gsl_blas_snrm2(@Const gsl_vector_float X);
public static native float gsl_blas_sasum(@Const gsl_vector_float X);
public static native double gsl_blas_dnrm2(@Const gsl_vector X);
public static native double gsl_blas_dasum(@Const gsl_vector X);
public static native float gsl_blas_scnrm2(@Const gsl_vector_complex_float X);
public static native float gsl_blas_scasum(@Const gsl_vector_complex_float X);
public static native double gsl_blas_dznrm2(@Const gsl_vector_complex X);
public static native double gsl_blas_dzasum(@Const gsl_vector_complex X);
public static native @Cast("CBLAS_INDEX_t") long gsl_blas_isamax(@Const gsl_vector_float X);
public static native @Cast("CBLAS_INDEX_t") long gsl_blas_idamax(@Const gsl_vector X);
public static native @Cast("CBLAS_INDEX_t") long gsl_blas_icamax(@Const gsl_vector_complex_float X);
public static native @Cast("CBLAS_INDEX_t") long gsl_blas_izamax(@Const gsl_vector_complex X);
public static native int gsl_blas_sswap(gsl_vector_float X,
gsl_vector_float Y);
public static native int gsl_blas_scopy(@Const gsl_vector_float X,
gsl_vector_float Y);
public static native int gsl_blas_saxpy(float alpha,
@Const gsl_vector_float X,
gsl_vector_float Y);
public static native int gsl_blas_dswap(gsl_vector X,
gsl_vector Y);
public static native int gsl_blas_dcopy(@Const gsl_vector X,
gsl_vector Y);
public static native int gsl_blas_daxpy(double alpha,
@Const gsl_vector X,
gsl_vector Y);
public static native int gsl_blas_cswap(gsl_vector_complex_float X,
gsl_vector_complex_float Y);
public static native int gsl_blas_ccopy(@Const gsl_vector_complex_float X,
gsl_vector_complex_float Y);
public static native int gsl_blas_caxpy(@Const @ByVal gsl_complex_float alpha,
@Const gsl_vector_complex_float X,
gsl_vector_complex_float Y);
public static native int gsl_blas_zswap(gsl_vector_complex X,
gsl_vector_complex Y);
public static native int gsl_blas_zcopy(@Const gsl_vector_complex X,
gsl_vector_complex Y);
public static native int gsl_blas_zaxpy(@Const @ByVal gsl_complex alpha,
@Const gsl_vector_complex X,
gsl_vector_complex Y);
public static native int gsl_blas_srotg(FloatPointer a, FloatPointer b, FloatPointer c, FloatPointer s);
public static native int gsl_blas_srotg(FloatBuffer a, FloatBuffer b, FloatBuffer c, FloatBuffer s);
public static native int gsl_blas_srotg(float[] a, float[] b, float[] c, float[] s);
public static native int gsl_blas_srotmg(FloatPointer d1, FloatPointer d2, FloatPointer b1, float b2, FloatPointer P);
public static native int gsl_blas_srotmg(FloatBuffer d1, FloatBuffer d2, FloatBuffer b1, float b2, FloatBuffer P);
public static native int gsl_blas_srotmg(float[] d1, float[] d2, float[] b1, float b2, float[] P);
public static native int gsl_blas_srot(gsl_vector_float X,
gsl_vector_float Y,
float c, float s);
public static native int gsl_blas_srotm(gsl_vector_float X,
gsl_vector_float Y,
@Const FloatPointer P);
public static native int gsl_blas_srotm(gsl_vector_float X,
gsl_vector_float Y,
@Const FloatBuffer P);
public static native int gsl_blas_srotm(gsl_vector_float X,
gsl_vector_float Y,
@Const float[] P);
public static native int gsl_blas_drotg(DoublePointer a, DoublePointer b, DoublePointer c, DoublePointer s);
public static native int gsl_blas_drotg(DoubleBuffer a, DoubleBuffer b, DoubleBuffer c, DoubleBuffer s);
public static native int gsl_blas_drotg(double[] a, double[] b, double[] c, double[] s);
public static native int gsl_blas_drotmg(DoublePointer d1, DoublePointer d2, DoublePointer b1,
double b2, DoublePointer P);
public static native int gsl_blas_drotmg(DoubleBuffer d1, DoubleBuffer d2, DoubleBuffer b1,
double b2, DoubleBuffer P);
public static native int gsl_blas_drotmg(double[] d1, double[] d2, double[] b1,
double b2, double[] P);
public static native int gsl_blas_drot(gsl_vector X,
gsl_vector Y,
double c, double s);
public static native int gsl_blas_drotm(gsl_vector X,
gsl_vector Y,
@Const DoublePointer P);
public static native int gsl_blas_drotm(gsl_vector X,
gsl_vector Y,
@Const DoubleBuffer P);
public static native int gsl_blas_drotm(gsl_vector X,
gsl_vector Y,
@Const double[] P);
public static native void gsl_blas_sscal(float alpha, gsl_vector_float X);
public static native void gsl_blas_dscal(double alpha, gsl_vector X);
public static native void gsl_blas_cscal(@Const @ByVal gsl_complex_float alpha, gsl_vector_complex_float X);
public static native void gsl_blas_zscal(@Const @ByVal gsl_complex alpha, gsl_vector_complex X);
public static native void gsl_blas_csscal(float alpha, gsl_vector_complex_float X);
public static native void gsl_blas_zdscal(double alpha, gsl_vector_complex X);
/* ===========================================================================
* Level 2
* ===========================================================================
*/
/*
* Routines with standard 4 prefixes (S, D, C, Z)
*/
public static native int gsl_blas_sgemv(@Cast("CBLAS_TRANSPOSE_t") int TransA,
float alpha,
@Const gsl_matrix_float A,
@Const gsl_vector_float X,
float beta,
gsl_vector_float Y);
public static native int gsl_blas_strmv(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int TransA, @Cast("CBLAS_DIAG_t") int Diag,
@Const gsl_matrix_float A,
gsl_vector_float X);
public static native int gsl_blas_strsv(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int TransA, @Cast("CBLAS_DIAG_t") int Diag,
@Const gsl_matrix_float A,
gsl_vector_float X);
public static native int gsl_blas_dgemv(@Cast("CBLAS_TRANSPOSE_t") int TransA,
double alpha,
@Const gsl_matrix A,
@Const gsl_vector X,
double beta,
gsl_vector Y);
public static native int gsl_blas_dtrmv(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int TransA, @Cast("CBLAS_DIAG_t") int Diag,
@Const gsl_matrix A,
gsl_vector X);
public static native int gsl_blas_dtrsv(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int TransA, @Cast("CBLAS_DIAG_t") int Diag,
@Const gsl_matrix A,
gsl_vector X);
public static native int gsl_blas_cgemv(@Cast("CBLAS_TRANSPOSE_t") int TransA,
@Const @ByVal gsl_complex_float alpha,
@Const gsl_matrix_complex_float A,
@Const gsl_vector_complex_float X,
@Const @ByVal gsl_complex_float beta,
gsl_vector_complex_float Y);
public static native int gsl_blas_ctrmv(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int TransA, @Cast("CBLAS_DIAG_t") int Diag,
@Const gsl_matrix_complex_float A,
gsl_vector_complex_float X);
public static native int gsl_blas_ctrsv(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int TransA, @Cast("CBLAS_DIAG_t") int Diag,
@Const gsl_matrix_complex_float A,
gsl_vector_complex_float X);
public static native int gsl_blas_zgemv(@Cast("CBLAS_TRANSPOSE_t") int TransA,
@Const @ByVal gsl_complex alpha,
@Const gsl_matrix_complex A,
@Const gsl_vector_complex X,
@Const @ByVal gsl_complex beta,
gsl_vector_complex Y);
public static native int gsl_blas_ztrmv(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int TransA, @Cast("CBLAS_DIAG_t") int Diag,
@Const gsl_matrix_complex A,
gsl_vector_complex X);
public static native int gsl_blas_ztrsv(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int TransA, @Cast("CBLAS_DIAG_t") int Diag,
@Const gsl_matrix_complex A,
gsl_vector_complex X);
/*
* Routines with S and D prefixes only
*/
public static native int gsl_blas_ssymv(@Cast("CBLAS_UPLO_t") int Uplo,
float alpha,
@Const gsl_matrix_float A,
@Const gsl_vector_float X,
float beta,
gsl_vector_float Y);
public static native int gsl_blas_sger(float alpha,
@Const gsl_vector_float X,
@Const gsl_vector_float Y,
gsl_matrix_float A);
public static native int gsl_blas_ssyr(@Cast("CBLAS_UPLO_t") int Uplo,
float alpha,
@Const gsl_vector_float X,
gsl_matrix_float A);
public static native int gsl_blas_ssyr2(@Cast("CBLAS_UPLO_t") int Uplo,
float alpha,
@Const gsl_vector_float X,
@Const gsl_vector_float Y,
gsl_matrix_float A);
public static native int gsl_blas_dsymv(@Cast("CBLAS_UPLO_t") int Uplo,
double alpha,
@Const gsl_matrix A,
@Const gsl_vector X,
double beta,
gsl_vector Y);
public static native int gsl_blas_dger(double alpha,
@Const gsl_vector X,
@Const gsl_vector Y,
gsl_matrix A);
public static native int gsl_blas_dsyr(@Cast("CBLAS_UPLO_t") int Uplo,
double alpha,
@Const gsl_vector X,
gsl_matrix A);
public static native int gsl_blas_dsyr2(@Cast("CBLAS_UPLO_t") int Uplo,
double alpha,
@Const gsl_vector X,
@Const gsl_vector Y,
gsl_matrix A);
/*
* Routines with C and Z prefixes only
*/
public static native int gsl_blas_chemv(@Cast("CBLAS_UPLO_t") int Uplo,
@Const @ByVal gsl_complex_float alpha,
@Const gsl_matrix_complex_float A,
@Const gsl_vector_complex_float X,
@Const @ByVal gsl_complex_float beta,
gsl_vector_complex_float Y);
public static native int gsl_blas_cgeru(@Const @ByVal gsl_complex_float alpha,
@Const gsl_vector_complex_float X,
@Const gsl_vector_complex_float Y,
gsl_matrix_complex_float A);
public static native int gsl_blas_cgerc(@Const @ByVal gsl_complex_float alpha,
@Const gsl_vector_complex_float X,
@Const gsl_vector_complex_float Y,
gsl_matrix_complex_float A);
public static native int gsl_blas_cher(@Cast("CBLAS_UPLO_t") int Uplo,
float alpha,
@Const gsl_vector_complex_float X,
gsl_matrix_complex_float A);
public static native int gsl_blas_cher2(@Cast("CBLAS_UPLO_t") int Uplo,
@Const @ByVal gsl_complex_float alpha,
@Const gsl_vector_complex_float X,
@Const gsl_vector_complex_float Y,
gsl_matrix_complex_float A);
public static native int gsl_blas_zhemv(@Cast("CBLAS_UPLO_t") int Uplo,
@Const @ByVal gsl_complex alpha,
@Const gsl_matrix_complex A,
@Const gsl_vector_complex X,
@Const @ByVal gsl_complex beta,
gsl_vector_complex Y);
public static native int gsl_blas_zgeru(@Const @ByVal gsl_complex alpha,
@Const gsl_vector_complex X,
@Const gsl_vector_complex Y,
gsl_matrix_complex A);
public static native int gsl_blas_zgerc(@Const @ByVal gsl_complex alpha,
@Const gsl_vector_complex X,
@Const gsl_vector_complex Y,
gsl_matrix_complex A);
public static native int gsl_blas_zher(@Cast("CBLAS_UPLO_t") int Uplo,
double alpha,
@Const gsl_vector_complex X,
gsl_matrix_complex A);
public static native int gsl_blas_zher2(@Cast("CBLAS_UPLO_t") int Uplo,
@Const @ByVal gsl_complex alpha,
@Const gsl_vector_complex X,
@Const gsl_vector_complex Y,
gsl_matrix_complex A);
/*
* ===========================================================================
* Prototypes for level 3 BLAS
* ===========================================================================
*/
/*
* Routines with standard 4 prefixes (S, D, C, Z)
*/
public static native int gsl_blas_sgemm(@Cast("CBLAS_TRANSPOSE_t") int TransA,
@Cast("CBLAS_TRANSPOSE_t") int TransB,
float alpha,
@Const gsl_matrix_float A,
@Const gsl_matrix_float B,
float beta,
gsl_matrix_float C);
public static native int gsl_blas_ssymm(@Cast("CBLAS_SIDE_t") int Side, @Cast("CBLAS_UPLO_t") int Uplo,
float alpha,
@Const gsl_matrix_float A,
@Const gsl_matrix_float B,
float beta,
gsl_matrix_float C);
public static native int gsl_blas_ssyrk(@Cast("CBLAS_UPLO_t") int Uplo, @Cast("CBLAS_TRANSPOSE_t") int Trans,
float alpha,
@Const gsl_matrix_float A,
float beta,
gsl_matrix_float C);
public static native int gsl_blas_ssyr2k(@Cast("CBLAS_UPLO_t") int Uplo, @Cast("CBLAS_TRANSPOSE_t") int Trans,
float alpha,
@Const gsl_matrix_float A,
@Const gsl_matrix_float B,
float beta,
gsl_matrix_float C);
public static native int gsl_blas_strmm(@Cast("CBLAS_SIDE_t") int Side,
@Cast("CBLAS_UPLO_t") int Uplo, @Cast("CBLAS_TRANSPOSE_t") int TransA,
@Cast("CBLAS_DIAG_t") int Diag,
float alpha,
@Const gsl_matrix_float A,
gsl_matrix_float B);
public static native int gsl_blas_strsm(@Cast("CBLAS_SIDE_t") int Side,
@Cast("CBLAS_UPLO_t") int Uplo, @Cast("CBLAS_TRANSPOSE_t") int TransA,
@Cast("CBLAS_DIAG_t") int Diag,
float alpha,
@Const gsl_matrix_float A,
gsl_matrix_float B);
public static native int gsl_blas_dgemm(@Cast("CBLAS_TRANSPOSE_t") int TransA,
@Cast("CBLAS_TRANSPOSE_t") int TransB,
double alpha,
@Const gsl_matrix A,
@Const gsl_matrix B,
double beta,
gsl_matrix C);
public static native int gsl_blas_dsymm(@Cast("CBLAS_SIDE_t") int Side,
@Cast("CBLAS_UPLO_t") int Uplo,
double alpha,
@Const gsl_matrix A,
@Const gsl_matrix B,
double beta,
gsl_matrix C);
public static native int gsl_blas_dsyrk(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int Trans,
double alpha,
@Const gsl_matrix A,
double beta,
gsl_matrix C);
public static native int gsl_blas_dsyr2k(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int Trans,
double alpha,
@Const gsl_matrix A,
@Const gsl_matrix B,
double beta,
gsl_matrix C);
public static native int gsl_blas_dtrmm(@Cast("CBLAS_SIDE_t") int Side,
@Cast("CBLAS_UPLO_t") int Uplo, @Cast("CBLAS_TRANSPOSE_t") int TransA,
@Cast("CBLAS_DIAG_t") int Diag,
double alpha,
@Const gsl_matrix A,
gsl_matrix B);
public static native int gsl_blas_dtrsm(@Cast("CBLAS_SIDE_t") int Side,
@Cast("CBLAS_UPLO_t") int Uplo, @Cast("CBLAS_TRANSPOSE_t") int TransA,
@Cast("CBLAS_DIAG_t") int Diag,
double alpha,
@Const gsl_matrix A,
gsl_matrix B);
public static native int gsl_blas_cgemm(@Cast("CBLAS_TRANSPOSE_t") int TransA,
@Cast("CBLAS_TRANSPOSE_t") int TransB,
@Const @ByVal gsl_complex_float alpha,
@Const gsl_matrix_complex_float A,
@Const gsl_matrix_complex_float B,
@Const @ByVal gsl_complex_float beta,
gsl_matrix_complex_float C);
public static native int gsl_blas_csymm(@Cast("CBLAS_SIDE_t") int Side,
@Cast("CBLAS_UPLO_t") int Uplo,
@Const @ByVal gsl_complex_float alpha,
@Const gsl_matrix_complex_float A,
@Const gsl_matrix_complex_float B,
@Const @ByVal gsl_complex_float beta,
gsl_matrix_complex_float C);
public static native int gsl_blas_csyrk(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int Trans,
@Const @ByVal gsl_complex_float alpha,
@Const gsl_matrix_complex_float A,
@Const @ByVal gsl_complex_float beta,
gsl_matrix_complex_float C);
public static native int gsl_blas_csyr2k(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int Trans,
@Const @ByVal gsl_complex_float alpha,
@Const gsl_matrix_complex_float A,
@Const gsl_matrix_complex_float B,
@Const @ByVal gsl_complex_float beta,
gsl_matrix_complex_float C);
public static native int gsl_blas_ctrmm(@Cast("CBLAS_SIDE_t") int Side,
@Cast("CBLAS_UPLO_t") int Uplo, @Cast("CBLAS_TRANSPOSE_t") int TransA,
@Cast("CBLAS_DIAG_t") int Diag,
@Const @ByVal gsl_complex_float alpha,
@Const gsl_matrix_complex_float A,
gsl_matrix_complex_float B);
public static native int gsl_blas_ctrsm(@Cast("CBLAS_SIDE_t") int Side,
@Cast("CBLAS_UPLO_t") int Uplo, @Cast("CBLAS_TRANSPOSE_t") int TransA,
@Cast("CBLAS_DIAG_t") int Diag,
@Const @ByVal gsl_complex_float alpha,
@Const gsl_matrix_complex_float A,
gsl_matrix_complex_float B);
public static native int gsl_blas_zgemm(@Cast("CBLAS_TRANSPOSE_t") int TransA,
@Cast("CBLAS_TRANSPOSE_t") int TransB,
@Const @ByVal gsl_complex alpha,
@Const gsl_matrix_complex A,
@Const gsl_matrix_complex B,
@Const @ByVal gsl_complex beta,
gsl_matrix_complex C);
public static native int gsl_blas_zsymm(@Cast("CBLAS_SIDE_t") int Side,
@Cast("CBLAS_UPLO_t") int Uplo,
@Const @ByVal gsl_complex alpha,
@Const gsl_matrix_complex A,
@Const gsl_matrix_complex B,
@Const @ByVal gsl_complex beta,
gsl_matrix_complex C);
public static native int gsl_blas_zsyrk(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int Trans,
@Const @ByVal gsl_complex alpha,
@Const gsl_matrix_complex A,
@Const @ByVal gsl_complex beta,
gsl_matrix_complex C);
public static native int gsl_blas_zsyr2k(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int Trans,
@Const @ByVal gsl_complex alpha,
@Const gsl_matrix_complex A,
@Const gsl_matrix_complex B,
@Const @ByVal gsl_complex beta,
gsl_matrix_complex C);
public static native int gsl_blas_ztrmm(@Cast("CBLAS_SIDE_t") int Side,
@Cast("CBLAS_UPLO_t") int Uplo, @Cast("CBLAS_TRANSPOSE_t") int TransA,
@Cast("CBLAS_DIAG_t") int Diag,
@Const @ByVal gsl_complex alpha,
@Const gsl_matrix_complex A,
gsl_matrix_complex B);
public static native int gsl_blas_ztrsm(@Cast("CBLAS_SIDE_t") int Side,
@Cast("CBLAS_UPLO_t") int Uplo, @Cast("CBLAS_TRANSPOSE_t") int TransA,
@Cast("CBLAS_DIAG_t") int Diag,
@Const @ByVal gsl_complex alpha,
@Const gsl_matrix_complex A,
gsl_matrix_complex B);
/*
* Routines with prefixes C and Z only
*/
public static native int gsl_blas_chemm(@Cast("CBLAS_SIDE_t") int Side,
@Cast("CBLAS_UPLO_t") int Uplo,
@Const @ByVal gsl_complex_float alpha,
@Const gsl_matrix_complex_float A,
@Const gsl_matrix_complex_float B,
@Const @ByVal gsl_complex_float beta,
gsl_matrix_complex_float C);
public static native int gsl_blas_cherk(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int Trans,
float alpha,
@Const gsl_matrix_complex_float A,
float beta,
gsl_matrix_complex_float C);
public static native int gsl_blas_cher2k(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int Trans,
@Const @ByVal gsl_complex_float alpha,
@Const gsl_matrix_complex_float A,
@Const gsl_matrix_complex_float B,
float beta,
gsl_matrix_complex_float C);
public static native int gsl_blas_zhemm(@Cast("CBLAS_SIDE_t") int Side,
@Cast("CBLAS_UPLO_t") int Uplo,
@Const @ByVal gsl_complex alpha,
@Const gsl_matrix_complex A,
@Const gsl_matrix_complex B,
@Const @ByVal gsl_complex beta,
gsl_matrix_complex C);
public static native int gsl_blas_zherk(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int Trans,
double alpha,
@Const gsl_matrix_complex A,
double beta,
gsl_matrix_complex C);
public static native int gsl_blas_zher2k(@Cast("CBLAS_UPLO_t") int Uplo,
@Cast("CBLAS_TRANSPOSE_t") int Trans,
@Const @ByVal gsl_complex alpha,
@Const gsl_matrix_complex A,
@Const gsl_matrix_complex B,
double beta,
gsl_matrix_complex C);
// #endif /* __GSL_BLAS_H__ */
// Parsed from gsl/gsl_bspline.h
/* bspline/gsl_bspline.h
*
* Copyright (C) 2006 Patrick Alken
* Copyright (C) 2008 Rhys Ulerich
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_BSPLINE_H__
// #define __GSL_BSPLINE_H__
// #include
// #include
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static class gsl_bspline_workspace extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_bspline_workspace() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_bspline_workspace(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_bspline_workspace(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_bspline_workspace position(long position) {
return (gsl_bspline_workspace)super.position(position);
}
public native @Cast("size_t") long k(); public native gsl_bspline_workspace k(long k); /* spline order */
public native @Cast("size_t") long km1(); public native gsl_bspline_workspace km1(long km1); /* k - 1 (polynomial order) */
public native @Cast("size_t") long l(); public native gsl_bspline_workspace l(long l); /* number of polynomial pieces on interval */
public native @Cast("size_t") long nbreak(); public native gsl_bspline_workspace nbreak(long nbreak); /* number of breakpoints (l + 1) */
public native @Cast("size_t") long n(); public native gsl_bspline_workspace n(long n); /* number of bspline basis functions (l + k - 1) */
public native gsl_vector knots(); public native gsl_bspline_workspace knots(gsl_vector knots); /* knots vector */
public native gsl_vector deltal(); public native gsl_bspline_workspace deltal(gsl_vector deltal); /* left delta */
public native gsl_vector deltar(); public native gsl_bspline_workspace deltar(gsl_vector deltar); /* right delta */
public native gsl_vector B(); public native gsl_bspline_workspace B(gsl_vector B); /* temporary spline results */
/* bspline derivative parameters */
public native gsl_matrix A(); public native gsl_bspline_workspace A(gsl_matrix A); /* work matrix */
public native gsl_matrix dB(); public native gsl_bspline_workspace dB(gsl_matrix dB); /* temporary derivative results */
}
public static native gsl_bspline_workspace gsl_bspline_alloc(@Cast("const size_t") long k, @Cast("const size_t") long nbreak);
public static native void gsl_bspline_free(gsl_bspline_workspace w);
public static native @Cast("size_t") long gsl_bspline_ncoeffs(gsl_bspline_workspace w);
public static native @Cast("size_t") long gsl_bspline_order(gsl_bspline_workspace w);
public static native @Cast("size_t") long gsl_bspline_nbreak(gsl_bspline_workspace w);
public static native double gsl_bspline_breakpoint(@Cast("size_t") long i, gsl_bspline_workspace w);
public static native double gsl_bspline_greville_abscissa(@Cast("size_t") long i, gsl_bspline_workspace w);
public static native int gsl_bspline_knots(@Const gsl_vector breakpts, gsl_bspline_workspace w);
public static native int gsl_bspline_knots_uniform(double a, double b,
gsl_bspline_workspace w);
public static native int gsl_bspline_knots_greville(@Const gsl_vector abscissae,
gsl_bspline_workspace w,
DoublePointer abserr);
public static native int gsl_bspline_knots_greville(@Const gsl_vector abscissae,
gsl_bspline_workspace w,
DoubleBuffer abserr);
public static native int gsl_bspline_knots_greville(@Const gsl_vector abscissae,
gsl_bspline_workspace w,
double[] abserr);
public static native int gsl_bspline_eval(double x, gsl_vector B,
gsl_bspline_workspace w);
public static native int gsl_bspline_eval_nonzero(double x,
gsl_vector Bk,
@Cast("size_t*") SizeTPointer istart,
@Cast("size_t*") SizeTPointer iend,
gsl_bspline_workspace w);
public static native int gsl_bspline_deriv_eval(double x,
@Cast("const size_t") long nderiv,
gsl_matrix dB,
gsl_bspline_workspace w);
public static native int gsl_bspline_deriv_eval_nonzero(double x,
@Cast("const size_t") long nderiv,
gsl_matrix dB,
@Cast("size_t*") SizeTPointer istart,
@Cast("size_t*") SizeTPointer iend,
gsl_bspline_workspace w);
// #endif /* __GSL_BSPLINE_H__ */
// Parsed from gsl/gsl_cdf.h
/* cdf/gsl_cdf.h
*
* Copyright (C) 2002 Jason H. Stover.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/* Author: J. Stover */
// #ifndef __GSL_CDF_H__
// #define __GSL_CDF_H__
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
public static native double gsl_cdf_ugaussian_P(double x);
public static native double gsl_cdf_ugaussian_Q(double x);
public static native double gsl_cdf_ugaussian_Pinv(double P);
public static native double gsl_cdf_ugaussian_Qinv(double Q);
public static native double gsl_cdf_gaussian_P(double x, double sigma);
public static native double gsl_cdf_gaussian_Q(double x, double sigma);
public static native double gsl_cdf_gaussian_Pinv(double P, double sigma);
public static native double gsl_cdf_gaussian_Qinv(double Q, double sigma);
public static native double gsl_cdf_gamma_P(double x, double a, double b);
public static native double gsl_cdf_gamma_Q(double x, double a, double b);
public static native double gsl_cdf_gamma_Pinv(double P, double a, double b);
public static native double gsl_cdf_gamma_Qinv(double Q, double a, double b);
public static native double gsl_cdf_cauchy_P(double x, double a);
public static native double gsl_cdf_cauchy_Q(double x, double a);
public static native double gsl_cdf_cauchy_Pinv(double P, double a);
public static native double gsl_cdf_cauchy_Qinv(double Q, double a);
public static native double gsl_cdf_laplace_P(double x, double a);
public static native double gsl_cdf_laplace_Q(double x, double a);
public static native double gsl_cdf_laplace_Pinv(double P, double a);
public static native double gsl_cdf_laplace_Qinv(double Q, double a);
public static native double gsl_cdf_rayleigh_P(double x, double sigma);
public static native double gsl_cdf_rayleigh_Q(double x, double sigma);
public static native double gsl_cdf_rayleigh_Pinv(double P, double sigma);
public static native double gsl_cdf_rayleigh_Qinv(double Q, double sigma);
public static native double gsl_cdf_chisq_P(double x, double nu);
public static native double gsl_cdf_chisq_Q(double x, double nu);
public static native double gsl_cdf_chisq_Pinv(double P, double nu);
public static native double gsl_cdf_chisq_Qinv(double Q, double nu);
public static native double gsl_cdf_exponential_P(double x, double mu);
public static native double gsl_cdf_exponential_Q(double x, double mu);
public static native double gsl_cdf_exponential_Pinv(double P, double mu);
public static native double gsl_cdf_exponential_Qinv(double Q, double mu);
public static native double gsl_cdf_exppow_P(double x, double a, double b);
public static native double gsl_cdf_exppow_Q(double x, double a, double b);
public static native double gsl_cdf_tdist_P(double x, double nu);
public static native double gsl_cdf_tdist_Q(double x, double nu);
public static native double gsl_cdf_tdist_Pinv(double P, double nu);
public static native double gsl_cdf_tdist_Qinv(double Q, double nu);
public static native double gsl_cdf_fdist_P(double x, double nu1, double nu2);
public static native double gsl_cdf_fdist_Q(double x, double nu1, double nu2);
public static native double gsl_cdf_fdist_Pinv(double P, double nu1, double nu2);
public static native double gsl_cdf_fdist_Qinv(double Q, double nu1, double nu2);
public static native double gsl_cdf_beta_P(double x, double a, double b);
public static native double gsl_cdf_beta_Q(double x, double a, double b);
public static native double gsl_cdf_beta_Pinv(double P, double a, double b);
public static native double gsl_cdf_beta_Qinv(double Q, double a, double b);
public static native double gsl_cdf_flat_P(double x, double a, double b);
public static native double gsl_cdf_flat_Q(double x, double a, double b);
public static native double gsl_cdf_flat_Pinv(double P, double a, double b);
public static native double gsl_cdf_flat_Qinv(double Q, double a, double b);
public static native double gsl_cdf_lognormal_P(double x, double zeta, double sigma);
public static native double gsl_cdf_lognormal_Q(double x, double zeta, double sigma);
public static native double gsl_cdf_lognormal_Pinv(double P, double zeta, double sigma);
public static native double gsl_cdf_lognormal_Qinv(double Q, double zeta, double sigma);
public static native double gsl_cdf_gumbel1_P(double x, double a, double b);
public static native double gsl_cdf_gumbel1_Q(double x, double a, double b);
public static native double gsl_cdf_gumbel1_Pinv(double P, double a, double b);
public static native double gsl_cdf_gumbel1_Qinv(double Q, double a, double b);
public static native double gsl_cdf_gumbel2_P(double x, double a, double b);
public static native double gsl_cdf_gumbel2_Q(double x, double a, double b);
public static native double gsl_cdf_gumbel2_Pinv(double P, double a, double b);
public static native double gsl_cdf_gumbel2_Qinv(double Q, double a, double b);
public static native double gsl_cdf_weibull_P(double x, double a, double b);
public static native double gsl_cdf_weibull_Q(double x, double a, double b);
public static native double gsl_cdf_weibull_Pinv(double P, double a, double b);
public static native double gsl_cdf_weibull_Qinv(double Q, double a, double b);
public static native double gsl_cdf_pareto_P(double x, double a, double b);
public static native double gsl_cdf_pareto_Q(double x, double a, double b);
public static native double gsl_cdf_pareto_Pinv(double P, double a, double b);
public static native double gsl_cdf_pareto_Qinv(double Q, double a, double b);
public static native double gsl_cdf_logistic_P(double x, double a);
public static native double gsl_cdf_logistic_Q(double x, double a);
public static native double gsl_cdf_logistic_Pinv(double P, double a);
public static native double gsl_cdf_logistic_Qinv(double Q, double a);
public static native double gsl_cdf_binomial_P(@Cast("const unsigned int") int k, double p, @Cast("const unsigned int") int n);
public static native double gsl_cdf_binomial_Q(@Cast("const unsigned int") int k, double p, @Cast("const unsigned int") int n);
public static native double gsl_cdf_poisson_P(@Cast("const unsigned int") int k, double mu);
public static native double gsl_cdf_poisson_Q(@Cast("const unsigned int") int k, double mu);
public static native double gsl_cdf_geometric_P(@Cast("const unsigned int") int k, double p);
public static native double gsl_cdf_geometric_Q(@Cast("const unsigned int") int k, double p);
public static native double gsl_cdf_negative_binomial_P(@Cast("const unsigned int") int k, double p, double n);
public static native double gsl_cdf_negative_binomial_Q(@Cast("const unsigned int") int k, double p, double n);
public static native double gsl_cdf_pascal_P(@Cast("const unsigned int") int k, double p, @Cast("const unsigned int") int n);
public static native double gsl_cdf_pascal_Q(@Cast("const unsigned int") int k, double p, @Cast("const unsigned int") int n);
public static native double gsl_cdf_hypergeometric_P(@Cast("const unsigned int") int k, @Cast("const unsigned int") int n1,
@Cast("const unsigned int") int n2, @Cast("const unsigned int") int t);
public static native double gsl_cdf_hypergeometric_Q(@Cast("const unsigned int") int k, @Cast("const unsigned int") int n1,
@Cast("const unsigned int") int n2, @Cast("const unsigned int") int t);
// #endif /* __GSL_CDF_H__ */
// Parsed from gsl/gsl_chebyshev.h
/* cheb/gsl_chebyshev.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_CHEBYSHEV_H__
// #define __GSL_CHEBYSHEV_H__
// #include
// #include
// #undef __BEGIN_DECLS
// #undef __END_DECLS
// #ifdef __cplusplus
// # define __BEGIN_DECLS extern "C" {
// # define __END_DECLS }
// #else
// #endif
/* data for a Chebyshev series over a given interval */
@Name("gsl_cheb_series_struct") public static class gsl_cheb_series extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public gsl_cheb_series() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public gsl_cheb_series(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public gsl_cheb_series(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public gsl_cheb_series position(long position) {
return (gsl_cheb_series)super.position(position);
}
public native DoublePointer c(); public native gsl_cheb_series c(DoublePointer c); /* coefficients */
public native @Cast("size_t") long order(); public native gsl_cheb_series order(long order); /* order of expansion */
public native double a(); public native gsl_cheb_series a(double a); /* lower interval point */
public native double b(); public native gsl_cheb_series b(double b); /* upper interval point */
/* The following exists (mostly) for the benefit
* of the implementation. It is an effective single
* precision order, for use in single precision
* evaluation. Users can use it if they like, but
* only they know how to calculate it, since it is
* specific to the approximated function. By default,
* order_sp = order.
* It is used explicitly only by the gsl_cheb_eval_mode
* functions, which are not meant for casual use.
*/
public native @Cast("size_t") long order_sp(); public native gsl_cheb_series order_sp(long order_sp);
/* Additional elements not used by specfunc */
public native DoublePointer f(); public native gsl_cheb_series f(DoublePointer f); /* function evaluated at chebyschev points */
}
/* Calculate a Chebyshev series of specified order over
* a specified interval, for a given function.
* Return 0 on failure.
*/
public static native gsl_cheb_series gsl_cheb_alloc(@Cast("const size_t") long order);
/* Free a Chebyshev series previously calculated with gsl_cheb_alloc().
*/
public static native void gsl_cheb_free(gsl_cheb_series cs);
/* Calculate a Chebyshev series using the storage provided.
* Uses the interval (a,b) and the order with which it
* was initially created.
*
*/
public static native int gsl_cheb_init(gsl_cheb_series cs, @Const gsl_function func,
double a, double b);
/* Return the order, size of coefficient array and coefficient array ptr */
public static native @Cast("size_t") long gsl_cheb_order(@Const gsl_cheb_series cs);
public static native @Cast("size_t") long gsl_cheb_size(@Const gsl_cheb_series cs);
public static native DoublePointer gsl_cheb_coeffs(@Const gsl_cheb_series cs);
/* Evaluate a Chebyshev series at a given point.
* No errors can occur for a struct obtained from gsl_cheb_new().
*/
public static native double gsl_cheb_eval(@Const gsl_cheb_series cs, double x);
public static native int gsl_cheb_eval_err(@Const gsl_cheb_series cs, double x,
DoublePointer result, DoublePointer abserr);
public static native int gsl_cheb_eval_err(@Const gsl_cheb_series cs, double x,
DoubleBuffer result, DoubleBuffer abserr);
public static native int gsl_cheb_eval_err(@Const gsl_cheb_series cs, double x,
double[] result, double[] abserr);
/* Evaluate a Chebyshev series at a given point, to (at most) the given order.
* No errors can occur for a struct obtained from gsl_cheb_new().
*/
public static native double gsl_cheb_eval_n(@Const gsl_cheb_series cs, @Cast("const size_t") long order,
double x);
public static native int gsl_cheb_eval_n_err(@Const gsl_cheb_series cs, @Cast("const size_t") long order,
double x, DoublePointer result, DoublePointer abserr);
public static native int gsl_cheb_eval_n_err(@Const gsl_cheb_series cs, @Cast("const size_t") long order,
double x, DoubleBuffer result, DoubleBuffer abserr);
public static native int gsl_cheb_eval_n_err(@Const gsl_cheb_series cs, @Cast("const size_t") long order,
double x, double[] result, double[] abserr);
/* Evaluate a Chebyshev series at a given point, using the default
* order for double precision mode(s) and the single precision
* order for other modes.
* No errors can occur for a struct obtained from gsl_cheb_new().
*/
public static native double gsl_cheb_eval_mode(@Const gsl_cheb_series cs, double x, @Cast("gsl_mode_t") int mode);
public static native int gsl_cheb_eval_mode_e(@Const gsl_cheb_series cs, double x, @Cast("gsl_mode_t") int mode, DoublePointer result, DoublePointer abserr);
public static native int gsl_cheb_eval_mode_e(@Const gsl_cheb_series cs, double x, @Cast("gsl_mode_t") int mode, DoubleBuffer result, DoubleBuffer abserr);
public static native int gsl_cheb_eval_mode_e(@Const gsl_cheb_series cs, double x, @Cast("gsl_mode_t") int mode, double[] result, double[] abserr);
/* Compute the derivative of a Chebyshev series.
*/
public static native int gsl_cheb_calc_deriv(gsl_cheb_series deriv, @Const gsl_cheb_series cs);
/* Compute the integral of a Chebyshev series. The
* integral is fixed by the condition that it equals zero at
* the left end-point, ie it is precisely
* Integrate[cs(t; a,b), {t, a, x}]
*/
public static native int gsl_cheb_calc_integ(gsl_cheb_series integ, @Const gsl_cheb_series cs);
// #endif /* __GSL_CHEBYSHEV_H__ */
// Parsed from gsl/gsl_combination.h
/* combination/gsl_combination.h
* based on permutation/gsl_permutation.h by Brian Gough
*
* Copyright (C) 2001 Szymon Jaroszewicz
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// #ifndef __GSL_COMBINATION_H__
// #define __GSL_COMBINATION_H__
// #include