Skip to content

Commit

Permalink
Juliav0.7 fixes (#61)
Browse files Browse the repository at this point in the history
vecnorm -> Compat.norm
  • Loading branch information
Sean McBane authored and tkoolen committed Jul 3, 2018
1 parent 531a633 commit b7d5a12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ os:
- osx
julia:
- 0.6
- 0.7
- nightly
addons:
apt:
Expand Down
4 changes: 2 additions & 2 deletions src/core_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ function isrotation(r::AbstractMatrix{T}, tol::Real = 1000 * eps(eltype(T))) whe
# Transpose is overloaded for many of our types, so we do it explicitly:
r_trans = @SMatrix [conj(r[1,1]) conj(r[2,1]);
conj(r[1,2]) conj(r[2,2])]
d = vecnorm((r * r_trans) - eye(SMatrix{2,2}))
d = Compat.norm((r * r_trans) - eye(SMatrix{2,2}))
elseif size(r) == (3,3)
r_trans = @SMatrix [conj(r[1,1]) conj(r[2,1]) conj(r[3,1]);
conj(r[1,2]) conj(r[2,2]) conj(r[2,3]);
conj(r[1,3]) conj(r[2,3]) conj(r[3,3])]
d = vecnorm((r * r_trans) - eye(SMatrix{3,3}))
d = Compat.norm((r * r_trans) - eye(SMatrix{3,3}))
else
return false
end
Expand Down

0 comments on commit b7d5a12

Please sign in to comment.