Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGenericMatrix multiplication order
Forum Updated to NodeBB v4.3 + New Features

QGenericMatrix multiplication order

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 998 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dannox
    wrote on last edited by
    #1

    QGenericMatrix<M1, M2, T> operator* ( const QGenericMatrix<N, M2, T> & m1, const QGenericMatrix<M1, N, T> & m2 )

    Hi All,
    that is the multiplication operator signature, but there is something that confuses me.

    if result matrix A is m1 x m2 matrix, a left hand operand should be B m1 x n matrix while the right one C n x m2.
    Why the parameters are inverted in the parameters list?
    In that way I should code A = C * B but really I mean B * C
    This should be related to pre or post multiply a matrix to another one, but it is very counterintuitive

    best regards,
    daniele

    Daniele Giunchi
    Framework Architect
    Software Developer

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved