From 4f320a553981f616d0cda20925d4bee09c38a56a Mon Sep 17 00:00:00 2001 From: Twan Koolen Date: Wed, 22 Feb 2017 23:03:18 -0500 Subject: [PATCH] Adapt to Size trait changes introduced in StaticArrays 0.3. --- REQUIRE | 2 +- src/core_types.jl | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/REQUIRE b/REQUIRE index cea36db2..cf1ef5f7 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1,2 +1,2 @@ julia 0.5 -StaticArrays 0.0.3 +StaticArrays 0.3.0 diff --git a/src/core_types.jl b/src/core_types.jl index 319187af..36dc5f3c 100644 --- a/src/core_types.jl +++ b/src/core_types.jl @@ -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)