Skip to content

Matrix multiplication instead of element-wise multiplication in raw_to_polyvector #69

Open
@segaviv

Description

@segaviv

Hi,

In raw_to_polyvector with sign symmetry, I think that line 41 does a matrix multiplication that fails an assertion in Debug due to incompatible dimensions and leads to some undefined behavior in a Release build.

I think the line can be changed to something like actualRoots = actualRoots.array().square() to calculate the element-wise square of the roots (if I understand the logic correctly...).

Thanks in advance for looking into it,
Aviv

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions