|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.naokishibata.math.Matrix
public class Matrix
Matrix is an immutable class representing a matrix
Field Summary | |
---|---|
protected double[] |
a
|
protected int |
m
|
protected int |
n
|
Constructor Summary | |
---|---|
Matrix(double[][] ary)
|
|
Matrix(double[] ary,
int m,
int n)
|
|
Matrix(int m0,
int n0)
|
|
Matrix(Matrix m0)
|
Method Summary | |
---|---|
double |
determinant()
Returns the determinant of this matrix |
boolean |
equals(Matrix mat)
|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
static Matrix |
identity(int n0)
|
Matrix |
inversion()
Returns the inversion of this matrix |
int |
m()
Returns the number of of this matrix |
Matrix |
minus(Matrix m0)
|
int |
n()
|
Matrix |
plus(Matrix m0)
|
Matrix |
put(int y,
int x,
double d)
|
Matrix |
put(int y,
int x,
Matrix s)
|
Matrix |
times(double v)
|
Matrix |
times(Matrix m0)
|
java.lang.String |
toString()
|
Matrix |
transposition()
Returns the transposition of this matrix |
double |
v(int y,
int x)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final int n
protected final int m
protected final double[] a
Constructor Detail |
---|
public Matrix(int m0, int n0)
public Matrix(Matrix m0)
public Matrix(double[][] ary)
public Matrix(double[] ary, int m, int n)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(Matrix mat)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static Matrix identity(int n0)
public double v(int y, int x)
public Matrix put(int y, int x, double d)
public Matrix put(int y, int x, Matrix s)
public int n()
public int m()
public Matrix times(Matrix m0)
public Matrix times(double v)
public Matrix plus(Matrix m0)
public Matrix minus(Matrix m0)
public Matrix transposition()
public Matrix inversion()
public double determinant()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |