org.ejml.alg.dense.linsol
Class LinearSolverAbstract

java.lang.Object
  extended by org.ejml.alg.dense.linsol.LinearSolverAbstract
All Implemented Interfaces:
LinearSolver<DenseMatrix64F>
Direct Known Subclasses:
BaseLinearSolverQrp, GaussJordan, GaussJordanNoPivot, LinearSolverChol, LinearSolverCholLDL, LinearSolverLuBase, LinearSolverQr, LinearSolverQrHouse, LinearSolverQrHouseCol, LinearSolverQrHouseTran

public abstract class LinearSolverAbstract
extends Object
implements LinearSolver<DenseMatrix64F>

An abstract class that provides some common functionality and a default implementation of invert that uses the solve function of the child class.

The extending class must explicity call _setA(org.ejml.data.DenseMatrix64F) inside of its LinearSolver.setA(T) function.

Author:
Peter Abeles

Field Summary
protected  DenseMatrix64F A
           
protected  int numCols
           
protected  int numRows
           
 
Constructor Summary
LinearSolverAbstract()
           
 
Method Summary
protected  void _setA(DenseMatrix64F A)
           
 DenseMatrix64F getA()
           
 void invert(DenseMatrix64F A_inv)
          Computes the inverse of of the 'A' matrix passed into LinearSolver.setA(org.ejml.data.Matrix64F) and writes the results to the provided matrix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ejml.alg.dense.linsol.LinearSolver
modifiesA, modifiesB, quality, setA, solve
 

Field Detail

A

protected DenseMatrix64F A

numRows

protected int numRows

numCols

protected int numCols
Constructor Detail

LinearSolverAbstract

public LinearSolverAbstract()
Method Detail

getA

public DenseMatrix64F getA()

_setA

protected void _setA(DenseMatrix64F A)

invert

public void invert(DenseMatrix64F A_inv)
Description copied from interface: LinearSolver
Computes the inverse of of the 'A' matrix passed into LinearSolver.setA(org.ejml.data.Matrix64F) and writes the results to the provided matrix. If 'A_inv' needs to be different from 'A' is implementation dependent.

Specified by:
invert in interface LinearSolver<DenseMatrix64F>
Parameters:
A_inv - Where the inverted matrix saved. Modified.


Copyright © 2012. All Rights Reserved.