Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Complex Multiplication

Complex Multiplication

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsquestionlearning
3 Posts 2 Posters 0 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.
  • R Offline
    R Offline
    Roger Wright new
    wrote on last edited by
    #1

    As I was skimming through a reference book tonight I ran across a description of the template class, complex. I know nothing of it, having had no prior need for it, but I'm curious about the operator: complex& operator*=(const complex& rhs) Does the return value contain the dot (scalar) or the cross (vector) product? And if it's the cross product, which part of the return value represents the component normal to the Re/Im plane? Can't imagine any immediate use for knowing, but who knows when the circumstance might arise...

    M 1 Reply Last reply
    0
    • R Roger Wright new

      As I was skimming through a reference book tonight I ran across a description of the template class, complex. I know nothing of it, having had no prior need for it, but I'm curious about the operator: complex& operator*=(const complex& rhs) Does the return value contain the dot (scalar) or the cross (vector) product? And if it's the cross product, which part of the return value represents the component normal to the Re/Im plane? Can't imagine any immediate use for knowing, but who knows when the circumstance might arise...

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Check out the <complex> header, all the code's there. I found two *= functions, one that does each type of product. --Mike-- My really out-of-date homepage Buffy's on. Gotta go, bye! Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan.

      R 1 Reply Last reply
      0
      • M Michael Dunn

        Check out the <complex> header, all the code's there. I found two *= functions, one that does each type of product. --Mike-- My really out-of-date homepage Buffy's on. Gotta go, bye! Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan.

        R Offline
        R Offline
        Roger Wright new
        wrote on last edited by
        #3

        Thanks! As I mentioned, I don't have an immediate use for it, but one of the projects I've got in the back of my head may need the capability. It's more of a vector problem than a complex number application, but as long as we're limited to two dimensions (and the project is, fundamentally, two-dimensional) a solution using complex numbers will do nicely..

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups