package basicUtils;

/**
 * Created by Xiangxi on 2016/12/6.
 * Contact him on zxx_1996@qq.com
 */
public class Matrix {
    //TODO: all the methods in this class are remained for implementation
    public Matrix(double[][] data) {

    }
    public Matrix(int m, int n, double initial) {

    }
    public Matrix add(Matrix rhm) {

        return null;
    }
    public Matrix sub(Matrix rhm) {
        return null;
    }
    public Matrix multiply(Matrix rhm) {
        return null;
    }
    public Matrix multiply(double scalar) {
        return null;
    }
    public Matrix reduce() {
        return null;
    }
    public Matrix linearSolve(Matrix y) {
        return null;
    }
    public Matrix leastSquareSolve(Matrix y) {
        return null;
    }
    public Matrix transpose() {
        return null;
    }
    public double determinant() {
        return 0;
    }
    public Matrix inverse() {
        return null;
    }
    public Matrix[] svd() {
        return null;
    }
    public Matrix copy() {
        return null;
    }
    public Matrix subMatrix(int lx, int ly, int rx, int ry) {
        return null;
    }
    public Matrix columnUnion(Matrix rhm) {
        return null;
    }
}

package basicUtils;

/**
 * Created by Xiangxi on 2016/12/6.
 * Contact him on zxx_1996@qq.com
 */
public class Matrix {
    //TODO: all the methods in this class are remained for implementation
    public Matrix(double[][] data) {

    }
    public Matrix(int m, int n, double initial) {

    }
    public double[][] rawData() {
        return null;
    }
    public Matrix add(Matrix rhm) {

        return null;
    }
    public Matrix sub(Matrix rhm) {
        return null;
    }
    public Matrix multiply(Matrix rhm) {
        return null;
    }
    public Matrix multiply(double scalar) {
        return null;
    }
    public Matrix reduce() {
        return null;
    }
    public Matrix linearSolve(Matrix y) {
        return null;
    }
    public Matrix leastSquareSolve(Matrix y) {
        return null;
    }
    public Matrix transpose() {
        return null;
    }
    public double determinant() {
        return 0;
    }
    public Matrix inverse() {
        return null;
    }
    public Matrix[] svd() {
        return null;
    }
    public Matrix copy() {
        return null;
    }
    public Matrix subMatrix(int lx, int ly, int rx, int ry) {
        return null;
    }
    public Matrix columnUnion(Matrix rhm) {
        return null;
    }
}

Add one more method in Matrix.java that provides data in double[][] form