Classes Matrix question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #16
    The parameters of your inner product function call are incorrect: you should pass
    i and j instead of r and t.

    kind regards,

    Jos

    Comment

    • Hypnotik
      New Member
      • Jun 2007
      • 87

      #17
      Because by passing r & t I'm sending the size of the matrix to the innerprod function as opposed to sending the actual input?

      This is just for my understanding?

      Thanks,
      J

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #18
        Originally posted by Hypnotik
        Because by passing r & t I'm sending the size of the matrix to the innerprod function as opposed to sending the actual input?

        This is just for my understanding?

        Thanks,
        J
        You want the dot product of row i and column j so you should pass those to your
        innerproduct function, not the maximum allowed values of i and j. Since your
        matrices are supposed to be square you can remove some redundancy later.

        kind regards,

        Jos

        Comment

        • Hypnotik
          New Member
          • Jun 2007
          • 87

          #19
          Thanks a TON.

          Now on to TicTacToe.



          Thanks again,
          J

          Comment

          Working...