MathPHP\LinearAlgebra\MatrixOperationsTest::testScalarMultiplyExceptionKNotNumber PHP Method

testScalarMultiplyExceptionKNotNumber() public method

    public function testScalarMultiplyExceptionKNotNumber()
    {
        $A = MatrixFactory::create([[1, 2, 3], [2, 3, 4]]);
        $this->setExpectedException('MathPHP\\Exception\\BadParameterException');
        $A->scalarMultiply('k');
    }
MatrixOperationsTest