m_shah2
September 12, 2022, 10:42pm
1
I am trying to run ai, aj = findn(triu(NA, 1)) and I am getting an error of function not defined
UndefVarError: triu not defined
Stacktrace:
[1] top-level scope
@ In[62]:2
[2] eval
@ .\boot.jl:368 [inlined]
[3] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base .\loading.jl:1428
I don’t know if it’s an inbuilt function or has to include using some package. Any help will be appreciated
jar1
September 12, 2022, 10:47pm
2
julia> using LinearAlgebra
julia> triu
triu (generic function with 11 methods)
1 Like
m_shah2
September 12, 2022, 10:51pm
3
Thanks. But now it says findn is not defined. Can you let me know how to find out the function is from which package?
Julia’s error doesn’t give a clear description of the package to be installed.
m_shah2
September 12, 2022, 10:53pm
4
UndefVarError: findn not defined
Stacktrace:
[1] top-level scope
@ In[69]:1
[2] eval
@ .\boot.jl:368 [inlined]
[3] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base .\loading.jl:1428
nilshg
September 13, 2022, 5:02am
6
I guess the question is where did you find findn
?
1 Like
Consider this: you could string together an enormous number of combinations of letters that could potentially be Julia functions. Which package owns gldebd()
?
I should only expect that to be an actual function if I’ve implemented it myself or if I’ve read it somewhere, in which case that place should list where they found it.