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

Fortran versions of some Matlab functions #112

Open
rweed opened this issue Dec 14, 2019 · 2 comments
Open

Fortran versions of some Matlab functions #112

rweed opened this issue Dec 14, 2019 · 2 comments
Labels
Clause 16 Standard Clause 16: Intrinsic procedures and modules

Comments

@rweed
Copy link

rweed commented Dec 14, 2019

Recently, I needed to translate some Matlab code to Fortran. To get things to work the same as Matlab I had to create my own versions of the following functions.

  1. unique - find unique values in an array
  2. mean and standard deviations (mean, std)
  3. ismember

Although the code to implement these in Fortran is not complicated for rank 1 and rank 2 arrays it gets complicated for anything greater so it would be nice if there where intrinsic Fortran equivalents

I'm guessing others might have additional functions they would add to this list. When it comes to intrinsics for manipulating and creating arrays along with some other functions, I would be happy if Fortran became Matlabs older but still faster and smarter brother.

@milancurcic
Copy link
Member

These look like good candidates for https://github.com/fortran-lang/stdlib.

@certik
Copy link
Member

certik commented Dec 19, 2019

@rweed can you create issues at the stdlib repo please? These would fit well. See e.g.: fortran-lang/stdlib#16, fortran-lang/stdlib#17, fortran-lang/stdlib#18 for similar ideas.

@certik certik added the Clause 16 Standard Clause 16: Intrinsic procedures and modules label Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clause 16 Standard Clause 16: Intrinsic procedures and modules
Projects
None yet
Development

No branches or pull requests

3 participants