So I have the following equation for a matrix $\mathbf{B}$ given $\mathbf{A}$:
$$ b_{ij} = \sum_k \sum_l a_{ki} a_{jl} $$
The question is if there is any way that I can write that one compactly in matrix/vector notations?
So I have the following equation for a matrix $\mathbf{B}$ given $\mathbf{A}$:
$$ b_{ij} = \sum_k \sum_l a_{ki} a_{jl} $$
The question is if there is any way that I can write that one compactly in matrix/vector notations?
Copyright © 2021 JogjaFile Inc.
Let $C = (1 \ \cdots \ 1) A^T$ (so it's a row vector). Then $B = C^TC$.
In other words,
$$B = A \mathfrak{I} A^T, $$
where $\mathfrak I$ is the $n \times n$ matrix with all entries equal to 1.