Skip to content

Commit 549ec24

Browse files
authored
Remove StaticArrays.Size definitions (#287)
Closes #282.
1 parent 9b33ca8 commit 549ec24

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/core_types.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ unitary (orthogonal) `N`×`N` matrices.
66
"""
77
abstract type Rotation{N,T} <: StaticMatrix{N,N,T} end
88

9-
Base.@pure StaticArrays.Size(::Type{Rotation{N}}) where {N} = Size(N,N)
10-
Base.@pure StaticArrays.Size(::Type{Rotation{N,T}}) where {N,T} = Size(N,N)
11-
Base.@pure StaticArrays.Size(::Type{R}) where {R<:Rotation} = Size(supertype(R))
129
Base.adjoint(r::Rotation) = inv(r)
1310
Base.transpose(r::Rotation{N,T}) where {N,T<:Real} = inv(r)
1411
Base.real(R::Type{<:Rotation}) = R

src/rotation_generator.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ skew-symmetric real `N`×`N` matrices.
66
"""
77
abstract type RotationGenerator{N,T} <: StaticMatrix{N,N,T} end
88

9-
Base.@pure StaticArrays.Size(::Type{RotationGenerator{N}}) where {N} = Size(N,N)
10-
Base.@pure StaticArrays.Size(::Type{RotationGenerator{N,T}}) where {N,T} = Size(N,N)
11-
Base.@pure StaticArrays.Size(::Type{R}) where {R<:RotationGenerator} = Size(supertype(R))
129
Base.adjoint(r::RotationGenerator) = -r
1310
Base.transpose(r::RotationGenerator{N,T}) where {N,T<:Real} = -r
1411
Base.real(R::Type{<:RotationGenerator}) = R

0 commit comments

Comments
 (0)