In my current project, I want to create a N-by-M matrix of coefficients for some matrix algebra. Each entry of this matrix should be calculated based on an individual function w