Skip to content

DCM optimizations #21

@juliohm

Description

@juliohm

The DCM representation is currently an alias for SMatrix. That is nice but we could do even better if we specify properties of rotation matrices that are not implemented by a generic SMatrix. That is what Rotations.jl does with inv == transpose for example.

Maybe DCM should be a new type of StaticMatrix, and that is possible with StaticArrays.jl interface:

# inherit most basic methods like SMatrix
struct DCM{T} <: StaticArray{3,T} end

# add specific methods for rotations
inv(D::DCM) = transpose(D)
...

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