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

(Last Changed on May 24, 2022 for git-revision 737ad378036b5b0581ef78c3ce5a7d53af77d244.)

#include "vector_shapex.h"
#include "gradient_structure.h"

Go to the source code of this file.

Classes

class  ivector
 Array of integers(int) with indexes from index_min to indexmax. More...
 

Functions

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

Function Documentation

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 
)

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 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.

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.