Matrix multiply, add, and inverse functions?

Discussion to talk about software related topics only.
Post Reply
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Matrix multiply, add, and inverse functions?

Post by Ridgeglider »

Can anyone refer me to linear algebra functions or libraries to do matrix multiplication, addition, and inverse?
Thanks
User avatar
yevgenit
Posts: 84
Joined: Fri Apr 25, 2008 12:47 am
Contact:

Re: Matrix multiply, add, and inverse functions?

Post by yevgenit »

See at Freescale site:

CFLMOPM : Library of Macros for Optimization Using eMAC and MAC Programmer's Manual (pdf)
This programmer's manual provides a detailed description of a set of macros used for optimizations.
http://www.freescale.com/files/32bit/do ... df?fsrch=1

CFLMOPMSW : Software for the Library of Macros for Optimization Using eMAC and MAC Programmer's Manual (zip)
Software for the CFLMOPM.
https://www.freescale.com/webapp/Downlo ... m%20search
Yevgeni Tunik
Embedded/RealTime software engineer
https://www.linkedin.com/in/yevgenitunik/
________________________
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: Matrix multiply, add, and inverse functions?

Post by Ridgeglider »

Yevgenit, The Freescale mac/emac lib looks great. As I understand it, the headers are set up for Codewarrior. What's required for using them under gcc for NB? Any chance they casn just be incuded as is?
User avatar
yevgenit
Posts: 84
Joined: Fri Apr 25, 2008 12:47 am
Contact:

Re: Matrix multiply, add, and inverse functions?

Post by yevgenit »

The free converter "PortAsm/68K for ColdFire®" at
www.microapl.com/Porting/ColdFire/pacf_download.html
is able to convert most of Codewarrior conventions to gcc/gas conventions.

Unfortunately, this converter doesn't familiar with MAC and eMAC instructions of Coldfire. These instructions you will need to reformat manually.

Also, verify (and manually fix if need) compliance of the code to NB gcc/gas calling conventions.
See the NB application note "Writing Assembly Code for the NetBurner ColdFire Platform" at
http://www.netburner.com/downloads/tech ... nguage.pdf

Unfortunately, Freescale technical support cannot help to verify the library code for bugs.
Possibly, the authors of the library are not available. Thus, check yourself the converted library code for the bugs.
Yevgeni Tunik
Embedded/RealTime software engineer
https://www.linkedin.com/in/yevgenitunik/
________________________
User avatar
yevgenit
Posts: 84
Joined: Fri Apr 25, 2008 12:47 am
Contact:

Re: Matrix multiply, add, and inverse functions?

Post by yevgenit »

Ridgeglider,
I intend to prepare complete detailed and tested example of the porting for at least one of the eMAC functions.
Due to my regular work load, it will possibly take a few days.
In case of you have any specific question, I will answer more quickly.

Unfortunately, you doesn't permit to send you the private message.
Yevgeni Tunik
Embedded/RealTime software engineer
https://www.linkedin.com/in/yevgenitunik/
________________________
khoney
Posts: 125
Joined: Fri Sep 11, 2009 12:43 pm

Re: Matrix multiply, add, and inverse functions?

Post by khoney »

You might also check some of Jack Crenshaw's articles on embedded.com. He's always coming up with matrix manipulation C code in his articles. Probably can find source code links too.
Post Reply