Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LAEIN to return number of iterations #1085

Open
Goddan-wq opened this issue Dec 10, 2024 · 0 comments
Open

LAEIN to return number of iterations #1085

Goddan-wq opened this issue Dec 10, 2024 · 0 comments

Comments

@Goddan-wq
Copy link
Contributor

Sometimes it is useful to know the exact number of iterations performed in iterative algorithms. LAPACK provides several places where the iteration count is returned, such as in the work array. For example, the LASQ2 family of functions supports this feature.

Is it possible to add such functionality to the LAEIN function? The functions either include work or rwork in their interface, but the output of these arrays is not documented. This array is used internally only by the LATRS function and is supposed to contain the 1-norm of the columns of matrix B.

Since LATRS is always called with the parameter Uplo = UPPER, the first element of the array is always zero. Therefore, if the user for some reason uses the work/rwork array after the LAEIN function, it would be relatively simple to account for this in high-level code. Alternatively, you could increase the size of work by 1 and return the iteration count as the last element of the array.

If this feature does not contradict the documentation, the logic of the function, and your ideas, I could do a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant