Module numeric

Class N_Vector

java.lang.Object
com.sun.jna.Structure
de.grogra.numeric.cvode.N_Vector
Direct Known Subclasses:
N_Vector.ByReference, N_Vector.ByValue

public class N_Vector extends com.sun.jna.Structure
This structure represents an N-dimensional vector of double.
Author:
Reinhard Hemmerling
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
    static class 
     

    Nested classes/interfaces inherited from class com.sun.jna.Structure

    com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    com.sun.jna.Pointer
     
    com.sun.jna.Pointer
     

    Fields inherited from class com.sun.jna.Structure

    ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    protected List
     
    int
    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, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • content

      public com.sun.jna.Pointer content
    • ops

      public com.sun.jna.Pointer ops
  • Constructor Details

    • N_Vector

      public N_Vector()
  • Method Details

    • getFieldOrder

      protected List getFieldOrder()
      Overrides:
      getFieldOrder in class com.sun.jna.Structure
    • getLength

      public int getLength()
      Return the number of elements in this vector.
      Returns:
    • get

      public double get(int index)
      Return the element designated by index from the vector.
      Parameters:
      index -
      Returns:
    • set

      public void set(int index, double value)
      Set the element designated by index to value.
      Parameters:
      index -
      value -
    • get

      public void get(double[] data)
      Copy complete vector into the memory provided by data.
      Parameters:
      data -
    • set

      public void set(double[] data)
      Set the complete vector to the memory provided by data.
      Parameters:
      data -