Statement of Problem:
I have an array
M
withm
rows andn
columns. The arrayM
is filled with non-zero elements.I also have a vector
t
withn
elements, and a vectoromega
withm
elements.The elements of
t
correspond to the columns of matrixM
.The elements of
omega
correspond to the rows of matrixM
.
Goal of Algorithm:
Define chi
as the multiplication of vector t
and omega
. I need to obtain a 1D vector a
, where each element of a
is a function of chi
.
Each element of chi
is unique (i.e. every element is different).
Using mathematics notation, this can be expressed as a(chi)
Each element of vector a
corresponds to an element or elements of M
.
Matlab code:
Here is a code snippet showing how the vectors t
and omega
are generated. The matrix M
is pre-existing.
[m,n] = size(M);
t = linspace(0,5,n);
omega = linspace(0,628,m);
Conceptual Diagram:
This appears to be a type of integration (if this is the right word for it) along constant chi.
Reference:
The algorithm is not explicitly stated in the reference. I only wish that this algorithm was described in a manner reminiscent of computer science textbooks!
Looking at Figure 11.5, the matrix M is Figure 11.5(a). The goal is to find an algorithm to convert Figure 11.5(a) into 11.5(b).
It appears that the algorithm is a type of integration (averaging, perhaps?) along constant chi
.