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
In the final exercises, when integrating the function we need to be explicit about the density of x points. Because different point density gives slightly different results. "Slightly different" means sufficient enough to cause the test failure.
The solution uses eigh. If people use eig the test will fail because the order of eigenvalues is different. This can be overcome by testing for invariants like the trace and the determinant.
The exercise should ideally be parametrized in order for multiple matrices to be teasd
In Exercises on NumPy routines, exercise 2., tests fail if we do not use the fact that the matrix is hermitian: eig and eigh give same eigenvalues but in different orders, and eigenvectors are slightly different
In Exercises on NumPy routines, exercise 2., tests fail if we do not use the fact that the matrix is hermitian: eig and eigh give same eigenvalues but in different orders, and eigenvectors are slightly different
Activity
GCatarina commentedon Dec 14, 2023
Typo:
Exercises on specifying the data type.
The part "The array should have dimensions 2x3." should be removed
fabioacl commentedon Dec 14, 2023
In
Indexing, slicing, and iterating, the first sentence after the first python code starts withUnlinke.yakutovicha commentedon Dec 14, 2023
In the final exercises, when integrating the function we need to be explicit about the density of x points. Because different point density gives slightly different results. "Slightly different" means sufficient enough to cause the test failure.
baffelli commentedon Dec 14, 2023
For the exercise on eigenvalues:
eigh. If people useeigthe test will fail because the order of eigenvalues is different. This can be overcome by testing for invariants like the trace and the determinant.GCatarina commentedon Dec 14, 2023
In Exercises on NumPy routines, exercise 2., tests fail if we do not use the fact that the matrix is hermitian: eig and eigh give same eigenvalues but in different orders, and eigenvectors are slightly different
baffelli commentedon Dec 14, 2023
Thanks, we already noted this above