divideByScalar() public method

public divideByScalar ( $value ) : Matrix
$value
return Matrix
Example #1
0
 public function testDivideByScalar()
 {
     $matrix = new Matrix([[4, 6, 8], [2, 10, 20]]);
     $quotient = [[2, 3, 4], [1, 5, 10]];
     $this->assertEquals($quotient, $matrix->divideByScalar(2)->toArray());
 }