blasfeo
blasfeo copied to clipboard
BLASFEO: Basic Linear Algebra Subroutines for Embedded Optimization
BLASFEO convert matrix format from row-major into panel-major.Whether the cost is calculated in the experiment?
Whether you should add the conversion cost to the timings depends on your application.
The panel-major format used in the BLASFEO API is used for both input and output arguments, therefore you can use it for your entire algorithm without the need to perform any packing/unpacking, or limiting packing only of the initial data.
If you intend to write your entire algorithm using column-major matrix format, then it's better to switch to the BLAS API (BLASFEO also provides some optimized standard BLAS and LAPACK routines), where the packing happens in a smart way inside the linear algebra routines themselves.
The program uses the blasfeo_pack_smat API to generate segmentation fault. What is the cause of this problem? M is not equal to N.