This is part of the HicEst documentation

$C: Column Index of left hand side Array


The global HicEst variable $C is the current column number of a left-hand side matrix and can be used in right-hand side inline-loop operations.

⇒Home ⇒Contents ⇒more Programming
see also: Arrays
DIMENSION matrix(2,3) ! 2 rows x 3 columns matrix example
matrix = $C
1 2 3
1 2 3
! The use of $C along with the left-hand side row index $R is possible:
matrix = $R + $C/10
1.1 1.2 1.3
2.1 2.2 2.3
! simultaneous use of $C, $R, and $ (the left-hand side linear index):
matrix = 10* $R + $C + $/100
11.01 12.02 13.03
21.04 22.05 23.06
! inline_loop to find the running row sum for each row of M33

REAL :: n=3, M33(3,3), Q33(3,3) ! define two 3x3 matrices
M33 = $ ! sets M33 to 1, 2, .., 9
Q33 = +( M33(1: $R,$C) ) ! sums each column from 1 to $R
M33
1 2 3
4 5 6
7 8 9
Q33
1 2 3
5 7 9
12 15 18



Support HicEst   ⇒ Impressum
©2000-2016 Georg Petrich, HicEst Instant Prototype Computing. All rights reserved.