Block Matrix operations with LinProp in Matlab

44 views
Skip to first unread message

lucas corach

unread,
Aug 2, 2017, 8:46:39 AM8/2/17
to METAS UncLib
Hello Michael,

 I'm trying to use diagonal block matrixes with LinProp,
 because I'm pretty sure that I will be able to perform some large calculations faster than using a for loop,
 but It looks like it is impossible to build a block matrix using the matlab command "blkdiag" 
if the entries are of LinProp type. 

Is there a way to do something like this with LinProp data?

Thanks, 

Lucas

Jan Grajciar CMI

unread,
Aug 2, 2017, 1:03:25 PM8/2/17
to METAS UncLib
Hi Lucas,

if you type this command methods('LinProp') in MATLAB, you will see all the operations, that LinProp classes allow.


Jan

Michael Wollensack METAS

unread,
Aug 8, 2017, 10:42:00 AM8/8/17
to METAS UncLib
Hi,

the LinProp class does not support block matrices.

Some comments about performance:
  • if you just have doubles then block matrices (or sparse matrices) will speed up calculations.
  • but if you have LinProp objects most of the time is used to compute the dependencies and not the value. It dependens how many dependencies you have but let's assume it take 1000 times longer to compute the dependencies than the value.
  • So an operation double 0 times a LinProp objects uses only a very tiny time to compute compared to an operation of two LinProp objects.
Regards
Michael
Reply all
Reply to author
Forward
0 new messages