maspack.matlab
Class MatlabInterface

java.lang.Object
  extended by maspack.matlab.MatlabInterface

public class MatlabInterface
extends java.lang.Object


Constructor Summary
MatlabInterface()
           
 
Method Summary
 void clearWorkspace()
           
 void close()
           
 void evalString(java.lang.String str)
           
 void getArray(java.lang.String name, double[] array)
           
 void getIntArray(java.lang.String name, int[] array)
           
 void getMatrix(java.lang.String name, double[][] matrix)
           
 java.lang.String getOutputString(int size)
           
 void open()
           
 void putArray(java.lang.String name, double[] array)
           
 void putIntArray(java.lang.String name, int[] array)
           
 void putMatrix(java.lang.String name, double[][] matrix)
           
 void setSparse(double[] rowIdxs, double[] colIdxs, double[] vals)
           
 void setSparseIndices(double[] rowIdxs, double[] colIdxs)
           
 void setSparseVals(double[] vals)
           
 void setSparseValsTimed(double[] vals)
           
 void solveSparse(double[] x, double[] b)
           
 void solveSparse(double[] rowIdxs, double[] colIdxs, double[] vals, double[] x, double[] b)
           
 void solveSparseTimed(double[] x, double[] b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatlabInterface

public MatlabInterface()
                throws java.lang.UnsupportedOperationException
Throws:
java.lang.UnsupportedOperationException
Method Detail

open

public void open()

clearWorkspace

public void clearWorkspace()

setSparseIndices

public void setSparseIndices(double[] rowIdxs,
                             double[] colIdxs)
                      throws java.io.IOException
Throws:
java.io.IOException

setSparseVals

public void setSparseVals(double[] vals)
                   throws java.io.IOException
Throws:
java.io.IOException

setSparseValsTimed

public void setSparseValsTimed(double[] vals)
                        throws java.io.IOException
Throws:
java.io.IOException

setSparse

public void setSparse(double[] rowIdxs,
                      double[] colIdxs,
                      double[] vals)
               throws java.io.IOException
Throws:
java.io.IOException

solveSparse

public void solveSparse(double[] rowIdxs,
                        double[] colIdxs,
                        double[] vals,
                        double[] x,
                        double[] b)

solveSparse

public void solveSparse(double[] x,
                        double[] b)

solveSparseTimed

public void solveSparseTimed(double[] x,
                             double[] b)

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

evalString

public void evalString(java.lang.String str)
                throws java.io.IOException
Throws:
java.io.IOException

getOutputString

public java.lang.String getOutputString(int size)
                                 throws java.io.IOException
Throws:
java.io.IOException

putArray

public void putArray(java.lang.String name,
                     double[] array)
              throws java.io.IOException
Throws:
java.io.IOException

getArray

public void getArray(java.lang.String name,
                     double[] array)
              throws java.io.IOException
Throws:
java.io.IOException

putIntArray

public void putIntArray(java.lang.String name,
                        int[] array)
                 throws java.io.IOException
Throws:
java.io.IOException

getIntArray

public void getIntArray(java.lang.String name,
                        int[] array)
                 throws java.io.IOException
Throws:
java.io.IOException

putMatrix

public void putMatrix(java.lang.String name,
                      double[][] matrix)
               throws java.io.IOException
Throws:
java.io.IOException

getMatrix

public void getMatrix(java.lang.String name,
                      double[][] matrix)
               throws java.io.IOException
Throws:
java.io.IOException