Skip to content

Commit a9666dc

Browse files
author
Andy Ferris
committed
Upgraded support for FixedSizeArrays to 0.2.2
1 parent 76d4cad commit a9666dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
julia 0.4
2-
FixedSizeArrays
2+
FixedSizeArrays 0.2.2
33
Rotations

src/CoordinateTransformations.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ export Point # Use Point{N, T} from FixedSizedArrays for Cartesian frames
66
# TODO: move these over to FixedSizeArrays at some point
77
function Base.vcat(v1::Vec, v2::Vec)
88
(v1p, v2p) = promote(v1, v2)
9-
Vec(v1p._..., v2p._...)
9+
Vec(Tuple(v1p)..., Tuple(v2p)...)
1010
end
1111
function Base.hcat{N,M,P}(m1::Mat{N,M}, m2::Mat{N,P})
1212
(m1p, m2p) = promote(m1, m2)
13-
Mat(m1p._..., m2p._...)
13+
Mat(Tuple(m1p)..., Tuple(m2p)...)
1414
end
1515
@generated function Base.vcat{N,M,P}(m1::Mat{M,N}, m2::Mat{P,N})
16-
exprs = ntuple(i -> :( (m1p._[$i]..., m2p._[$i]...) ) , N)
16+
exprs = ntuple(i -> :( (Tuple(m1p)[$i]..., Tuple(m2p)[$i]...) ) , N)
1717
expr = Expr(:tuple, exprs...)
1818
quote
1919
(m1p, m2p) = promote(m1, m2)

0 commit comments

Comments
 (0)