Shortening calculation times for matrix multiplication operations

Shortening calculation times for matrix multiplication operations - A functions of a sigle parameter is set-up starting from multiple matrix multiplications: how to sherten calculation times? - Mensajes

#1 Publicado: 27/7/2026 12:32:06
Fabbro

Fabbro

0 me gusta en 25 mensajes.

Grupo: User

Dear all,

please find attached a worksheet I'm working on. SMath performs well but quite slowly (around 7 hours...).

Any idea on how to speed up calculations and, particularely, the plot of the functions Zφ2(ω), Zφad2(p_ad2) , Zφad1(p_ad1)?

For info:

1 The worksheet is not at the latest SMath version....I have not installed the last version fearing some regression issue...if someone can suggest me how to install the latest version without overwriting the old one (in order to verify non-regression) I'd be grateful to him

2 For all the plotted functions the option OPTIMISATION is set to SYMBOLIC

3 I'm setting up a version of the quoted functions (Zφ2(ω), Zφad2(p_ad2) , Zφad1(p_ad1)) where I'll use ONLY the terms of the first and last matrix necessary for the specific boundary condition. But it appears quite cumbersome....

Many thanks


Notched_Alu_Beam_vs_measures V6 adimensional out-of-plane bending cfr.sm (393,87 KiB) descargado 925 vez(es).TB_TM algo_original.sm (99,51 KiB) descargado 896 vez(es).TB_TM_adim_algo.sm (892,69 KiB) descargado 892 vez(es).
#2 Publicado: 27/7/2026 15:38:07
Fabbro

Fabbro

0 me gusta en 25 mensajes.

Grupo: User

.....About my post "Shortening calculation times for matrix multiplication operations"

one more useful information. I stated around 7 hours to calculate (the plots mainly) the worksheet.
It's fair to specify on which machine the worksheet ran (see attached file).

One more question : is it possible multitasking in SMath as it's in MathCAD? You think it could help for my calculation?

THANKS

laptop.pdf (239,37 KiB) descargado 856 vez(es).
#3 Publicado: 27/7/2026 15:39:31
Fabbro

Fabbro

0 me gusta en 25 mensajes.

Grupo: User

...sorry again: not multitasking BUT multiprocessors (calculations)....
#4 Publicado: 27/7/2026 17:11:08
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

Hi. Adding eval to each function significantly increases speed, although it might introduce some rounding error. This worked for the original algorithm, at least; I assume it will work for the dimensionless algorithm as well. Assigning optimization to Numeric can also improve sometimes the calculation speed.

TB_TM algo_original.sm (101,6 KiB) descargado 902 vez(es).
Notched_Alu_Beam_vs_measures V6 adimensional out-of-plane bending cfr.sm (392,73 KiB) descargado 915 vez(es).

Best regards.
Alvaro.
  • Nuevos mensajes
  • Sin mensajes nuevos