Skip to content

Add try_into_nalgebra methods to convert to fixed-sized (and half-fixed-sized) nalgebra matrices #11

@elidupree

Description

@elidupree

Feature request is pretty self-explanatory.

I like nalgebra's compile-time guarantees about size (just for clean coding purposes), so it would be convenient to have a single-method conversion between them, rather than having extra steps to convert from the dynamic form.

When I searched, I found this page suggesting ways to do it; presumably it would be cleanest if the method fails anytime the size doesn't match exactly, rather than silently truncating, as I think fixed_slice and fixed_rows by themselves do. (Unfortunately I haven't had the chance to try it out yet, as I'm currently bogged down in unrelated version-compatibility issues.)

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