integrators
Class Integrator.NVmatrix

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

protected class Integrator.NVmatrix
extends java.lang.Object

This class was intended for storing a Jacobian matrix, or something like that.


Method Summary
 float[][] collapse()
          I haven't yet had the heart to test this messy thing...
 float[][] getCopyOfMatrix()
          Use this if you want a freshly-made copy of the values matrix in the form of a 2D array of floats
 void getCopyOfMatrix(float[][] cp)
          Use this one if you want the values matrix copied into a pre-allocated 2D array of floats
 float[][] getValueMatrix()
          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()
I haven't yet had the heart to test this messy thing... I haven't written any code that needs it yet. What is is supposed to do is return a 2D array of floats that leave out the empty spaces where there are zeros for unsided Nodes, analogous to what NVvector.collapse() does. This will come in handy if one needs to do canned matrix operations on these arrays. Of course, sooner or later we'll need code to go the other direction as well.


getCopyOfMatrix

public float[][] getCopyOfMatrix()
Use this if you want a freshly-made copy of the values matrix in the form of a 2D array of floats


getCopyOfMatrix

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

Throws:
java.lang.Exception

getValueMatrix

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