MathPHP\LinearAlgebra\MatrixOperationsTest::testHadamardProductDimensionsDoNotMatch PHP Метод

testHadamardProductDimensionsDoNotMatch() публичный Метод

    public function testHadamardProductDimensionsDoNotMatch()
    {
        $A = MatrixFactory::create([[1, 2, 3], [2, 3, 4]]);
        $B = MatrixFactory::create([[1, 2, 3, 4], [2, 3, 4, 5]]);
        $this->setExpectedException('MathPHP\\Exception\\MatrixException');
        $A->hadamardProduct($B);
    }
MatrixOperationsTest