1 stranica (6 stavki)
vectorise() go to deep without first calculating the matrix product - I think it should multiply the matrices first and then apply the comparison per line. - Poruke
I think the vectorize() command goes too deep in the example. Probably it takes the first row from the first matrix, then it probably tries to multiply it with the second vector. Then I get the error message: Number of rows and/or columns of matrices or vectors do not match.
I think it should multiply the matrices first and then apply the comparison per line.
Can somebody take a look at this, please?
matrix_nested_function.sm (11,57 KiB) preuzeto 1212 put(ova).
Maybe this is a simple way to solve the problem

matrix_nested_function_CBG.sm (11,45 KiB) preuzeto 1190 put(ova).
Best Regards
Carlos

matrix_nested_function_CBG.sm (11,45 KiB) preuzeto 1190 put(ova).
Best Regards
Carlos
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Thank you both for the quick answer! I didn't know there was an eval() function. I now understand that SMath resolves everything as low as possible and then calculates in one go. The use of eval() in the right place prevents this.
... some stuff Truth table
Utilities Matrix Truth Table [Locate row_col].sm (43,39 KiB) preuzeto 1070 put(ova).
Utilities Matrix Truth Table [Locate row_col].sm (43,39 KiB) preuzeto 1070 put(ova).
1 stranica (6 stavki)
- Novi postovi
- Nema novih postova
