Skip to content

Add tutorials with examples to Documentation #132

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 4 commits into from
May 8, 2017

Conversation

9prady9
Copy link
Member

@9prady9 9prady9 commented May 1, 2017

No description provided.

9prady9 added 4 commits April 28, 2017 19:21
This change also includes the fixes for currently missing documentation
and crate level documentation.
Earlier to this change, documentation was generated using the
command `cargo doc`. However, this has one drawback - when external
markdown files were used, additional set of commands had to be run
using `rustdoc` tool to generate the html files corresponding to
the md files. With this change, `generate_docs.sh` bash script will
handle those intricacies of running `cargo doc` followed by execution
of `rustdoc` for external md files.

This change adds the following tutorials to the documetation.
* Getting Started with ArrayFire
* Introduction to Vectorization
* Array and Matrix Manipulation
* Indexing
* Configure ArrayFire Environment
@9prady9
Copy link
Member Author

9prady9 commented May 8, 2017

@mlloreda @pavanky @jramapuram Feedback ?


Below we provide several examples of these functions and their use.

### moddims()
Copy link
Member

Choose a reason for hiding this comment

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

Probably a stupid question: but isn't this already in the rust generated docs?

Copy link
Member Author

Choose a reason for hiding this comment

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

That is true, but having these collected set of examples in one location is probably a good place to start for beginners and they can dwell into parameter documentation and additional examples in the hyperlinked function documentation page - at least that is how I picture it in the long run. I do agree that more examples in each function doc page are to be added yet.

Copy link
Member

Choose a reason for hiding this comment

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

Yea, good point. Probably helpful as a reference for people getting started (before they have their setup/etc)

Following are the list of environment and runtime configurations that will help enhance
your experience with ArrayFire.

# AF_PATH
Copy link
Member

Choose a reason for hiding this comment

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

This doc will definitely be helpful!

@@ -0,0 +1,19 @@
/* unvisited link */
a:link {
color: #4d76ae;
Copy link
Member

Choose a reason for hiding this comment

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

Is all this going into the gh-pages? I tried your github.io for the fork but don't see anything.

Copy link
Member Author

Choose a reason for hiding this comment

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

If you look at the generate_docs.sh that was added along with this change, that copies this new css file into the target/doc location while building the documentation.

/// let garbageVals = Array::new_empty(Dim4::new(&[3, 1, 1, 1]), DType::F32);
/// ```
#[allow(unused_mut)]
pub fn new_empty(dims: Dim4, aftype: DType) -> Array {
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this go into another PR?

Copy link
Member Author

@9prady9 9prady9 May 8, 2017

Choose a reason for hiding this comment

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

Sure, why not. Let me cherry pick that into separate PR. Ah, it's in the middle of other stuff, let's go ahead for now. I will make sure to separate such additions into separate PR's in future.

Copy link
Member

Choose a reason for hiding this comment

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

It's not a big deal, just saying ;p

@9prady9 9prady9 merged commit ce74da0 into arrayfire:devel May 8, 2017
@9prady9 9prady9 deleted the examples branch May 8, 2017 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants