Round Class Reference

Class to round the discrete variables of a point to integer values. More...

#include <uservector.h>

List of all members.

Static Public Member Functions

static dvector round (const dvector &x, vector< int > &indices, const dvector &lower, const dvector &upper)
 Rounds the values of a point, which are determined by indices, to integer values.
static void round (dvector &xr, const dvector &x, vector< int > &indices, const dvector &lower, const dvector &upper)
 Rounds the values of a point, which are determined by indices, to integer values.

Detailed Description

Class to round the discrete variables of a point to integer values.

Definition at line 1779 of file uservector.h.


Member Function Documentation

static dvector Round::round ( const dvector x,
vector< int > &  indices,
const dvector lower,
const dvector upper 
) [inline, static]

Rounds the values of a point, which are determined by indices, to integer values.

Parameters:
x The point to round.
indices The indices of the elements, which should be rounded.
lower The lower bound of the box.
upper The upper bound of the box.
Returns:
The rounded point.

Definition at line 1788 of file uservector.h.

static void Round::round ( dvector xr,
const dvector x,
vector< int > &  indices,
const dvector lower,
const dvector upper 
) [inline, static]

Rounds the values of a point, which are determined by indices, to integer values.

Parameters:
xr The dvector to store the rounded point in.
x The point to round.
indices The indices of the elements, which should be rounded.
lower The lower bound of the box.
upper The upper bound of the box.

Definition at line 1801 of file uservector.h.


The documentation for this class was generated from the following file:

Generated on 10 Mar 2013 for LaGO by  doxygen 1.6.1