public function asColumnMatrix() { $matrix = []; foreach ($this->A as $element) { $matrix[] = [$element]; } return new Matrix($matrix); }