Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Transpose a matrix.



Hi,
I'm working on a piece of code and I need to transpose a matrix (actually a 2-dim array of double). I've self-made it with the following code:


for(l = 0; l < lmax; l++) {
    for(n = 0; n < nmax; n++) {
      At[l][n] = A[n][l];
    }
  }

I'm wondering if I can use CBLAS to perform the same task and if I can gain something in performaces. In that case which is the right CBLAS routine to perform the task?

Thanks in advance,
Andrea.

---
Andrea Riciputi

"Science is like sex: sometimes something useful comes out,
  but that is not the reason we are doing it" -- (Richard Feynman)
_______________________________________________
scitech mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/scitech
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.