Java Matrix Invert invertMatrix(int[][] matrix)

Here you can find the source of invertMatrix(int[][] matrix)

Description

invert Matrix

License

Open Source License

Declaration

public static int[][] invertMatrix(int[][] matrix) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int[][] invertMatrix(int[][] matrix) {
        int[][] newMatrix = new int[matrix[0].length][matrix.length];
        for (int x = 0; x < newMatrix[0].length; x++) {
            for (int y = 0; y < newMatrix.length; y++) {
                newMatrix[x][y] = matrix[y][x];
            }/*from www.j  a  v  a2  s  .c om*/
        }
        return newMatrix;
    }
}

Related

  1. invert(float[] mat)
  2. invert2x2(final double[][] src, final double[][] dest)
  3. invert3x3(float[] mat)
  4. invert44Matrix(final double[] m, final double[] invOut)
  5. invertDataSet(double[][] dataSet)
  6. invertMatrix3x3(float[] result, float[] m)
  7. invertMatrix4x4(double[][] A)
  8. invertRegions(int[][] image)
  9. invertSymmetric2x2(final double[][] m, final double[][] inverse)