# Findn() function not found in Julia

**URL:** <https://discourse.julialang.org/t/findn-function-not-found-in-julia/87175>\
**Category:** General Usage\
**Created:** [September 13, 2022, 12:37am UTC](https://discourse.julialang.org/t/findn-function-not-found-in-julia/87175 "2022-09-13T00:37:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [September 13, 2022, 1:05am UTC](https://discourse.julialang.org/t/findn-function-not-found-in-julia/87175/3 "2022-09-13T01:05:46Z")

</div>

It looks like `findn(A)` was a function in quite old versions of Julia, which was [deprecated in Julia 0.7](https://github.com/JuliaLang/julia/pull/25532) in favor of `findall(!iszero, A)`.

So, you should update your code to

```julia
aij = findall(!iszero, triu(NA,1))

```

where `aij` is now an array of [`CartesianIndex`](https://docs.julialang.org/en/v1/base/arrays/#Base.IteratorsMD.CartesianIndex), essentially a kind of multi-component index for indexing multidimensional arrays.

---

_[View the full topic](https://discourse.julialang.org/t/findn-function-not-found-in-julia/87175)._
