Thanks Graham, that's exactly what I was looking for. Out of curiosity, do you know if it's possible to do the same in hscript and VEX? Also do you think this can be done as an inline Python? I will give it a try, because in my case, I don't have to extract the matrix beforehand, just use it as a whole so should be shorter to type inside the field.