spliceRows() public method

public spliceRows ( integer $offset, integer $length = null, array $replacement = null ) : self
$offset integer
$length integer
$replacement array
return self
Example #1
0
 public function testSpliceUnevenRows()
 {
     $matrix = new Matrix([[1, -1, 2], [4, 0, 6], [0, 1, -1]]);
     static::expectException(MatrixException::class);
     $matrix->spliceRows(1, 1, [[8, 5, 1], [2]]);
 }