ADMB Documentation
-a65f1c97
Main Page
Function Reference
Classes
Source Code
Related Pages
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
linad99
d3arr2c.cpp
Go to the documentation of this file.
1
5
#include "
fvar.hpp
"
6
11
d3_array
sqrt
(
const
d3_array
& arr3)
12
{
13
d3_array
results;
14
results.
allocate
(arr3);
15
for
(
int
i = results.
slicemin
(); i <= results.
slicemax
(); ++i)
16
{
17
results(i) =
sqrt
(arr3(i));
18
}
19
return
results;
20
}
25
d3_array
sqr
(
const
d3_array
& arr3)
26
{
27
d3_array
results;
28
results.
allocate
(arr3);
29
for
(
int
i = results.
slicemin
(); i <= results.
slicemax
(); ++i)
30
{
31
results(i) =
sqr
(arr3(i));
32
}
33
return
results;
34
}
sqr
d3_array sqr(const d3_array &arr3)
Returns d3_array with square values from arr3.
Definition:
d3arr2c.cpp:25
d3_array::allocate
void allocate(const ad_integer &sl, const ad_integer &sh, const index_type &nrl, const index_type &nrh, const index_type &ncl, const index_type &nch)
Allocate array of matrices with dimensions [sl to sh] x [nrl to nrh] x [ncl to nch].
Definition:
indextyp.cpp:327
d3_array::slicemax
int slicemax() const
Definition:
fvar.hpp:3830
sqrt
d3_array sqrt(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition:
d3arr2c.cpp:11
fvar.hpp
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
d3_array::slicemin
int slicemin() const
Definition:
fvar.hpp:3826
d3_array
Description not yet available.
Definition:
fvar.hpp:3727
Generated on Wed Sep 7 2022 00:01:26 for ADMB Documentation by
1.8.5