Replaced solve by '\'
This code:
%%
a = [1 0.01 0.01; 0.01 1 0.01; 0.01 0.01 1];
b = [5 6 7]';
%%
tic
x = a\b;
toc
works 1000 times faster
Elapsed time is 0.000161 seconds.
Elapsed time is 0.000107 seconds.
Elapsed time is 0.000189 seconds.
Elapsed time is 0.000105 seconds.
Elapsed time is 0.000105 seconds.
Elapsed time is 0.000117 seconds.
Elapsed time is 0.000126 seconds.
Elapsed time is 0.000111 seconds.
but still 10 times slower than python in Colab.
And nearly 30 times slower than numpy + numba python libs.