sangeetha wrote:
Hi,
i need to transpose a nx1 matrix to 1xn matrix inorder to multiply
with nxn matrix in c language ...
can anyone help in this coding ..the nx1 matrix is pi[i] the data
type is double *pi..this is used through out the program ..now i need this
transpose for further calculations....
Kindly help as soon as possible.....if this is not possible kindly
suggest me something...
General notes about transposes of matrices:
If A = B^t, then A is the transpose of B
and also if B = b(i,j) then A = a(j,i)
---
Writing code to find A given B (general transpose algorithm) is much
easier than writing code to mulitply two matrices. If you are the one
who coded your matrix multiplying functions, then you should have no
problem doing this.
In your case, you are starting with a column vector and require
transposing to a row vector. Just treat the column vector as a row
vector whenever you need the transpose (an array with one dimension can
be treated as a column or a row). Just pass your column vector to the
matrix multiplying function (along with your nxn matrix) in a way that
the function thinks it's receiving a row vector. More specific help
will require more details about the current state of your code.
Good luck.