public virtual void test_ofUnsafe()
        {
            double[][] @base = new double[][]
            {
                new double[] { 1d, 2d },
                new double[] { 3d, 4d }
            };
            DoubleMatrix test = DoubleMatrix.ofUnsafe(@base);

            assertMatrix(test, 1d, 2d, 3d, 4d);
            @base[0][0] = 7d;
            // internal state of object mutated - don't do this in application code!
            assertMatrix(test, 7d, 2d, 3d, 4d);
            // empty
            assertMatrix(DoubleMatrix.ofUnsafe(new double[0][]));
            assertMatrix(DoubleMatrix.ofUnsafe(new double[0][2]));
//JAVA TO C# CONVERTER NOTE: The following call to the 'RectangularArrays' helper class reproduces the rectangular array initialization that is automatic in Java:
//ORIGINAL LINE: assertMatrix(DoubleMatrix.ofUnsafe(new double[2][0]));
            assertMatrix(DoubleMatrix.ofUnsafe(RectangularArrays.ReturnRectangularDoubleArray(2, 0)));
        }