- #1

- 9

- 0

Currently I have two single dimension arrays. I am interested to know if I can modify program by combining them to a matrix giving same result.

E.g.

A(X), B(Y) used for M=P*A(1)+Q*B(2)

Proposed-

A(X,Y) used for M=P*A(1,Y)+Q*B(X,2)

Program should understand that it has to multiply only X value of A to P.

where A(1,Y)=A(1), B(X,2)=B(2)

Is it possible to do like this? if yes, the how? also whether it can reduce memory utilisation?

Thanks in advance.