From 536746d47e5dea985a4c7335c9758c9884a2dc90 Mon Sep 17 00:00:00 2001 From: Thomas Breloff Date: Fri, 27 May 2016 14:38:23 -0400 Subject: [PATCH] switch order for Surface function constructor; closes #273 --- src/components.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components.jl b/src/components.jl index 50eae130..53e88e10 100644 --- a/src/components.jl +++ b/src/components.jl @@ -356,7 +356,7 @@ immutable Surface{M<:AMat} <: AbstractSurface surf::M end -Surface(f::Function, x, y) = Surface(Float64[f(xi,yi) for xi in x, yi in y]) +Surface(f::Function, x, y) = Surface(Float64[f(xi,yi) for yi in y, xi in x]) Base.Array(surf::Surface) = surf.surf