Skip to content

Commit fa274e3

Browse files
authored
Merge pull request #151 from stan-dev/integrate-1d
Fix return value of integrate_1d to be real
2 parents 23ec2e4 + 63a7396 commit fa274e3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/functions-reference/higher-order_functions.Rmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,16 +329,16 @@ integrator separates parameter values, `theta`, from data values, `x_r`.
329329

330330
### Call to the 1D Integrator
331331

332-
<!-- vector; integrate_1d; (function integrand, real a, real b, real[] theta, real[] x_r, int[] x_i); -->
333-
\index{{\tt \bfseries integrate\_1d }!{\tt (function integrand, real a, real b, real[] theta, real[] x\_r, int[] x\_i): vector}|hyperpage}
332+
<!-- real; integrate_1d; (function integrand, real a, real b, real[] theta, real[] x_r, int[] x_i); -->
333+
\index{{\tt \bfseries integrate\_1d }!{\tt (function integrand, real a, real b, real[] theta, real[] x\_r, int[] x\_i): real}|hyperpage}
334334

335-
`vector` **`integrate_1d`** `(function integrand, real a, real b, real[] theta, real[] x_r, int[] x_i)`<br>\newline
335+
`real` **`integrate_1d`** `(function integrand, real a, real b, real[] theta, real[] x_r, int[] x_i)`<br>\newline
336336
Integrates the integrand from a to b.
337337

338-
<!-- vector; integrate_1d; (function integrand, real a, real b, real[] theta, real[] x_r, int[] x_i), real relative_tolerance); -->
339-
\index{{\tt \bfseries integrate\_1d }!{\tt (function integrand, real a, real b, real[] theta, real[] x\_r, int[] x\_i, real relative\_tolerance): vector}|hyperpage}
338+
<!-- real; integrate_1d; (function integrand, real a, real b, real[] theta, real[] x_r, int[] x_i), real relative_tolerance); -->
339+
\index{{\tt \bfseries integrate\_1d }!{\tt (function integrand, real a, real b, real[] theta, real[] x\_r, int[] x\_i, real relative\_tolerance): real}|hyperpage}
340340

341-
`vector` **`integrate_1d`** `(function integrand, real a, real b, real[] theta, real[] x_r, int[] x_i, real relative_tolerance)`<br>\newline
341+
`real` **`integrate_1d`** `(function integrand, real a, real b, real[] theta, real[] x_r, int[] x_i, real relative_tolerance)`<br>\newline
342342
Integrates the integrand from a to b with the given relative tolerance.
343343

344344

0 commit comments

Comments
 (0)