Skip to content

Commit a75de42

Browse files
authored
Update README.md
1 parent b29e263 commit a75de42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ In general, this provides a fast way to generate a sequence of Bessel functions
145145
julia> @btime besselj(0:100, 50.0)
146146
398.095 ns (1 allocation: 896 bytes)
147147
```
148-
This function will allocate so it is recommended that you calculate the Bessel functions at the top level of your function outside any hot loop.
148+
This function will allocate so it is recommended that you calculate the Bessel functions at the top level of your function outside any hot loop. You can also call the mutating function on your preallocated vector `Bessels.besselj!(out, nu, x)`
149+
```julia
150+
a = zeros(10)
151+
out = Bessels.besselj!(a, 1:10, 1.0)
152+
```
149153

150154
### Support for negative arguments
151155

0 commit comments

Comments
 (0)