Findn(triu()) in Julia

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

julia> using LinearAlgebra

julia> triu
triu (generic function with 11 methods)
1 Like

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.

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

I don’t know about findn

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.

For future readers:

1 Like