blas library

This is a discussion on blas library within the C++ Programming forums, part of the General Programming Boards category; Hi all I am new to blas and want to know how to write a code for simple matrix multiplication ...

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    65

    blas library

    Hi all

    I am new to blas and want to know how to write a code for simple matrix multiplication A*B.
    Not sure how to define the matricies/vectors.

    Shuo

  2. #2
    Registered User
    Join Date
    Oct 2005
    Posts
    271
    Depends on what BLAS you're using. And why are you using C++ for doing linear algebra anyway? Use Matlab.

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    519
    http://www.boost.org/libs/numeric/ub...s_overview.htm

    Quote Originally Posted by cunnus88 View Post
    And why are you using C++ for doing linear algebra anyway? Use Matlab
    C++ compiler is for free, matlab not. Compiled c++ can easily be deployed, with matlab every user needs ... matlab. With C++ the computer can play video or music or render pictures to the beat of lin. alg. calculations, with matlab not.

  4. #4
    Registered User
    Join Date
    Oct 2005
    Posts
    271
    Quote Originally Posted by pheres View Post
    C++ compiler is for free, matlab not.
    True. But you can use octave.

    It's all very nice using C++, but have you ever tried populating a matrix in C++? Ick. And I looked into the boost BLAS library, and while it's all nice (basic math operations, blocking), it would still be a headache to implement your own eigenvector/value solver, cholesky/householder factorization, or singular value decomposition. AND you have to think about numerical stability. Thank god for the people out there who are paid to study that stuff.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's an import library?
    By chiefmonkey in forum C++ Programming
    Replies: 1
    Last Post: 06-19-2009, 06:00 PM
  2. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 07:04 AM
  3. Makefile for a library
    By sirmoreno in forum Linux Programming
    Replies: 5
    Last Post: 06-04-2006, 05:52 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 08:55 AM
  5. better c string functions
    By samps005 in forum C Programming
    Replies: 8
    Last Post: 11-04-2003, 01:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21