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

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

Contains ivector sum and pow functions. More...

#include <fvar.hpp>

Go to the source code of this file.

Functions

ivector pow (const ivector &v1, int x)
 Returns integer vector with all the base elements in ivector v1 base raised to the power exponent x. More...
 
ivector pow (int x, const ivector &v1)
 Returns integer vector with base x raised with all the elements in exponent ivector x. More...
 
int sum (const ivector &v)
 Return integer sum of all the elements in ivector v. More...
 

Detailed Description

Contains ivector sum and pow functions.

Definition in file ivect6.cpp.

Function Documentation

ivector pow ( const ivector v1,
int  x 
)

Returns integer vector with all the base elements in ivector v1 base raised to the power exponent x.

Parameters
v1base elements
xexponent

Definition at line 45 of file ivect6.cpp.

ivector pow ( int  x,
const ivector v1 
)

Returns integer vector with base x raised with all the elements in exponent ivector x.

Parameters
xbase
v1exponent

Definition at line 71 of file ivect6.cpp.

int sum ( const ivector v)

Return integer sum of all the elements in ivector v.

Parameters
vinteger vector

Definition at line 23 of file ivect6.cpp.