static double innprod(double[] c, double[] x){ //Innen-Produkt c^T x double sum = 0; for (int i=0; i