CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 27

Threaded View

  1. #4
    Join Date
    Mar 2010
    Posts
    13

    Re: matrix multiplication

    the program would have to do:
    Code:
    n=a*y+b*z and m=c*y+d*z
    
    i figured that it has to be somewhat like this:
    
    for(int nRo = 0; nRow < resmatrix.m_nRowCount; nRow++)
    {
    for(int nCol = 0; nCol < resmatrix.m_nColumnCount; nCol++)
    {
    now i have acces to the matrix element holding the resolution(n)
    resmatrix.pfaMatrix[nRow * resmatrix.m_nColumnCount + nCol] = /*What should the equation be here*/
    }
    }
    sorry for the screwed up double post.. no edit button.
    Last edited by replax; March 28th, 2010 at 06:04 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured