Approximate translation:
Currently, there is data with only 1 and 0 numbers of 100x3.
From there, I want to do the following calculations using if and for statements
If the number in the first column is 1, it is 1x2. If it is 0, it is 0x0.
If the number in the second column is 1, 1x2 ^ 2. If it is 0, 0x0
If the number in the third column is 1, then 1x2 ^ 3; if it is 0, then 0x0
And I would like you to add those numbers.
Example)
In the case of 1, 1, 0, 1 × 2 + 1 × 2 ^ 2 + 0 = 6
Since this is for 100 lines, I would like to calculate it, so please tell me the script if possible.The 100x3 data will be C in the script below.
Thank you.