(Matrix A has M*L elements and matrix B has L*N elements, so matrix C=A*B has M*N elements). Matrix C (I = 1, 2, ..., m; j= 1,2,…,n)
For i = 0 to m
For j = 0 to n
c(i,j) = 0
For k = 0 to l
c(i,j) = c(i,j) + a(i,k) * b(k,j)
Next k
Next J.
Next, I
Graphic transformation can be performed by multiplying the coordinate vector of each point by various transformation matrices, specifically
http://www-scf.usc.edu/~flv/ipbook/chap02.htm
Transposed, if a is a square matrix, you can directly exchange the corresponding elements in turn. If not, a matrix B must be redefined. The number of rows and columns is exactly the transposition of a matrix, and then the values are assigned one by one.
Dim m = UBound(A, 1)-LBound(A, 1)
Dim n = UBound(A,2)-LBound(A,2)
Dim B () is double precision.
ReDim B(n,m)
For i = 0 to m
For j = 0 to n
B(j,i) = A(i,j)
Next J.
Next, I