Need to find a matrix transformation that takes a (non-square) matrix and within each of its rows ke

protestommb

protestommb

Answered question

2022-06-23

Need to find a matrix transformation that takes a (non-square) matrix and within each of its rows keeps the first nonzero element in that row and zeros out the rest of the entries within that row.
I tried to solve the linear matrix equation AX = B to get the matrix transformation A as A = B X^T (XX^T)^{-1} , where X is the matrix to be transformed as such, and B is the desired output matrix (X with only its first nonzero element in each row) but I look for a more straightforward and possibly more elegant way to do it. I appreciate creative answers!

Answer & Explanation

drumette824ed

drumette824ed

Beginner2022-06-24Added 19 answers

If you literally mean that it should keep the first nonzero element in each row, then that transformation is not a linear one. If you mean instead that it should preserve the first entry in each row (regardless of whether that entry is zero or not), then that will be a linear transformation

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Linear algebra

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?