|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jna.Structure
de.grogra.numeric.cvode.N_Vector
public class N_Vector
This structure represents an N-dimensional vector of double.
Nested Class Summary | |
---|---|
static class |
N_Vector._N_VectorContent_Serial
|
static class |
N_Vector.ByReference
|
static class |
N_Vector.ByValue
|
Field Summary | |
---|---|
com.sun.jna.Pointer |
content
|
com.sun.jna.Pointer |
ops
|
Fields inherited from class com.sun.jna.Structure |
---|
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE |
Constructor Summary | |
---|---|
N_Vector()
|
Method Summary | |
---|---|
void |
get(double[] data)
Copy complete vector into the memory provided by data. |
double |
get(int index)
Return the element designated by index from the vector. |
int |
getLength()
Return the number of elements in this vector. |
void |
set(double[] data)
Set the complete vector to the memory provided by data. |
void |
set(int index,
double value)
Set the element designated by index to value. |
Methods inherited from class com.sun.jna.Structure |
---|
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldOrder, getFields, getFieldTypeInfo, getNativeAlignment, getNativeSize, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public com.sun.jna.Pointer content
public com.sun.jna.Pointer ops
Constructor Detail |
---|
public N_Vector()
Method Detail |
---|
public void get(double[] data)
data
- public double get(int index)
index
-
public int getLength()
public void set(double[] data)
data
- public void set(int index, double value)
index
- value
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |