This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Hi everyone,
I'm trying to multiply a symmetric matrix of a predefined format (14x14) with another symmetric matrix of the same format.
The easiest case to show here would be to multiply the matrix with itself.
I know, the most convenient solution might be the matrix multiplication in e.g. python, but given that the python tool or other embedded code is not an option, does anyone have a good solution for that?
I added a sample matrix below, but you could just take any matrix there is.
Thanks in advance!
Solved! Go to Solution.
Hey @JohannesR,
Currently its not a feature but there is an idea/feature request in the community if you want to support it Support Basic Linear Algebra (Vectors and Matrices... - Alteryx Community. To achieve this you'll need to create an iterative or batch macro to loop through each column/row, couldn't find anyone on the gallery who has done this yet.
I'm genuinely impressed by the solution. Works exactly as wished and when compared to python I only get differences from the 16th decimal point onwards which might be due to the floating point exception handled differently in python and in alteryx itself (I guess... Link to FPE ).
But I checked it against the Python solution and attached the workflow.
Thanks for your solution @NeilR!
@JohannesR my pleasure that was fun. Out of curiosity, what are you up to with matrix multiplication? [Gallery link.]
I need this solution in the context of an expected credit loss calculation for a client in the banking sector, where you need to multiply the transition matrices in order to estimate the probability of default in a given number of years...
Unfortunately my client uses relatively slow machines which apparently struggle with the python script :D