ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
dvec_dif.cpp File Reference

(Last Changed on April 04, 2020 for git-revision 30ac290f82b9a604a2f2a4022e2b20bf6a012fcd.)

Function to compute first_difference. More...

#include "fvar.hpp"

Go to the source code of this file.

Functions

dvector first_difference (const dvector &values)
 Returns dvector containing the differences of an values(i) and values(i + 1) for i = 1 to values.indexmax() - 1. More...
 

Detailed Description

Function to compute first_difference.

Author
David Fournier

Definition in file dvec_dif.cpp.

Function Documentation

dvector first_difference ( const dvector values)

Returns dvector containing the differences of an values(i) and values(i + 1) for i = 1 to values.indexmax() - 1.

Parameters
valuesdvector

Definition at line 17 of file dvec_dif.cpp.