Examples of multiplying matrices in BLAS/LAPACK in c or c++

Discussion in 'C Programming' started by echidnasunrise, Sep 16, 2008.

  1. echidnasunrise

    echidnasunrise

    Joined:
    Sep 16, 2008
    Messages:
    1
    I'm trying to use BLAS in c (from essl), and all I want to do is to multiply two matrices (1xN and NxN) together using sgemms or sgemm. I have tried all combinations of values for the leading dimensions etc and I just can't get it to work.

    The column major order of fortran makes things a lot tougher.

    Does anyone have any clue how to get this to work? My guess is that the way it functions is highly contingent on how your define your 2d arrays (static, vs float * vs float ** , etc).

    I would love an example.

    Thanks!
    Mike
     
    echidnasunrise, Sep 16, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. pervinder
    Replies:
    1
    Views:
    653
    Jacek Dziedzic
    Sep 22, 2004
  2. Edward C. Jones
    Replies:
    1
    Views:
    310
    RickMuller
    Apr 23, 2005
  3. Ken Dere
    Replies:
    1
    Views:
    827
    Robert Kern
    Jul 24, 2006
  4. aberte@gmail.com

    input matrix for blas and lapack

    aberte@gmail.com, Oct 20, 2006, in forum: C++
    Replies:
    2
    Views:
    642
    Bernard Bru
    Oct 23, 2006
  5. Gregory Ewing

    Numpy: Multiplying arrays of matrices

    Gregory Ewing, Sep 15, 2010, in forum: Python
    Replies:
    5
    Views:
    371
    Andre Alexander Bell
    Sep 16, 2010
Loading...

Share This Page