public class SymetricalMatrix extends GeneralSquareMatrix
| Constructor and Description |
|---|
SymetricalMatrix(double w,
double[] a)
Build the symetrical matrix resulting from the product w.A.At.
|
SymetricalMatrix(int order)
Simple constructor.
|
SymetricalMatrix(int order,
double[] data)
Simple constructor.
|
SymetricalMatrix(SymetricalMatrix s)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Matrix |
duplicate()
Polymorphic copy operator.
|
void |
selfAdd(SymetricalMatrix s)
Add a matrix to the instance.
|
void |
selfAddWAAt(double w,
double[] a)
Add the symetrical matrix resulting from the product w.A.At to the instance.
|
void |
selfSub(SymetricalMatrix s)
Substract a matrix from the instance.
|
void |
setElement(int i,
int j,
double value)
Set a matrix element.
|
void |
setElementAndSymetricalElement(int i,
int j,
double value)
Set both a matrix element and its symetrical element.
|
getDeterminant, getRangeForColumn, getRangeForRow, selfAdd, selfSub, solvegetInverse, solveadd, getColumns, getElement, getRows, getTranspose, mul, mul, selfMul, sub, toStringpublic SymetricalMatrix(int order)
order - order of the matrixpublic SymetricalMatrix(int order,
double[] data)
order - order of the matrixdata - table of the matrix elements (stored row after row)public SymetricalMatrix(SymetricalMatrix s)
s - square matrix to copypublic SymetricalMatrix(double w,
double[] a)
w - multiplicative factor (weight)a - base vector used to compute the symetrical contributionpublic Matrix duplicate()
MatrixObject.clone()
method, except that it has public access, it doesn't throw any
specific exception and it returns a Matrix.duplicate in class GeneralSquareMatrixObject.clone()public void setElement(int i,
int j,
double value)
setElementAndSymetricalElement(int, int, double) can be used to set both elements
simultaneously.setElement in class GeneralSquareMatrixi - row index, from 0 to rows - 1j - column index, from 0 to cols - 1value - value of the elementjava.lang.ArrayIndexOutOfBoundsException - if the indices are wrongsetElementAndSymetricalElement(int, int, double),
Matrix.getElement(int, int)public void setElementAndSymetricalElement(int i,
int j,
double value)
i - row index of first element (column index of second
element), from 0 to order - 1j - column index of first element (row index of second
element), from 0 to order - 1value - value of the elementsjava.lang.ArrayIndexOutOfBoundsException - if the indices are wrongsetElement(int, int, double),
Matrix.getElement(int, int)public void selfAdd(SymetricalMatrix s)
s - symetrical matrix to addjava.lang.IllegalArgumentException - if there is a dimension mismatchpublic void selfSub(SymetricalMatrix s)
s - symetrical matrix to substractjava.lang.IllegalArgumentException - if there is a dimension mismatchpublic void selfAddWAAt(double w,
double[] a)
w - multiplicative factor (weight)a - base vector used to compute the symetrical contributionjava.lang.IllegalArgumentException - if there is a dimension mismatchCopyright © 2001-2007 Luc Maisonobe. All Rights Reserved.