You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RTensor matrix = ...
RTensor couplings = take_diag(matrix, 1);
RTensor frequencies = take_diag(matrix, 0, 1); // skip the first frequency
As soon as I add the last line, I get a memory corruption when exiting the context (i.e., when the matrices are deleted). This suggests some issue with take_diag() if you supply the start/end point.
The text was updated successfully, but these errors were encountered:
Just tried something along these lines:
RTensor matrix = ...
RTensor couplings = take_diag(matrix, 1);
RTensor frequencies = take_diag(matrix, 0, 1); // skip the first frequency
As soon as I add the last line, I get a memory corruption when exiting the context (i.e., when the matrices are deleted). This suggests some issue with take_diag() if you supply the start/end point.
The text was updated successfully, but these errors were encountered: