Skip to content

Commit

Permalink
Remove StaticArrays.Size definitions (#287)
Browse files Browse the repository at this point in the history
Closes #282.
  • Loading branch information
jipolanco authored Feb 5, 2024
1 parent 9b33ca8 commit 549ec24
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/core_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ unitary (orthogonal) `N`×`N` matrices.
"""
abstract type Rotation{N,T} <: StaticMatrix{N,N,T} end

Base.@pure StaticArrays.Size(::Type{Rotation{N}}) where {N} = Size(N,N)
Base.@pure StaticArrays.Size(::Type{Rotation{N,T}}) where {N,T} = Size(N,N)
Base.@pure StaticArrays.Size(::Type{R}) where {R<:Rotation} = Size(supertype(R))
Base.adjoint(r::Rotation) = inv(r)
Base.transpose(r::Rotation{N,T}) where {N,T<:Real} = inv(r)
Base.real(R::Type{<:Rotation}) = R
Expand Down
3 changes: 0 additions & 3 deletions src/rotation_generator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ skew-symmetric real `N`×`N` matrices.
"""
abstract type RotationGenerator{N,T} <: StaticMatrix{N,N,T} end

Base.@pure StaticArrays.Size(::Type{RotationGenerator{N}}) where {N} = Size(N,N)
Base.@pure StaticArrays.Size(::Type{RotationGenerator{N,T}}) where {N,T} = Size(N,N)
Base.@pure StaticArrays.Size(::Type{R}) where {R<:RotationGenerator} = Size(supertype(R))
Base.adjoint(r::RotationGenerator) = -r
Base.transpose(r::RotationGenerator{N,T}) where {N,T<:Real} = -r
Base.real(R::Type{<:RotationGenerator}) = R
Expand Down

0 comments on commit 549ec24

Please sign in to comment.