Skip to content

base_nuts.hpp:110 — Unnecessary .transpose() on column vector #3381

Description

Eigen::VectorXd rho = this->z_.p.transpose();
z_.p is a VectorXd (D×1). .transpose() produces a RowVectorXd (1×D), which is
then assigned to a VectorXd (D×1). This works due to Eigen's dynamic resizing
but could trigger debug assertions in strict Eigen builds. Should just be rho
= this->z_.p;.

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