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

            assertMatrix(DoubleMatrix.ofArrayObjects(1, 2, i => DoubleArray.of(counter.AndIncrement, counter.AndIncrement)), 2d, 3d);
            assertThrowsIllegalArg(() => DoubleMatrix.ofArrayObjects(1, 2, i => DoubleArray.EMPTY));
        }