|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| AbstractNamedDoubleMatrix.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
package baseCode.dataStructure.matrix;
|
|
| 2 |
|
|
| 3 |
import cern.colt.list.DoubleArrayList;
|
|
| 4 |
import cern.colt.matrix.DoubleMatrix1D;
|
|
| 5 |
|
|
| 6 |
/**
|
|
| 7 |
*
|
|
| 8 |
*
|
|
| 9 |
* <hr>
|
|
| 10 |
* <p>Copyright (c) 2004 Columbia University
|
|
| 11 |
* @author pavlidis
|
|
| 12 |
* @version $Id: AbstractNamedDoubleMatrix.java,v 1.4 2004/08/18 23:44:10 pavlidis Exp $
|
|
| 13 |
*/
|
|
| 14 |
/**
|
|
| 15 |
*
|
|
| 16 |
*
|
|
| 17 |
* <hr>
|
|
| 18 |
* <p>Copyright (c) 2004 Columbia University
|
|
| 19 |
* @author pavlidis
|
|
| 20 |
* @version $Id: AbstractNamedDoubleMatrix.java,v 1.4 2004/08/18 23:44:10 pavlidis Exp $
|
|
| 21 |
*/
|
|
| 22 |
public abstract class AbstractNamedDoubleMatrix extends AbstractNamedMatrix { |
|
| 23 |
|
|
| 24 |
/* (non-Javadoc)
|
|
| 25 |
* @see baseCode.dataStructure.matrix.NamedMatrix#rows()
|
|
| 26 |
*/
|
|
| 27 |
public abstract int rows() ; |
|
| 28 |
|
|
| 29 |
/* (non-Javadoc)
|
|
| 30 |
* @see baseCode.dataStructure.matrix.NamedMatrix#columns()
|
|
| 31 |
*/
|
|
| 32 |
public abstract int columns(); |
|
| 33 |
|
|
| 34 |
/* (non-Javadoc)
|
|
| 35 |
* @see baseCode.dataStructure.matrix.NamedMatrix#set(int, int, java.lang.Object)
|
|
| 36 |
*/
|
|
| 37 |
public abstract void set( int i, int j, Object val ); |
|
| 38 |
|
|
| 39 |
/* (non-Javadoc)
|
|
| 40 |
* @see baseCode.dataStructure.matrix.NamedMatrix#getRowObj(int)
|
|
| 41 |
*/
|
|
| 42 |
public abstract Object[] getRowObj( int i ); |
|
| 43 |
|
|
| 44 |
/* (non-Javadoc)
|
|
| 45 |
* @see baseCode.dataStructure.matrix.NamedMatrix#getColObj(int)
|
|
| 46 |
*/
|
|
| 47 |
public abstract Object[] getColObj( int i ); |
|
| 48 |
|
|
| 49 |
/* (non-Javadoc)
|
|
| 50 |
* @see baseCode.dataStructure.matrix.NamedMatrix#isMissing(int, int)
|
|
| 51 |
*/
|
|
| 52 |
public abstract boolean isMissing( int i, int j ); |
|
| 53 |
|
|
| 54 |
public abstract double[] getRow(int i); |
|
| 55 |
|
|
| 56 |
public abstract DoubleArrayList getRowArrayList(int i); |
|
| 57 |
|
|
| 58 |
|
|
| 59 |
public abstract double get(int x, int y ); |
|
| 60 |
|
|
| 61 |
/**
|
|
| 62 |
* @param i
|
|
| 63 |
* @param j
|
|
| 64 |
* @return
|
|
| 65 |
*/
|
|
| 66 |
public abstract double getQuick( int i, int j ); |
|
| 67 |
|
|
| 68 |
public abstract void set(int x, int y, double value); |
|
| 69 |
|
|
| 70 |
|
|
| 71 |
/**
|
|
| 72 |
* @param j
|
|
| 73 |
* @return
|
|
| 74 |
*/
|
|
| 75 |
public abstract DoubleMatrix1D viewRow( int j ); |
|
| 76 |
|
|
| 77 |
/**
|
|
| 78 |
* @param s String
|
|
| 79 |
* @return double[]
|
|
| 80 |
*/
|
|
| 81 | 0 |
public double[] getRowByName( String s ) { |
| 82 | 0 |
return getRow( getRowIndexByName( s ) );
|
| 83 |
} |
|
| 84 |
|
|
| 85 |
} |
|
| 86 |
|
|
||||||||||