A_mul_B!(Y, A, B) -> Y

Calculates the matrix-matrix or matrix-vector product $Aâ‹…B$ and stores the result in Y, overwriting the existing value of Y. Note that Y must not be aliased with either A or B.

julia> A=[1.0 2.0; 3.0 4.0]; B=[1.0 1.0; 1.0 1.0]; Y = similar(B); A_mul_B!(Y, A, B);

julia> Y
2x2 Array{Float64,2}:
 3.0  3.0
 7.0  7.0


julia> A = [3 4; 2 1]
2x2 Array{Int64,2}:
 3  4
 2  1

julia> B = [2 1; 3 4]
2x2 Array{Int64,2}:
 2  1
 3  4

julia> X = similar(B)
2x2 Array{Int64,2}:
 59823344  59465432
 59451936         0

julia> A_mul_B!(X, A, B)
2x2 Array{Int64,2}:
 18  19
  7   6

See Also

Ac_ldiv_B, Ac_ldiv_Bc, Ac_mul_B, Ac_mul_Bc, Ac_rdiv_B, Ac_rdiv_Bc, At_ldiv_B, At_ldiv_Bt, At_mul_B, At_mul_Bt, At_rdiv_B, At_rdiv_Bt, A_ldiv_Bc, A_ldiv_Bt, A_mul_B!, A_mul_Bc, A_mul_Bt, A_rdiv_Bc, A_rdiv_Bt, Bidiagonal, cond, conv2, det, diag, diagind, diagm, diff, eig, eigvals, eigvecs, expm, eye, full, inv, isdiag, ishermitian, isposdef, isposdef!, issym, istril, istriu, logabsdet, logdet, lyap, norm, qrfact, rank, repmat, rot180, rotl90, rotr90, sortrows, sqrtm, SymTridiagonal, trace, Tridiagonal, tril, tril!, triu, triu!, writedlm,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field

Checking you are not a robot: