Package io.bhagat.math.linearalgebra
Class Matrix.MatrixIndex
- java.lang.Object
-
- io.bhagat.math.linearalgebra.Matrix.MatrixIndex
-
- Enclosing class:
- Matrix
public static class Matrix.MatrixIndex extends java.lang.ObjectAn object that stores all the information about one index of the matrix- Author:
- Bhagat
-
-
Constructor Summary
Constructors Constructor Description MatrixIndex(int i, int j)constructs a new MatrixIndexMatrixIndex(int i, int j, double value)constructs a new MatrixIndexMatrixIndex(int i, int j, double value, Matrix parent)constructs a new MatrixIndex
-
-
-
Field Detail
-
i
private int i
row index
-
j
private int j
column index
-
value
private double value
value
-
parent
private Matrix parent
parent matrix
-
-
Constructor Detail
-
MatrixIndex
public MatrixIndex(int i, int j)constructs a new MatrixIndex- Parameters:
i- the row indexj- the column index
-
MatrixIndex
public MatrixIndex(int i, int j, double value)constructs a new MatrixIndex- Parameters:
i- the row indexj- the column indexvalue- the value at this index
-
MatrixIndex
public MatrixIndex(int i, int j, double value, Matrix parent)constructs a new MatrixIndex- Parameters:
i- the row indexj- the column indexvalue- the value at this indexparent- the parent matrix
-
-
Method Detail
-
getI
public int getI()
- Returns:
- the i
-
setI
public void setI(int i)
- Parameters:
i- the i to set
-
getJ
public int getJ()
- Returns:
- the j
-
setJ
public void setJ(int j)
- Parameters:
j- the j to set
-
getValue
public double getValue()
- Returns:
- the value
-
setValue
public void setValue(double value)
- Parameters:
value- the value to set
-
getParent
public Matrix getParent()
- Returns:
- the parent
-
setParent
public void setParent(Matrix parent)
- Parameters:
parent- the parent to set
-
-