Matrix or scalar notation, what is the best ?

Moderators: Frank, paul, Hiwot, Chris, peter

Buck
Posts: 15
Joined: Fri May 04, 2007 12:16 pm

Matrix or scalar notation, what is the best ?

Postby Buck » Thu Aug 02, 2007 4:23 pm

Hello,

Is a matrix notation more efficient to compute in 20-Sim than a scalar one as MatLab does ?

Buck

paul
Posts: 152
Joined: Mon Sep 19, 2005 2:00 pm
Location: Controllab Products B.V.

Re: Matrix or scalar notation, what is the best ?

Postby paul » Fri Aug 03, 2007 9:55 pm

Buck wrote:Hello,

Is a matrix notation more efficient to compute in 20-Sim than a scalar one as MatLab does ?

Buck


In general yes. The matrix form allows for more automatic optimizations than a whole bunch of scalar expressions. The efficiency can be further improved when any structure in the matrix structure can be used as well.

For more information on this, have a look at Blas/Lapack versions for modern multi-core cpu's.
member 20-sim development team


Return to “Languages”

Who is online

Users browsing this forum: No registered users and 1 guest