next up previous contents index
Next: Deleting index ranges Up: Generating many quantities together Previous: Setting regular index ranges

Setting irregular index ranges

 


tex2html_wrap_inline33790 tex2html_wrap_inline33790 Syntax

BD>indexvec : C=D tex2html_wrap_inline33712

where C is an alphabetic character representing an index, and where D is the name of a data-carrier.

tex2html_wrap_inline33806 tex2html_wrap_inline33806

The syntax for the INDEXVEC:  command defines the name of an index, C, and a range of values to be associated with it. To use this syntax, it is necessary to have created a data-carrier D of length k, with k data cases tex2html_wrap_inline35980 , beforehand. The intention is to replace the character C successively by the integers tex2html_wrap_inline35982 .

The command is used to vary the indices of quantities referenced in COBUILD:  and ITADJUST:  commands. An index can be overwritten - if an error occurs during re-definition, the former value is retained. The values used for indices should round to positive integers no larger than 32767. Index definitions can be deleted with the XINDEX:  command. When, for whatever reason, a data carrier is deleted or overwritten, and if it is also associated with an index, the index is deleted.

For example, suppose that you wish to construct (using the COBUILD:  command) the elements tex2html_wrap_inline35984 for tex2html_wrap_inline35986 , tex2html_wrap_inline35988 , and tex2html_wrap_inline35990 . Assuming that appropriate functional beliefs have been specified, the following code example shows how we could proceed.

index: j=1,1,4 tex2html_wrap_inline33712

data: <tempa>3 tex2html_wrap_inline33712

1 7 8 tex2html_wrap_inline33712

indexvec: i=tempa tex2html_wrap_inline33712

data: <tempb>4 tex2html_wrap_inline33712

2 17 19 24 tex2html_wrap_inline33712

indexvec: k=tempb tex2html_wrap_inline33712

cobuild: a.i.j.k tex2html_wrap_inline33712

The example shows the irregular patterns being stored as the data-carriers tex2html_wrap_inline35992 and tex2html_wrap_inline35994 respectively, and then associated with indices tex2html_wrap_inline35996 respectively via the INDEXVEC:  command. We define the index j via the INDEX:  command as it is associated with a regular pattern. 


next up previous contents index
Next: Deleting index ranges Up: Generating many quantities together Previous: Setting regular index ranges

David Wooff
Wed Oct 21 15:14:31 BST 1998