Skip to content

Speed-up suggestion #3

Description

@schmeing

Hi,

To drastically improve the speed you might want to consider using the %c-% operator from the collapse package:
https://stackoverflow.com/questions/24520720/subtract-a-constant-vector-from-each-row-in-a-matrix-in-r
https://cran.r-project.org/web/packages/collapse/index.html
https://cran.r-project.org/web/packages/collapse/collapse.pdf

For me the subtraction then ran in seconds per sample.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions