Here you can find the source of matrix2Vector(double[][] m)
public static double[] matrix2Vector(double[][] m)
//package com.java2s; //License from project: Apache License public class Main { public static double[] matrix2Vector(double[][] m) { double[] v = new double[m.length]; for (int i = 0; i < v.length; i++) { v[i] = m[i][0];//from w w w . j a v a 2 s . c om } return v; } }