/src/main/java/net/finmath/functions/LinearAlgebra.java
transpose[colIndex][rowIndex] = matrix[rowIndex][colIndex]; for( int colIndex = 0; colIndex < numberOfCols; colIndex++) {
for ( int colIndex = 0; colIndex < numberOfCols; colIndex++ ) { transpose[colIndex][rowIndex] = matrix[rowIndex][colIndex];
} public static double[][] transpose(final double[][] matrix){ final int numberOfRows = matrix.length; final int numberOfCols = matrix[0].length; final double[][] transpose = new double[numberOfCols][numberOfRows]; for(int rowIndex = 0; rowIndex < numberOfRows; rowIndex++) { <extra_id_0> } } return transpose; } public static double[][] pseudoInverse(final double[][] matrix){ if(isSolverUseApacheCommonsMath) {