EVALMEX

Evaluates the pwag function

Contents

Private method of pwag object.

Description

This function evaluates the pwag function in an array of points x. It employs mex file evalmex.cpp.

Syntax

[u reg] = evalmex(nobj,ndim,nf,nr,H,K,F,G,nindexes,indexes,nfunctions,ifunctions,signs,x);

nobj is the number of pwag objects to evaluate, ndim the number of dimensions of the domain, nf the number of dimensions of the codomain, nr the number of region of the polytopic partition, H and K the matrices defining all the edges of the partition, F and G define all the affine functions defined over each polytope, nindexes is an array whose i-th element indicates the number of edges of i-th polytope, indexes contains (in column) the indices (to H and K) of the edges of each polytope, nfunctions contains the number of functions defined over each polytope, ifunctions contains the indices (to F and G) of the coefficients of the affine function of each polytope, signs conteins the sign of each inequality $H x \leq K$, x contains the points in which to evaluate the function.

[u reg] = evalmex(nobj,ndim,nf,nr,H,K,F,G,nindexes,indexes,nfunctions,ifunctions,signs,D,x);

Also the function domain D is specified.

Copyright

Copyright is with the following author(s):

(C) 2011 Alberto Oliveri, University of Genoa, Italy, alberto.oliveri@unige.it