I am having trouble with the custom matrix-vector multiplication function, would you please help?
I am trying to adjust your example "sample3_custom.py" to include a "standard" matrix-vector multiplication, with a 2D matrix and a 1D vector, rather than a high-dimensional tensor. Eventually I would like to have a custom function for this, but for now I am just trying to verify that I can make the program work with a minimal example. For this, I have tried to solve the same problem as in your implementation of "sample3_custom.py", using
However, this gives an eigenvalue of 0.0, which is not the same as the eigenvalue returned by your tensor-based implementation. I also found eigenvalues of 0.0 for a variety of other problems using a similar approach. Would you please help?
I am having trouble with the custom matrix-vector multiplication function, would you please help?
I am trying to adjust your example "sample3_custom.py" to include a "standard" matrix-vector multiplication, with a 2D matrix and a 1D vector, rather than a high-dimensional tensor. Eventually I would like to have a custom function for this, but for now I am just trying to verify that I can make the program work with a minimal example. For this, I have tried to solve the same problem as in your implementation of "sample3_custom.py", using
However, this gives an eigenvalue of 0.0, which is not the same as the eigenvalue returned by your tensor-based implementation. I also found eigenvalues of 0.0 for a variety of other problems using a similar approach. Would you please help?