LinAlg
Class ColtSparseMatrix

java.lang.Object
  extended bycern.colt.PersistentObject
      extended bycern.colt.matrix.impl.AbstractMatrix
          extended bycern.colt.matrix.impl.AbstractMatrix2D
              extended bycern.colt.matrix.DoubleMatrix2D
                  extended bycern.colt.matrix.impl.SparseDoubleMatrix2D
                      extended byLinAlg.ColtSparseMatrix
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class ColtSparseMatrix
extends cern.colt.matrix.impl.SparseDoubleMatrix2D

Some convenience methods for cern.colt.matrix.impl.SparseDoubleMatrix2D matrices. Class not yet developed, disregard.

See Also:
Serialized Form

Field Summary
static cern.colt.matrix.linalg.Blas blas
          cern.colt.matrix.linalg.SeqBlas (non mulTithreaded) Blas object.
static cern.colt.matrix.linalg.Algebra linAlg
          cern.colt.matrix.linalg.Algebra object with default tolerances.
 
Fields inherited from class cern.colt.matrix.impl.SparseDoubleMatrix2D
dummy, elements
 
Fields inherited from class cern.colt.matrix.impl.AbstractMatrix2D
columns, columnStride, columnZero, rows, rowStride, rowZero
 
Fields inherited from class cern.colt.matrix.impl.AbstractMatrix
isNoView
 
Fields inherited from class cern.colt.PersistentObject
serialVersionUID
 
Constructor Summary
ColtSparseMatrix(double[][] entries)
          Entries derived from given double[][].
ColtSparseMatrix(int rows, int columns)
          all entries zero.
 
Method Summary
static ColtVector linearSystemSolution(ColtSparseMatrix A, ColtVector y)
          Returns the ColtVector solution vector x of the linear equation Ax=y.
static void main(java.lang.String[] args)
          TEST PROGRAM
 
Methods inherited from class cern.colt.matrix.impl.SparseDoubleMatrix2D
assign, assign, assign, assign, cardinality, ensureCapacity, forEachNonZero, getQuick, haveSharedCellsRaw, index, like, like1D, like1D, setQuick, trimToSize, viewSelectionLike, zMult, zMult
 
Methods inherited from class cern.colt.matrix.DoubleMatrix2D
aggregate, aggregate, assign, copy, equals, equals, get, getContent, getNonZeros, haveSharedCells, like, set, toArray, toString, view, viewColumn, viewColumnFlip, viewDice, viewPart, viewRow, viewRowFlip, viewSelection, viewSelection, viewSorted, viewStrides, zAssign8Neighbors, zMult, zMult, zSum
 
Methods inherited from class cern.colt.matrix.impl.AbstractMatrix2D
_columnOffset, _columnRank, _rowOffset, _rowRank, checkBox, checkColumn, checkColumnIndexes, checkRow, checkRowIndexes, checkShape, checkShape, columns, rows, setUp, setUp, size, toStringShort, vColumnFlip, vDice, vPart, vRowFlip, vStrides
 
Methods inherited from class cern.colt.matrix.impl.AbstractMatrix
isView
 
Methods inherited from class cern.colt.PersistentObject
clone
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

linAlg

public static final cern.colt.matrix.linalg.Algebra linAlg
cern.colt.matrix.linalg.Algebra object with default tolerances. Has some basic linear algreba routines.


blas

public static final cern.colt.matrix.linalg.Blas blas
cern.colt.matrix.linalg.SeqBlas (non mulTithreaded) Blas object. Has some basic linear algebra routines.

Constructor Detail

ColtSparseMatrix

public ColtSparseMatrix(double[][] entries)

Entries derived from given double[][].

Parameters:
entries - the matrix entries.

ColtSparseMatrix

public ColtSparseMatrix(int rows,
                        int columns)
all entries zero.

Method Detail

linearSystemSolution

public static ColtVector linearSystemSolution(ColtSparseMatrix A,
                                              ColtVector y)
Returns the ColtVector solution vector x of the linear equation Ax=y. Exact solution if A is square, least squares solution otherwise.


main

public static void main(java.lang.String[] args)
TEST PROGRAM