摘要 |
PURPOSE:To assign a two-dimensional array undefining the range of values to be applied to subscripts to a one-dimensional array-like area by converting the subscript from the two-dimensional array into the one-dimensional array so as not to depend upon the range of the value to be applied to the subscript. CONSTITUTION:A larger value out of the values i1, i2 of the 1st and 2nd subscripts to be inputs is selected by a maximum value selector 1 and squared by a square calculator and the squared value is inputted to adders 3, 4 as one input each. The adder 3 adds the 1st subscript i1 and the adder 4 adds the 1st and 2nd subscripts i1, i2. An output selector 5 selects an output in accordance with the size relation of the 1st and 2nd subscripts i1, i2, the output of the adder 3 in case of i1<i2 and selects the output of the adder 4 in case of i1>=i2. Consequently, a different output (t) can be obtained in accordance with the pair of the integers i1, i2 and respective elements M (i1, i2) in the two-dimensional array can be easily assigned to a memory space constituted as the one- dimensional address array.
|