Skip to content

Error on DMatrix::zeros(rows, cols) #5441

@vadixidav

Description

@vadixidav

For me (on current weekly version), this version introduced a regression that causes DMatrix to be picked up incorrectly when using DMatrix::zeros(). It claims that there is no arguments:

image

However, a cargo check passes just fine, and I am actually building and running this code currently as part of another program, so it is certain that it does work. In fact, the last version did not have this issue.

My suspicion is that it is incorrectly picking up the first Matrix::zeros(). Nalgebra has four definitions of zeros() on Matrix, each of which may be used depending on which dimensions are Dynamic or which impl DimName.

I will let everyone know if this issue goes away on Monday.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tytype system / type inference / traits / method resolutionC-bugCategory: bugS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions