[ PcGive home | Index ]

mapres.oxh

exported functions

exported functions
 MapHmatToLinRes(const mH, const vH=<>, const rNorm=-1)
 Maps from the H matrix representation to the restriction specification of the type "a b-2a 0 *".
 MapLinResToHmat( sRes)
 Maps restriction specification of the type "a b-2a 0 *" to the H matrix representation.

MapHmatToLinRes(const mH, const vH=<>, const rNorm=-1)
Maps from the H matrix representation to the restriction specification of the type "a b-2a 0 *".
Parameters
mH H[r][c] matrix
vH h[r][1] vector (default is <>)
rNorm row index of normalization (default is -1 for none)
Returns
a string with the restriction specification.

MapLinResToHmat( sRes)
Maps restriction specification of the type "a b-2a 0 *" to the H matrix representation.
Parameters
sRes string
Returns
{H, h, asH} h is empty if there are no non-zero fixed parameters; asH are the labels of the parameters (or *)
Comments
Expresses a linear restriction: beta_i = H * \phi - Use * for an unrestricted parameter - Use a single letter (lowercase: a-z) for a restricted parameter - Use zero if a parameter is set to zero - Use a number (only) if a parameter is fixed at that number - Each parameter expression is separated by white space: so no white space allowed inside an expression - Write multiplication with the number prefixed to the parameter name, e.g. 4a or -5.1e - Only operators are + and - - One vector (i.e. one H matrix) must be written on a single line - Comment to end-of line is written as ; or // Example: H = 1 0 0 -1 2 0 0 -1 0 0 0 1 can be expressed as: a -a+2b -b *