Page 1 of 1
Matrix multiply, add, and inverse functions?
Posted: Wed Mar 03, 2010 5:13 am
by Ridgeglider
Can anyone refer me to linear algebra functions or libraries to do matrix multiplication, addition, and inverse?
Thanks
Re: Matrix multiply, add, and inverse functions?
Posted: Wed Mar 03, 2010 6:22 am
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
Re: Matrix multiply, add, and inverse functions?
Posted: Wed Mar 03, 2010 8:20 am
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?
Re: Matrix multiply, add, and inverse functions?
Posted: Thu Mar 04, 2010 12:52 am
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.
Re: Matrix multiply, add, and inverse functions?
Posted: Tue Mar 23, 2010 7:47 am
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.
Re: Matrix multiply, add, and inverse functions?
Posted: Fri Mar 26, 2010 10:49 am
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.