public function asRowMatrix() { return new Matrix([$this->A]); }
/** * Direct product (dyadic) * * [A₁] [A₁B₁ A₁B₂ A₁B₃] * AB = ABᵀ = [A₂] [B₁ B₂ B₃] = [A₂B₁ A₂B₂ A₂B₃] * [A₃] [A₃B₁ A₃B₂ A₃B₃] * * @param Vector $B * * @return Matrix */ public function directProduct(Vector $B) : Matrix { $A = $this->asColumnMatrix(); $Bᵀ = $B->asRowMatrix(); return $A->kroneckerProduct($Bᵀ); }