Skip to content

Commit

Permalink
Merge pull request #23 from tkoolen/staticarrays-0.3
Browse files Browse the repository at this point in the history
Adapt to Size trait changes introduced in StaticArrays 0.3.
  • Loading branch information
andyferris authored Feb 23, 2017
2 parents d761798 + 4f320a5 commit 3ef1cce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
julia 0.5
StaticArrays 0.0.3
StaticArrays 0.3.0
7 changes: 3 additions & 4 deletions src/core_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ unitary (orthogonal) `N`×`N` matrices.
"""
abstract Rotation{N,T} <: StaticMatrix{T}

Base.@pure Base.size{N}(::Type{Rotation{N}}) = (N,N)
Base.@pure Base.size{N,T}(::Type{Rotation{N,T}}) = (N,N)
Base.@pure Base.size{R<:Rotation}(::Type{R}) = size(supertype(R))
size(r::Rotation) = size(typeof(r))
Base.@pure StaticArrays.Size{N}(::Type{Rotation{N}}) = Size(N,N)
Base.@pure StaticArrays.Size{N,T}(::Type{Rotation{N,T}}) = Size(N,N)
Base.@pure StaticArrays.Size{R<:Rotation}(::Type{R}) = Size(supertype(R))
Base.ctranspose(r::Rotation) = inv(r)
Base.transpose{N,T<:Real}(r::Rotation{N,T}) = inv(r)

Expand Down

0 comments on commit 3ef1cce

Please sign in to comment.