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

(Last Changed on July 16, 2022 for git-revision f135841d1e9e036eca334761b451cbe2d797a2ba.)

#include "fvar.hpp"

Go to the source code of this file.

Functions

ivector operator+ (int value, const ivector &a)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
ivector operator+ (const ivector &a, const ivector &b)
 Returns results of element wise adding for vectors a and b. More...
 
ivector operator+ (const ivector &a, int value)
 Returns results of adding value to each element of vector a. More...
 
ivector operator- (int value, const ivector &a)
 Returns results of subtracting each element of a from value. More...
 
ivector operator- (const ivector &a, const ivector &b)
 Returns results of element wise substracting for vectors a and b. More...
 
ivector operator- (const ivector &a, int value)
 Returns results of substrating value from each element of vector a. More...
 

Function Documentation

ivector operator+ ( int  value,
const ivector a 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns results of adding each element of a to value.

ie results(i) = value + a(i)

Parameters
valueinteger
aivector

Definition at line 19 of file ivec8.cpp.

ivector operator+ ( const ivector a,
const ivector b 
)

Returns results of element wise adding for vectors a and b.

Note: a and b should have the same dimensions.

ie results(i) = a(i) + b(i)

Parameters
aivector
bivector

Definition at line 68 of file ivec8.cpp.

ivector operator+ ( const ivector a,
int  value 
)

Returns results of adding value to each element of vector a.

ie results(i) = a(i) + value;

Parameters
aivector
valueinteger

Definition at line 125 of file ivec8.cpp.

ivector operator- ( int  value,
const ivector a 
)

Returns results of subtracting each element of a from value.

ie results(i) = value - a(i)

Parameters
valueinteger
aivector

Definition at line 43 of file ivec8.cpp.

ivector operator- ( const ivector a,
const ivector b 
)

Returns results of element wise substracting for vectors a and b.

Note: a and b should have the same dimensions.

ie results(i) = a(i) - b(i)

Parameters
aivector
bivector

Definition at line 97 of file ivec8.cpp.

ivector operator- ( const ivector a,
int  value 
)

Returns results of substrating value from each element of vector a.

ie results(i) = a(i) - value;

Parameters
aivector
valueinteger

Definition at line 148 of file ivec8.cpp.