It should work if you write "using Base.LinAlg" first

On Saturday, April 11, 2015 at 2:29:57 PM UTC+2, Alan Crawford wrote:
>
> I would like to setup a type stable function where one of the arguments is 
> the result of lufact(A) where A::Array{Float64,2}. 
>
> Here is code I wrote to test this out:
>
> A = rand(100,100);
> f = rand(100,1);
> luA = lufact(A);
> typeof(luA)
> function test(f::Vector{Float64},luA::LU{Float64,Array{Float64,2}}) 
>        \(luA,f) 
> end
>
> The output i get is:
>
> *typeof(luA)*
>
> *LU{Float64,Array{Float64,2}} (constructor with 1 method)*
>
>
> *julia> **function 
> test(f::Vector{Float64},luA::LU{Float64,Array{Float64,2}}) *
>
> *         \(luA,f) *
>
> *       end*
>
> *ERROR: LU not defined*
>
>
> I am working in Julia 0.3.7. I am relatively new to Julia, so I imagine I 
> am missing something quite simple... 
>

Reply via email to