The reason is that it is not exported so you can either use the full path
bar(Base.LinAlg.CHOLMOD.CholmodFactor{Float64,Int64}) = 1
or "use" the type first
using Base.LinAlg.CHOLMOD.CholmodFactor
bar(CholmodFactor{Float64,Int64}) = 1
2015-04-21 10:27 GMT-04:00 andreas <[email protected]>:
>
> Hi everybody,
>
> It seems to that CholmodFactor is not defined when I try to use to define
> a type of a function parameter.
>
> For example:
>
> typeof(cholfact(speye(5)))
> -> CholmodFactor{Float64,Int64} (constructor with 1 method)
>
> So far so good. However, that does not work:
>
> bar(x::CholmodFactor{Float64,Int64}) = 1
> -> ERROR: CholmodFactor not defined
>
>
> I have the feeling I miss something very obvious here...
> Any help is very much appreciated.
>
> Andreas
>
> PS: using v"0.3.7" on Windows 7
>
>
>