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. matrix class

matrix class

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
10 Posts 6 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.
  • B Offline
    B Offline
    b rad311
    wrote on last edited by
    #1

    Hi, Does anyone know of any free c++ matrix class libraries? In particular, I want to be able to search the matrix for values, obtain min/max values for each of the columns, be able to add/delete columns on the fly, etc. The more matlab "like" it is the better. Thanks,

    D L M A 4 Replies Last reply
    0
    • B b rad311

      Hi, Does anyone know of any free c++ matrix class libraries? In particular, I want to be able to search the matrix for values, obtain min/max values for each of the columns, be able to add/delete columns on the fly, etc. The more matlab "like" it is the better. Thanks,

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      b-rad311 wrote:

      Does anyone know of any free c++ matrix class...

      Like a multi-dimension array?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Man who follows car will be exhausted." - Confucius

      B 1 Reply Last reply
      0
      • D David Crow

        b-rad311 wrote:

        Does anyone know of any free c++ matrix class...

        Like a multi-dimension array?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Man who follows car will be exhausted." - Confucius

        B Offline
        B Offline
        b rad311
        wrote on last edited by
        #3

        yes.

        1 Reply Last reply
        0
        • B b rad311

          Hi, Does anyone know of any free c++ matrix class libraries? In particular, I want to be able to search the matrix for values, obtain min/max values for each of the columns, be able to add/delete columns on the fly, etc. The more matlab "like" it is the better. Thanks,

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          It looks as you need somethink like dynamic two dimentional array.What about using STL classes? For example vector of vectors of specific type behaves like "dynamic" matrix. :)

          Life is a stage and we are all actors!

          B 1 Reply Last reply
          0
          • L Lost User

            It looks as you need somethink like dynamic two dimentional array.What about using STL classes? For example vector of vectors of specific type behaves like "dynamic" matrix. :)

            Life is a stage and we are all actors!

            B Offline
            B Offline
            b rad311
            wrote on last edited by
            #5

            Hi, Previously I was using vector of vectors but it seemed to be running slow for what I needed to do, so I was looking for optimized matrix class. The matrix is about 1,000,000 x 13

            C 1 Reply Last reply
            0
            • B b rad311

              Hi, Previously I was using vector of vectors but it seemed to be running slow for what I needed to do, so I was looking for optimized matrix class. The matrix is about 1,000,000 x 13

              C Offline
              C Offline
              CPallini
              wrote on last edited by
              #6

              Wow, that's huge. I hope it is a sparse matrix and you might find a less resource-consuming way to represent the data. :)

              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]

              1 Reply Last reply
              0
              • B b rad311

                Hi, Does anyone know of any free c++ matrix class libraries? In particular, I want to be able to search the matrix for values, obtain min/max values for each of the columns, be able to add/delete columns on the fly, etc. The more matlab "like" it is the better. Thanks,

                M Offline
                M Offline
                Maximilien
                wrote on last edited by
                #7

                Have a look at Boost's BLAS[^].

                Watched code never compiles.

                B 1 Reply Last reply
                0
                • M Maximilien

                  Have a look at Boost's BLAS[^].

                  Watched code never compiles.

                  B Offline
                  B Offline
                  b rad311
                  wrote on last edited by
                  #8

                  Thanks, I'll check it out. Have you had good experience with it?

                  M 1 Reply Last reply
                  0
                  • B b rad311

                    Hi, Does anyone know of any free c++ matrix class libraries? In particular, I want to be able to search the matrix for values, obtain min/max values for each of the columns, be able to add/delete columns on the fly, etc. The more matlab "like" it is the better. Thanks,

                    A Offline
                    A Offline
                    asadullah ansari
                    wrote on last edited by
                    #9

                    u can download from http://www.freedownloadscenter.com/Programming/C\_and\_C++\_Tools\_and\_Components/C\_\_\_Matrix\_Template\_Class\_Library.html

                    Truth Can'nt be changed

                    1 Reply Last reply
                    0
                    • B b rad311

                      Thanks, I'll check it out. Have you had good experience with it?

                      M Offline
                      M Offline
                      Maximilien
                      wrote on last edited by
                      #10

                      nope, no experience. we use Intel's MKL instead (mostly due to historical reasons)

                      Watched code never compiles.

                      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