Skip to content

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

@andrepfeuffer

Description

@andrepfeuffer

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;.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions