public virtual void test_ofArrays()
        {
            assertMatrix(DoubleMatrix.ofArrays(0, 0, i =>
            {
                throw new AssertionError();
            }));
            assertMatrix(DoubleMatrix.ofArrays(0, 2, i =>
            {
                throw new AssertionError();
            }));
            assertMatrix(DoubleMatrix.ofArrays(2, 0, i =>
            {
                throw new AssertionError();
            }));
            AtomicInteger counter = new AtomicInteger(2);

            assertMatrix(DoubleMatrix.ofArrays(1, 2, i => new double[] { counter.AndIncrement, counter.AndIncrement }), 2d, 3d);
            assertThrowsIllegalArg(() => DoubleMatrix.ofArrays(1, 2, i => new double[0]));
        }