Is there any way to vectorize matrix multiplication?

Discussion in 'MATLAB' started by GOP_2004, Jul 31, 2004.

  1. GOP_2004

    GOP_2004 Guest

    Suppose A and B are [3,3,N] matrices. Is there any way to vectorize A*B
    matrix multiplication, not element wise? Currently I am doing the

    for gg = 1:N
    C:),:,gg) = A:),:,gg)*B:),:,gg);

    GOP_2004, Jul 31, 2004
    1. Advertisements

  2. I think there is no possility to avoid the loop. But take a look at

    Herbert Ramoser, Aug 2, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.