Skip to content

Commit f4ab149

Browse files
authored
Use permutedims in hcat (#84)
1 parent df1f877 commit f4ab149

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ApproxFunBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import Base: values, convert, getindex, setindex!, *, +, -, ==, <, <=, >, |, !,
2626
getproperty, findfirst, unsafe_getindex, fld, cld, div, real, imag,
2727
@_inline_meta, eachindex, firstindex, lastindex, keys, isreal, OneTo,
2828
Array, Vector, Matrix, view, ones, @propagate_inbounds, print_array,
29-
split, iszero
29+
split, iszero, permutedims
3030

3131
import Base.Broadcast: BroadcastStyle, Broadcasted, AbstractArrayStyle, broadcastable,
3232
DefaultArrayStyle, broadcasted

src/Multivariate/VectorFun.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ end
3939

4040
function hcat(v::ScalarFunTypes...)
4141
ff = vcat(v...) # A vectorized version
42-
transpose(ff)
42+
permutedims(ff)
4343
end
4444

4545
hvcat(rows::Tuple{Vararg{Int}},v::FunTypes...) = Fun(hvnocat(rows,v...))
@@ -79,7 +79,7 @@ Fun(f::ArrayFun, d::Space) = Fun(f,Space(fill(d,size(space(f)))))
7979

8080
Fun(M::AbstractMatrix{<:Number},sp::Space) = Fun([Fun(M[:,k],sp) for k=1:size(M,2)])
8181

82-
for OP in (:(transpose),)
82+
for OP in (:transpose,:permutedims)
8383
@eval begin
8484
$OP(f::ArrayFun) = Fun($OP(Array(f)))
8585
$OP(sp::Space{D,R}) where {D,R<:AbstractArray} = Space($OP(Array(sp)))

0 commit comments

Comments
 (0)