RTOpPack: Extra C/C++ Code for Vector Reduction/Transformation Operators
Version of the Day
|
#include "RTOp.h"
#include "RTOp_obj_value_vtbl.h"
Go to the source code of this file.
This operator computes the log barrier term for the doubly bounded inequalities:
xl <= x < xu
The barrier is computed as:
sum{ log( x(i) - xl(i) ) + log( xu(i) - x(i) ) , for i = 1...n }
To call this operator you must pass in the vectors in the order: v0 = x, v1 = xl, v2 = xu
.
The operation performed is:
element-wise reduction : log_result += log(v0(i) - v1(i)) + log(v2(i) - v0(i)), i = 1...n
This operator class implementation was created automatically by 'new_rtop.pl'.
ToDo: Write the documentation for this class!
Definition in file RTOp_ROp_log_bound_barrier.h.