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. 880129 - class of matrix of complex numbers

880129 - class of matrix of complex numbers

Scheduled Pinned Locked Moved C / C++ / MFC
lounge
11 Posts 3 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.
  • I ilostmyid2

    hi i need a simple class which implements a matrix of mxn elements of complex numbers. i need this class to be a complete one. eg. supports inverse and multiplication to another matrix. i don't need it to be a template one. components are always complex numbers. but if it be, it would be more general. thx

    CPalliniC Offline
    CPalliniC Offline
    CPallini
    wrote on last edited by
    #2

    Well, you are a software developer, arent you? Code it. :)

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
    [My articles]

    In testa che avete, signor di Ceprano?

    I 1 Reply Last reply
    0
    • I ilostmyid2

      hi i need a simple class which implements a matrix of mxn elements of complex numbers. i need this class to be a complete one. eg. supports inverse and multiplication to another matrix. i don't need it to be a template one. components are always complex numbers. but if it be, it would be more general. thx

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #3

      ilostmyid2 wrote:

      i don't need it to be a template one

      Shame that, 'cause otherwise I'd suggest std::complex[^] + Boost's UBLAS classes[^]. Still, I'm sure you've got a good reason not to use templates.

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      I 1 Reply Last reply
      0
      • CPalliniC CPallini

        Well, you are a software developer, arent you? Code it. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        I Offline
        I Offline
        ilostmyid2
        wrote on last edited by
        #4

        yeah, i am, but indeed i've forgotten some mathematical bases! ;P for example, i've no idea about how to invert a matrix! :-D

        CPalliniC 1 Reply Last reply
        0
        • S Stuart Dootson

          ilostmyid2 wrote:

          i don't need it to be a template one

          Shame that, 'cause otherwise I'd suggest std::complex[^] + Boost's UBLAS classes[^]. Still, I'm sure you've got a good reason not to use templates.

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          I Offline
          I Offline
          ilostmyid2
          wrote on last edited by
          #5

          i've said that i don't NEED it to use a template type for the elements, that's if it's not template, it's also acceptable if it uses complex for the elements. i knew the complex class and had used it. i couldn't find any code in the other link for inverting a matrix. i've not much time in understanding and remembering the basic concepts and writing the code based on them. i need a ready-to-use class.

          modified on Saturday, April 18, 2009 10:47 PM

          S 1 Reply Last reply
          0
          • I ilostmyid2

            i've said that i don't NEED it to use a template type for the elements, that's if it's not template, it's also acceptable if it uses complex for the elements. i knew the complex class and had used it. i couldn't find any code in the other link for inverting a matrix. i've not much time in understanding and remembering the basic concepts and writing the code based on them. i need a ready-to-use class.

            modified on Saturday, April 18, 2009 10:47 PM

            S Offline
            S Offline
            Stuart Dootson
            wrote on last edited by
            #6

            Google[^] is your friend[^]?

            Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

            1 Reply Last reply
            0
            • I ilostmyid2

              yeah, i am, but indeed i've forgotten some mathematical bases! ;P for example, i've no idea about how to invert a matrix! :-D

              CPalliniC Offline
              CPalliniC Offline
              CPallini
              wrote on last edited by
              #7

              There's the oldie-goldie "Numerical Recipes in C" [^]. :)

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
              [My articles]

              In testa che avete, signor di Ceprano?

              I 1 Reply Last reply
              0
              • CPalliniC CPallini

                There's the oldie-goldie "Numerical Recipes in C" [^]. :)

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                [My articles]

                I Offline
                I Offline
                ilostmyid2
                wrote on last edited by
                #8

                thx indeed i've revised the mister Roger Allen's code: A matrix class with serialization and advanced input/output functions[^] and have changed the element from real numbers to complex numbers. i like to upload it like himself, but i don't know how. it's a good idea to do a survey if one is interested.

                CPalliniC 1 Reply Last reply
                0
                • I ilostmyid2

                  thx indeed i've revised the mister Roger Allen's code: A matrix class with serialization and advanced input/output functions[^] and have changed the element from real numbers to complex numbers. i like to upload it like himself, but i don't know how. it's a good idea to do a survey if one is interested.

                  CPalliniC Offline
                  CPalliniC Offline
                  CPallini
                  wrote on last edited by
                  #9

                  ilostmyid2 wrote:

                  i like to upload it like himself, but i don't know how.

                  :confused: Do you possibly mean that you want to write an article about? Write it, it would be welcome, I suppose. :)

                  If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                  This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                  [My articles]

                  In testa che avete, signor di Ceprano?

                  I 1 Reply Last reply
                  0
                  • CPalliniC CPallini

                    ilostmyid2 wrote:

                    i like to upload it like himself, but i don't know how.

                    :confused: Do you possibly mean that you want to write an article about? Write it, it would be welcome, I suppose. :)

                    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                    [My articles]

                    I Offline
                    I Offline
                    ilostmyid2
                    wrote on last edited by
                    #10

                    the resulting code is a matrix class which holds and may work with complex numbers instead of real numbers, as i said b4. it's a good idea that others may have and use it too and also warn me about some mistakes if i had any. although i've tried not to change any part unless it's necessary, it's not unlikely that i've done mistakes or even the mister allen. i like to upload it (the code), but i still don't know how! :) regards

                    CPalliniC 1 Reply Last reply
                    0
                    • I ilostmyid2

                      the resulting code is a matrix class which holds and may work with complex numbers instead of real numbers, as i said b4. it's a good idea that others may have and use it too and also warn me about some mistakes if i had any. although i've tried not to change any part unless it's necessary, it's not unlikely that i've done mistakes or even the mister allen. i like to upload it (the code), but i still don't know how! :) regards

                      CPalliniC Offline
                      CPalliniC Offline
                      CPallini
                      wrote on last edited by
                      #11

                      ilostmyid2 wrote:

                      i like to upload it (the code), but i still don't know how!

                      Test well you code (you may possibly contact the author of the original article) and then write an article about (see 'Article->Submit An Article' menu item). :)

                      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                      [My articles]

                      In testa che avete, signor di Ceprano?

                      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