MathPHP\LinearAlgebra\VectorNormsTest::dataProviderForL2Norm PHP 메소드

dataProviderForL2Norm() 공개 메소드

    public function dataProviderForL2Norm()
    {
        return [[[1, 2, 3], 3.7416573867739413], [[7, 5, 5], 9.949874371066199], [[3, 3, 3], 5.196152422706632], [[2, 2, 2], 3.4641016151377544], [[1, 1, 1], 1.7320508075688772], [[0, 0, 0], 0], [[1, 0, 0], 1], [[1, 1, 0], 1.4142135623730951], [[-1, 1, 0], 1.4142135623730951]];
    }