Skip to content

stdlib_linalg: declare the diag function as pure #980

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

Merged
merged 2 commits into from
Apr 22, 2025

Conversation

zoziha
Copy link
Contributor

@zoziha zoziha commented Apr 20, 2025

This is a minor update that sets the diag function as pure.

Copy link
Member

@jvdp1 jvdp1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @zoziha . I am surprised that diag was not pure yet, as it is the case for eye.
The API of diag is set to stable. However, changing it to pure is backward-compatible, and is ok IMO.

Could you also update the specs, please?

@zoziha
Copy link
Contributor Author

zoziha commented Apr 21, 2025

Could you also update the specs, please?

@jvdp1 Thanks for your review. I will mark the class of the diag function as a pure function in stdlib_linalg.md. Does updating the specifications mean this? Or are there other updates needed?

Copy link
Contributor

@jalvesz jalvesz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @zoziha thanks for catching this one!

Copy link
Member

@jvdp1 jvdp1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank yoju @zoziha

@zoziha
Copy link
Contributor Author

zoziha commented Apr 22, 2025

@jvdp1 @jalvesz Thank you for your review. With two approvals, this minor update will be merged now.

@zoziha zoziha merged commit d8fd7b2 into fortran-lang:master Apr 22, 2025
13 of 14 checks passed
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

Successfully merging this pull request may close these issues.

3 participants