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
dvect22.cpp
Go to the documentation of this file.
1
/*
2
* $Id$
3
*
4
* Author: David Fournier
5
* Copyright (c) 2008-2012 Regents of the University of California
6
*/
11
#include <
fvar.hpp
>
12
17
dvector
dvector::operator-
(
void
)
18
{
19
int
mmin=
indexmin
();
20
int
mmax=
indexmax
();
21
dvector
tmp(mmin,mmax);
22
double
* pvi =
v
+ mmin;
23
double
* ptmpi = tmp.
get_v
() + mmin;
24
for
(
int
i=mmin;i<=mmax;i++)
25
{
26
*ptmpi = -(*pvi);
27
28
++pvi;
29
++ptmpi;
30
}
31
return
tmp;
32
}
dvector::v
double * v
pointer to the data
Definition:
dvector.h:53
dvector::operator-
dvector operator-()
Description not yet available.
Definition:
dvect22.cpp:17
dvector
Vector of double precision numbers.
Definition:
dvector.h:50
dvector::indexmin
int indexmin() const
Get minimum valid index.
Definition:
dvector.h:199
dvector::indexmax
int indexmax() const
Get maximum valid index.
Definition:
dvector.h:204
fvar.hpp
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dvector::get_v
double *& get_v(void)
Definition:
dvector.h:148
Generated on Wed Sep 7 2022 00:01:27 for ADMB Documentation by
1.8.5