spoke.math.numeric
Class Matrix
java.lang.Object
spoke.math.numeric.Arithmetic
spoke.math.numeric.Matrix
- All Implemented Interfaces:
- Comparable
public class Matrix
- extends Arithmetic
Field Summary |
double[][] |
element
|
protected int |
n
|
protected int |
p
|
Constructor Summary |
Matrix(double[][] element)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
element
public double[][] element
n
protected int n
p
protected int p
Matrix
public Matrix(double[][] element)
add
public Arithmetic add(double d)
- Specified by:
add
in class Arithmetic
subtract
public Arithmetic subtract(double d)
- Specified by:
subtract
in class Arithmetic
multiply
public Arithmetic multiply(double d)
- Specified by:
multiply
in class Arithmetic
divide
public Arithmetic divide(double d)
- Specified by:
divide
in class Arithmetic
add
public Arithmetic add(Arithmetic arithmetic)
- Specified by:
add
in class Arithmetic
subtract
public Arithmetic subtract(Arithmetic arithmetic)
- Overrides:
subtract
in class Arithmetic
multiply
public Arithmetic multiply(Arithmetic arithmetic)
- Specified by:
multiply
in class Arithmetic
divide
public Arithmetic divide(Arithmetic arithmetic)
- Specified by:
divide
in class Arithmetic
negate
public Arithmetic negate()
- Specified by:
negate
in class Arithmetic
signum
public int signum()
- Specified by:
signum
in class Arithmetic
valueof
public Arithmetic valueof(double d)
- Specified by:
valueof
in class Arithmetic
tensorProduct
public Arithmetic tensorProduct(Matrix matrix)
transpose
public Arithmetic transpose()
trace
public double trace()
determinant
public double determinant()
identity
public static Matrix identity(int dimension)
frame
public static Matrix frame(SpokeVector[] vector)
rotation
public static Matrix rotation(int dimension,
int plane,
double angle)
rotation
public static Matrix rotation(int dimension,
int axis1,
int axis2,
double angle)
newinstance
protected Arithmetic newinstance()
- Specified by:
newinstance
in class Arithmetic
newinstance
protected Arithmetic newinstance(int n,
int p)