|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.javasoft.smx.impl.AbstractDoubleMatrix
ch.javasoft.smx.impl.SubDoubleMatrix
public class SubDoubleMatrix
The SubDoubleMatrix TODO type javadoc for SubDoubleMatrix
| Constructor Summary | |
|---|---|
SubDoubleMatrix(DoubleMatrix base,
boolean selectAllRows,
boolean selectAllColumns)
|
|
| Method Summary | |
|---|---|
void |
addRowToOtherRow(int srcRow,
double srcFactor,
int dstRow,
double dstFactor)
|
SubDoubleMatrix |
clone()
|
int |
getColumnCount()
|
double |
getDoubleValueAt(int row,
int col)
|
int |
getMappedRow(int row)
|
int |
getRowCount()
|
int[] |
getRowMapping()
|
int |
getUnmappedRow(int rowInBaseMatrix)
|
void |
multiplyRow(int row,
double factor)
|
SubDoubleMatrix |
newInstance(Double[][] data,
boolean rowsInDim1)
|
SubDoubleMatrix |
newInstance(int rows,
int cols)
|
void |
selectAllColumns()
|
void |
selectAllRows()
|
int |
selectColumn(int colInBaseMatrix)
Selects a given column from the underlying base matrix and appends it to the end of the columnset of this SubDoubleMatrix |
int |
selectColumn(int fromColInBaseMatrix,
int toColInBaseMatrix)
|
int |
selectRow(int rowInBaseMatrix)
Selects a given row from the underlying base matrix and appends it to the end of the rowset of this SubDoubleMatrix |
int |
selectRows(int fromRowInBaseMatrix,
int toRowInBaseMatrix)
Selects a range of rows from the underlying base matrix and appends them to the end of the rowset of this SubDoubleMatrix |
void |
setValueAt(int row,
int col,
double value)
|
void |
swapRows(int rowA,
int rowB)
|
void |
switchSelectedColumn(int col,
int colInBaseMatrix)
|
void |
switchSelectedRow(int row,
int rowInBaseMatrix)
|
SubDoubleMatrix |
transpose()
|
void |
unselectAllColumns()
|
void |
unselectAllRows()
|
void |
unselectColumn(int col)
|
void |
unselectColumns(int fromCol,
int toCol)
|
void |
unselectRow(int row)
|
void |
unselectRows(int fromRow,
int toRow)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SubDoubleMatrix(DoubleMatrix base,
boolean selectAllRows,
boolean selectAllColumns)
| Method Detail |
|---|
public int selectRow(int rowInBaseMatrix)
SubDoubleMatrix
rowInBaseMatrix - The row index in the underlying base matrix
SubDoubleMatrix
public int selectRows(int fromRowInBaseMatrix,
int toRowInBaseMatrix)
SubDoubleMatrix
fromRowInBaseMatrix - The start row index in the underlying base matrix (inclusive)toRowInBaseMatrix - The end row index in the underlying base matrix (exclusive)
SubDoubleMatrix of the first row added. The next
rows are appended, the last row is at position getColumnCount() - 1.public void selectAllRows()
public void switchSelectedRow(int row,
int rowInBaseMatrix)
public int getMappedRow(int row)
public int getUnmappedRow(int rowInBaseMatrix)
public int[] getRowMapping()
public int selectColumn(int colInBaseMatrix)
SubDoubleMatrix
colInBaseMatrix - The column index in the underlying base matrix
SubDoubleMatrix
public int selectColumn(int fromColInBaseMatrix,
int toColInBaseMatrix)
public void selectAllColumns()
public void switchSelectedColumn(int col,
int colInBaseMatrix)
public void unselectRow(int row)
public void unselectRows(int fromRow,
int toRow)
public void unselectAllRows()
public void unselectColumn(int col)
public void unselectColumns(int fromCol,
int toCol)
public void unselectAllColumns()
public double getDoubleValueAt(int row,
int col)
public void setValueAt(int row,
int col,
double value)
public void addRowToOtherRow(int srcRow,
double srcFactor,
int dstRow,
double dstFactor)
addRowToOtherRow in interface WritableDoubleMatrix<Double>addRowToOtherRow in class AbstractDoubleMatrix
public void multiplyRow(int row,
double factor)
multiplyRow in interface WritableDoubleMatrix<Double>multiplyRow in class AbstractDoubleMatrixpublic SubDoubleMatrix clone()
clone in interface DoubleMatrixclone in interface MatrixBase<Double>clone in interface ReadableMatrix<Double>clone in interface WritableMatrix<Double>clone in class AbstractDoubleMatrix
public SubDoubleMatrix newInstance(int rows,
int cols)
public SubDoubleMatrix newInstance(Double[][] data,
boolean rowsInDim1)
public int getRowCount()
public int getColumnCount()
public void swapRows(int rowA,
int rowB)
public SubDoubleMatrix transpose()
transpose in interface DoubleMatrixtranspose in interface MatrixBase<Double>transpose in interface ReadableMatrix<Double>transpose in interface WritableMatrix<Double>transpose in class AbstractDoubleMatrix
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||