Example #1
0
 public function testMultiply()
 {
     $column = new ColumnVector(25, 5, 1);
     $column2 = $column->multiply(ColumnVector::initialize(3, 2.56));
     $this->assertInstanceOf(ColumnVector::class, $column2);
     $this->assertSame([25.0, 5.0, 1.0], $column->toArray());
     $this->assertSame([64.0, 12.8, 2.56], $column2->toArray());
 }