private static void testResults() {

        double[] randomNumbers = new double[1000];
        Random rand = new Random();
        for(int i = 0; i < randomNumbers.length; ++i) {
            randomNumbers[i] = rand.nextDouble() - 0.5;
        }

        DenseMatrix64F vector1 = new DenseMatrix64F(1000, 1);
        vector1.data = randomNumbers.clone();
        FastMath.softmax(vector1);

        DenseMatrix64F vector2 = new DenseMatrix64F(1000, 1);
        vector2.data = randomNumbers.clone();
        FastMath.fastSoftmax(vector2);

        System.out.println("SOFTMAX test");
        for (int i = 0; i < 1000; ++i) {
            if (Math.abs(vector1.data[i] - vector2.data[i]) > 0.00000001) {
                System.out.print("#");
            }
        }
    }