RTOp_TOp_force_in_bounds.h File Reference

#include "RTOp.h"
#include "RTOp_obj_null_vtbl.h"

Include dependency graph for RTOp_TOp_force_in_bounds.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Detailed Description

Force the elements in a vector to be within upper and lower bounds.

Force vec[0](i) <= targ_vec[0](i) <= vec[1](i), for i = 1...n.

This operator is only admits dense vectors. This transformation operation performs the following (apply_op(...)):

            / xl(i) : if x(i) < xl(i)
 x(i) =     | x(i)  : if xl(i) <= x(i) <= xu(i)
            \ xu(i) : if x(i) > xu(i)
 where:
    x  = targ_vec[0]
  xl = vec[0]
  xu = vec[1]
 

Definition in file RTOp_TOp_force_in_bounds.h.


Generated on Thu Sep 18 12:33:39 2008 for RTOpPack: Extra C/C++ Code for Vector Reduction/Transformation Operators by doxygen 1.3.9.1