Skip to content

performance of ndarray arithmetic operation #1274

Description

@tyghl

i want to perform an Add operation and assign the result to another array.
like this:

result.assign(&(&arr1+ &arr2));

since i don't want to consume the data in arr1 and arr2, i think this method will always generate a temporary array, hence bad for performance.
So should i use iterator and add seperately in this case? Does any better solution exist?

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions