Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
E
elsa
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 37
    • Issues 37
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 10
    • Merge Requests 10
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • IP
  • elsa
  • Issues
  • #40

Closed
Open
Created Jan 23, 2020 by Jens Petit@jens.petitContributor

Pass by value of Eigen Matrix in constructor of DataHandlerCPU

I was wondering why we pass the Eigen matrix by value instead of by reference in the constructor of the DataHandlerCPU and thus creating an expensive copy.

template <typename data_t>
DataHandlerCPU<data_t>::DataHandlerCPU(DataVector_t vector)
   : _data{std::make_shared<DataVector_t>(vector)}
{
}
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None