public class TwoMatrixEntryMTJ extends java.lang.Object implements TwoMatrixEntry
Constructor and Description |
---|
TwoMatrixEntryMTJ(AbstractMTJMatrix firstMatrix,
AbstractMTJMatrix secondMatrix)
Creates a new TwoMatrixEntryMTJ.
|
TwoMatrixEntryMTJ(AbstractMTJMatrix firstMatrix,
AbstractMTJMatrix secondMatrix,
int rowIndex,
int columnIndex)
Creates a new instance of TwoMatrixEntryMTJ.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnIndex()
Getter for columnIndex.
|
AbstractMTJMatrix |
getFirstMatrix()
Getter for firstMatrix.
|
double |
getFirstValue()
Gets the first value from the first underlying matrix.
|
int |
getRowIndex()
Getter for rowIndex.
|
AbstractMTJMatrix |
getSecondMatrix()
Getter for secondMatrix.
|
double |
getSecondValue()
Gets the value from the second underlying matrix.
|
void |
setColumnIndex(int columnIndex)
Setter for columnIndex.
|
void |
setFirstMatrix(AbstractMTJMatrix firstMatrix)
Setter for firstMatrix.
|
void |
setFirstValue(double value)
Sets the first value of the entry into the first underlying matrix.
|
void |
setRowIndex(int rowIndex)
Setter for rowIndex.
|
void |
setSecondMatrix(AbstractMTJMatrix secondMatrix)
Setter for secondMatrix.
|
void |
setSecondValue(double value)
Sets the entry value from the second underlying matrix.
|
public TwoMatrixEntryMTJ(AbstractMTJMatrix firstMatrix, AbstractMTJMatrix secondMatrix)
firstMatrix
- First underlying matrix for the entry.secondMatrix
- Second underlying matrix for the entry.public TwoMatrixEntryMTJ(AbstractMTJMatrix firstMatrix, AbstractMTJMatrix secondMatrix, int rowIndex, int columnIndex)
firstMatrix
- First underlying matrix for the entry.secondMatrix
- Second underlying matrix for the entry.rowIndex
- Current row index for the entry.columnIndex
- Current column index for the entry.public int getColumnIndex()
getColumnIndex
in interface TwoMatrixEntry
public void setColumnIndex(int columnIndex)
setColumnIndex
in interface TwoMatrixEntry
columnIndex
- Current column index.public int getRowIndex()
getRowIndex
in interface TwoMatrixEntry
public void setRowIndex(int rowIndex)
setRowIndex
in interface TwoMatrixEntry
rowIndex
- Current row index for the entry.public AbstractMTJMatrix getFirstMatrix()
public void setFirstMatrix(AbstractMTJMatrix firstMatrix)
firstMatrix
- First underlying matrix in the entry.public AbstractMTJMatrix getSecondMatrix()
public void setSecondMatrix(AbstractMTJMatrix secondMatrix)
secondMatrix
- Second underlying matrix in the entry.public double getFirstValue()
getFirstValue
in interface TwoMatrixEntry
public void setFirstValue(double value)
setFirstValue
in interface TwoMatrixEntry
value
- Value to update the first underlying matrix.public double getSecondValue()
getSecondValue
in interface TwoMatrixEntry
public void setSecondValue(double value)
setSecondValue
in interface TwoMatrixEntry
value
- Value to set the entry in the second underlying matrix.