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 hstack and vstack. #1198

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Jan 31, 2023

  1. Implement hstack and vstack.

    The implementation uses a trait to fold over tuples, summing the
    dimensions in one direction and checking for equality in the other, and
    then uses `fixed_{rows,columns}_mut` if the dimensions are static, or
    `{rows,columns}_mut` if the dimensions are dynamic, together with
    `copy_from` to construct the output matrix.
    aweinstock314 committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    317aef5 View commit details
    Browse the repository at this point in the history
  2. Add inline declarations on hstack, vstack, and visit. Reorder c…

    …onst parameters to the end of declarations to support the rustc version used by the cuda test suite.
    aweinstock314 committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    be45282 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. Take the output matrix by mutable reference instead of ownership in `…

    …HStack`/`VStack` to facilitate implementing lazy stacking.
    aweinstock314 committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    aec3ae2 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2023

  1. Implement HStackLazy and VStackLazy, allowing for the removal of inte…

    …rmediate allocations when building a matrix with a mix of horizontal and vertical stacking.
    aweinstock314 committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    90010b1 View commit details
    Browse the repository at this point in the history