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

Implement a set of procedural macros that streamline developing with ndarray #7

Open
3 tasks
FL03 opened this issue May 12, 2024 · 0 comments
Open
3 tasks
Assignees
Labels
enhancement New feature or request

Comments

@FL03
Copy link
Owner

FL03 commented May 12, 2024

  • ndbuilder!
  • ndview!
  • ndunary!

ndview!

extern crate ndtensor;

use ndarray::*;
use ndtensor::ndview;
use num::{One, Zero};

impl<A, S, D> Sample<S, D>
where
    D: Dimension,
    S: RawData<Elem = A>
{
    ndview!(ones() where A: Clone + One, S: Data);
    ndview!(zeros() where A: Clone + Zero, S: Data);
}
@FL03 FL03 added the enhancement New feature or request label May 12, 2024
@FL03 FL03 self-assigned this May 12, 2024
@FL03 FL03 changed the title Develop several procedural macros to help retain the _covariance_ of ArrayBase (ndview) May 13, 2024
@FL03 FL03 changed the title (ndview) Implement a set of procedural macros that streamline developing with ndarray May 13, 2024
@FL03 FL03 changed the title Implement a set of procedural macros that streamline developing with ndarray Implement a set of procedural macros that streamline developing with ndarray May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant