Skip to content

Commit 65db5f3

Browse files
committed
Add scoping to README calls to gradient and hessian
1 parent 447ec74 commit 65db5f3

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,22 @@ v = itp(x, y, ...)
5858
Some interpolation objects support computation of the gradient, which
5959
can be obtained as
6060
```julia
61-
g = gradient(itp, x, y, ...)
61+
g = Interpolations.gradient(itp, x, y, ...)
6262
```
63-
or, if you're evaluating the gradient repeatedly, a somewhat more
64-
efficient option is
63+
or as
6564
```julia
66-
gradient!(g, itp, x, y, ...)
65+
Interpolations.gradient!(g, itp, x, y, ...)
6766
```
6867
where `g` is a pre-allocated vector.
6968

7069
Some interpolation objects support computation of the hessian, which
7170
can be obtained as
7271
```julia
73-
h = hessian(itp, x, y, ...)
72+
h = Interpolations.hessian(itp, x, y, ...)
7473
```
75-
or, if you're evaluating the hessian repeatedly, a somewhat more
76-
efficient option is
74+
or
7775
```julia
78-
hessian!(h, itp, x, y, ...)
76+
Interpolations.hessian!(h, itp, x, y, ...)
7977
```
8078
where `h` is a pre-allocated matrix.
8179

0 commit comments

Comments
 (0)