MathPHP\LinearAlgebra\Vector::directProduct PHP Method

directProduct() public method

[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₃]
public directProduct ( Vector $B ) : Matrix
$B Vector
return Matrix
    public function directProduct(Vector $B) : Matrix
    {
        $A = $this->asColumnMatrix();
        $Bᵀ = $B->asRowMatrix();
        return $A->kroneckerProduct($Bᵀ);
    }