ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
Functions
ivect6.cpp File Reference

(* $Id$)

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.
ivector pow (int x, const ivector &v1)
 Returns integer vector with base x raised with all the elements in exponent ivector x.
int sum (const ivector &v)
 Return integer sum of all the elements in ivector v.

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