integrators
Class Integrator.NVvector

java.lang.Object
  extended byintegrators.Integrator.NVvector
Enclosing class:
Integrator

public class Integrator.NVvector
extends java.lang.Object

This utility class may be more convenient for some purposes than an array of NodeValues objects would be.


Method Summary
 float[] collapse()
          collapse() returns an array of floats without the unused spaces associated with unsided Nodes; the purpose of this is to facilitate the use of canned matrix operation routines (should we need to), which won't know anything about sided-ness and so on.
 NodeValues[] convertToNodeValues(Integrator.NVvector vec)
          Use this if you want a copy of this vector in the form of an array of NodeValues objects.
 void convertToNVvector(NodeValues[] nv)
          Use this to copy an array of NodeValues objects into a pre-made NVvector.
 float[] getCopyOfVector()
          Use this if you want a freshly-made copy of the values vector in the form of an array of floats
 void getCopyOfVector(float[] cp)
          Use this one if you want the values vector copied into a pre-allocated array of floats
 float[] getValueVector()
          Use this one if you just want a handle to the values vector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

collapse

public float[] collapse()
collapse() returns an array of floats without the unused spaces associated with unsided Nodes; the purpose of this is to facilitate the use of canned matrix operation routines (should we need to), which won't know anything about sided-ness and so on.


convertToNVvector

public void convertToNVvector(NodeValues[] nv)
                       throws java.lang.Exception
Use this to copy an array of NodeValues objects into a pre-made NVvector.

Throws:
java.lang.Exception

convertToNodeValues

public NodeValues[] convertToNodeValues(Integrator.NVvector vec)
Use this if you want a copy of this vector in the form of an array of NodeValues objects.


getCopyOfVector

public float[] getCopyOfVector()
Use this if you want a freshly-made copy of the values vector in the form of an array of floats


getCopyOfVector

public void getCopyOfVector(float[] cp)
                     throws java.lang.Exception
Use this one if you want the values vector copied into a pre-allocated array of floats

Throws:
java.lang.Exception

getValueVector

public float[] getValueVector()
Use this one if you just want a handle to the values vector