Table model control strings

From: Paul Floyd <Paul_Floyd@mentor.com>
Date: Wed May 23 2012 - 02:39:58 PDT

Hi

I've been wondering if either the "I" or ";<digit>" parts of the control
string make any sense when using array inputs. I suppose if we want
gratuitious orthogonality it would be possible to write

// in1, in2 real expressions, d1, d2, d3, i1, i2 arrays
x = $table_model(in1, in2, d1, d2, d3, i1, 12, "3CC,I,3CC;2");

but I hope that anyone in their right minds would write

x = $table_model(in1, in2, d1, d3, 12, "3CC,3CC");

The only possible use I can imagine would be if the control string were
non-constant.

Another thing I've been wondering about is whether the control string
should be strictly one of "all dimensions" or "no dimensions".

The LRM says that if there is no control string, then it defaults to
"1LL" for all dimensions. If there is control string, must there be at
least one control per dimension, or can there be fewer? For instance,
for a 2D table model, would "3CC" be allowable, with the second
dimension also being implicitly "3CC", or would "3CC,3CC" be required? I
think that 'default to the last dimension' is in spirit of the language,
like port declarations.

Regards
Paul

-- 
Dr Paul Floyd
Mentor Graphics Corporation
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed May 23 02:40:23 2012

This archive was generated by hypermail 2.1.8 : Wed May 23 2012 - 02:40:36 PDT