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

Matlab equivalent examples #114

Closed
Timmmm opened this issue Feb 26, 2017 · 2 comments
Closed

Matlab equivalent examples #114

Timmmm opened this issue Feb 26, 2017 · 2 comments
Labels
Milestone

Comments

@Timmmm
Copy link
Contributor

Timmmm commented Feb 26, 2017

Closely related to #52 but it might be nice if there was a sort of translation table for people coming from Matlab:

Matlab arrayfire-rust
a = zeros(3, 4) let mut a = constant::<f32>(0.0, Dim4::new(&[3, 4, 1, 1]));
b = a * 2 let mut b = a * 2.0f32;
c = 0:10 let mut c = range::<f32>(Dim4::new(&[10, 1, 1, 1]), 0);
d = (0:10)' let mut d = range::<f32>(Dim4::new(&[1, 10, 1, 1]), 1);
e = d * c let mut e = d * c
f = 1 - e ???
g = max(c, 5) ???
g(2:4) = 4 ???

Here is an example of this for NumPy.

@9prady9
Copy link
Member

9prady9 commented Apr 27, 2017

@Timmmm please feel free to contribute. I would think such a table would be most useful as part of documentation but not sure where and how we can incorporate it in rust style documentation.

@9prady9 9prady9 modified the milestone: timeless Apr 28, 2017
@9prady9 9prady9 removed the Tests label Mar 12, 2019
@9prady9
Copy link
Member

9prady9 commented May 28, 2020

I have created a repository for such information for comparison across wrappers and frameworks.
https://github.com/arrayfire/arrayfire-api-cheat-sheet

Any further information related this will be handled in that repository.

@9prady9 9prady9 closed this as completed May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants