1

My question is somewhat related to Sum of all elements in a matrix

Consider a matrix A, is there any class of matrices, C, such that:

$$grandsum(CA) = grandsum(A)$$, or

$$ e^TCAe = e^TAe $$

That is all the operations where sum of matrix is conserved. What are such C called?

Background: My friend asked me recently regarding a way to represent all arbitrary volume that a chunk of fluid can take in space. His representation includes a square matrix with matrix elements representing solid angles. Deformation of such fluid will conserve volume, which he is representing as sum of individual elements. so while they can change, their sum cannot.

ipcamit
  • 125

1 Answers1

3

Let $B,C$ be any matrices such that $e = (1,1,\ldots,1)$ is an eigenvector of eigenvalue $1$ for $B$. Then the sum of all elements of your matrix $A$ is $e^TAe = (Be)^TA(Ce) = e^T(B^TAC)e$. And hence the matrix $B^TAC$ has the same sum of elements.

Lukas Rollier
  • 1,289
  • 4
  • 11