Skip to content

[Enhancement] Implement ParallelIterator trait for Windows #1321

Description

@rkshthrmsh

Implementing the ParallelIterator trait for Windows might be quit helpful in accelerating usecases such as convolution and correlation over large ndarrays. Please let me know if you have considered this already and found some issues in implementing.

Here is an example:

    let a = arr
        .windows((3, 3))
        .into_par_iter()
        .map(|w| (&w * &kernel).sum())
        .collect::<Array1<f32>>();

Activity

  1. changed the title [-][Enhancement] Implement `ParallelIterator` trait for `Window`s[/-] [+][Enhancement] Implement `ParallelIterator` trait for `Windows`[/+] on Aug 7, 2023
  2. bluss commented on Aug 7, 2023

    @bluss
    Member

    Windows is a producer (NdProducer trait) so it can already be parallelized using Zip

  3. locked and limited conversation to collaborators on Aug 7, 2023
  4. converted this issue into a discussion #1322 on Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions