MCordingley\LinearAlgebra\Matrix::concatenateRight PHP 메소드

concatenateRight() 공개 메소드

public concatenateRight ( self $other ) : self
$other self
리턴 self
    public function concatenateRight(self $other) : self
    {
        return $this->spliceColumns($this->getColumnCount(), 0, $other->toArray());
    }

Usage Example

예제 #1
0
 public function testConcatenateRightWrongSizes()
 {
     $matrixA = new Matrix([[1, 2, 3]]);
     $matrixB = new Matrix([[4], [5], [6]]);
     static::expectException(MatrixException::class);
     $matrixA->concatenateRight($matrixB);
 }