Skip to content

Make linspace and logspace pure functions #549

New issue

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

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

Already on GitHub? # to your account

Merged

Conversation

milancurcic
Copy link
Member

While working on #504 I noticed that linspace and logspace in stdlib_math aren't declared as pure, even though they don't have side effects. This PR makes them pure.

@milancurcic milancurcic added the topic: mathematics linear algebra, sparse matrices, special functions, FFT, random numbers, statistics, ... label Oct 5, 2021
@milancurcic milancurcic requested review from jvdp1 and ejovo13 October 5, 2021 03:32
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.

good catch. Thank you

Copy link
Member

@awvwgk awvwgk left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@ejovo13
Copy link
Contributor

ejovo13 commented Oct 5, 2021

👍 Nice catch!

@milancurcic
Copy link
Member Author

Thanks all.

@milancurcic milancurcic merged commit 1e81f0b into fortran-lang:master Oct 5, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
topic: mathematics linear algebra, sparse matrices, special functions, FFT, random numbers, statistics, ...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants