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

(Last Changed on April 02, 2021 for git-revision 11813c5e0448296e55956e4e38440332e15d371a.)

Description not yet available. More...

#include "fvar.hpp"
#include <stdlib.h>

Go to the source code of this file.

Functions

void clean (ivector &v, int level)
 Set elements of ivec to zero starting from level + 1;. More...
 
int norm2 (const ivector &ivec)
 Returns the sum of the squares of all elements in ivec. More...
 
int sumsq (const ivector &ivec)
 Returns the sum of the squares of all elements in ivec. More...
 

Detailed Description

Description not yet available.

Definition in file ivector.cpp.

Function Documentation

void clean ( ivector v,
int  level 
)

Set elements of ivec to zero starting from level + 1;.

Parameters
levelis the index of ivec

Definition at line 377 of file ivector.cpp.

int norm2 ( const ivector ivec)

Returns the sum of the squares of all elements in ivec.

Parameters
ivecivector

Definition at line 354 of file ivector.cpp.

int sumsq ( const ivector ivec)

Returns the sum of the squares of all elements in ivec.

Parameters
ivecivector

Definition at line 368 of file ivector.cpp.