Here you can find the source of toString(double[][] A)
public static String toString(double[][] A)
//package com.java2s; //License from project: Creative Commons License import java.util.Arrays; public class Main { public static String toString(double[][] A) { StringBuilder sb = new StringBuilder("("); for (double[] rawA : A) sb.append(Arrays.toString(rawA)).append(','); sb.delete(sb.length() - 1, sb.length()).append(')'); return sb.toString(); }/*w ww . jav a2 s . c om*/ public static double length(double[] x) { double len = 0; for (int index = 0; index < x.length; index++) len += x[index] * x[index]; return Math.sqrt(len); } }