MatrixSolver

Inheritance: java.lang.Object

public class MatrixSolver

Constructors

Constructor Description
MatrixSolver()

Methods

Method Description
add(double[][] Mat1, double[][] Mat2) Returns the summation of two matrices with compatible dimensions.
det(double[][] Mat) Returns the determinant of a matrix with [n,n] dimension.
equals(Object arg0)
getClass()
hashCode()
inverse(double[][] Mat) Returns the inverse of a matrix with [n,n] dimension and whose determinant is not zero.
multiply(double[][] Mat1, double[][] Mat2) Returns the multiplication of two matrices with compatible dimensions.
notify()
notifyAll()
subtract(double[][] Mat1, double[][] Mat2) Returns the difference of two matrices with compatible dimensions.
toString()
transpose(double[][] Mat) Returns the transpose of a matrix.
wait()
wait(long arg0)
wait(long arg0, int arg1)

MatrixSolver()

public MatrixSolver()

add(double[][] Mat1, double[][] Mat2)

public static double[][] add(double[][] Mat1, double[][] Mat2)

Returns the summation of two matrices with compatible dimensions. In case of an error the error is raised as an exception.

Parameters:

Parameter Type Description
Mat1 double[][] First array in the summation
Mat2 double[][] Second array in the summation

Returns: double[][] - Sum of Mat1 and Mat2 as an array

det(double[][] Mat)

public static double det(double[][] Mat)

Returns the determinant of a matrix with [n,n] dimension. In case of an error the error is raised as an exception.

Parameters:

Parameter Type Description
Mat double[][] Array with [n,n] dimension whose determinant is to be found

Returns: double - Determinant of the array

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

inverse(double[][] Mat)

public static double[][] inverse(double[][] Mat)

Returns the inverse of a matrix with [n,n] dimension and whose determinant is not zero. In case of an error the error is raised as an exception.

Parameters:

Parameter Type Description
Mat double[][] Array with [n,n] dimension whose inverse is to be found

Returns: double[][] - Inverse of the array as an array

multiply(double[][] Mat1, double[][] Mat2)

public static double[][] multiply(double[][] Mat1, double[][] Mat2)

Returns the multiplication of two matrices with compatible dimensions. In case of an error the error is raised as an exception.

Parameters:

Parameter Type Description
Mat1 double[][] First array in multiplication
Mat2 double[][] Second array in multiplication

Returns: double[][] - Mat1 multiplied by Mat2 as an array

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

subtract(double[][] Mat1, double[][] Mat2)

public static double[][] subtract(double[][] Mat1, double[][] Mat2)

Returns the difference of two matrices with compatible dimensions. In case of an error the error is raised as an exception.

Parameters:

Parameter Type Description
Mat1 double[][] First array in the subtraction
Mat2 double[][] Second array in the subtraction

Returns: double[][] - Difference of Mat1 and Mat2 as an array

toString()

public String toString()

Returns: java.lang.String

transpose(double[][] Mat)

public static double[][] transpose(double[][] Mat)

Returns the transpose of a matrix. In case of an error the error is raised as an exception.

Parameters:

Parameter Type Description
Mat double[][] Array whose transpose is to be found

Returns: double[][] - Transpose of the array as an array

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int