Go to the previous, next section.

### Row Math

Many of the mathematical functions that are available for matrices are also applicable to a single row of integers. In the following list, the symbols a and b are of the class integer_row and x, i and j are integers and o is a boolean.

`x = a[i];`
`a[i] = y;`
Read and modify the i-th element of the row a.

`o = (a == b);`
Are rows a and b are identical? (`!=` is also available)

`c = a + b;`
Add the corresponding elements of the two rows a and b, and put the results in C.

`c = a - b;`
Subtract the corresponding elements of the two rows a and b, and put the results in C.

`c = a * b;`
Multiply the corresponding elements of a and b, and put the results in c.

`c += a;`
Add the corresponding elements of a to the row c.

`c -= a;`
Subtract the corresponding elements of a from the row c.

`c *= a;`
Multiply the elements of c by the corresponding elements of a.

`c = a + x;`
Add the integer x to each element of a, and put the results in c.

`c = a - x;`
Subtract the integer x form each element of a, and put the results in c.

`c = a * x;`
Multiply each element of a by the integer x, and put the results in c.

`c = a / x;`
Divide each element of a by the integer x, and put the results in c.

`c += x;`
Add the integer x to each element of c.

`c -= x;`
Subtract the integer x from each element of c.

`c *= x;`
Multiply each element of a by the integer x.

`c /= x;`
Divide each element of a by the integer x.

Go to the previous, next section.