public static void fastSigmoid(DenseMatrix64F vector) {

        double[] data = vector.getData();
        for (int i = 0; i < data.length; ++i) {
            if (data[i] > 50) data[i] = 50;
            if (data[i] < -50) data[i] = -50;
            data[i] = -data[i];
        }
        info.yeppp.Math.Exp_V64f_V64f(data, 0, data, 0, data.length);
        for (int i = 0; i < data.length; ++i) {
            data[i] = 1 / (1 + data[i]);
        }
    }