1
$\begingroup$

I want to sum matrix $\mathbf{A}$ ($n \times d$) and a matrix composed of $n$ copies of vector $\mathbf{b}$ ($d \times 1$) as follows:

$\mathbf{A}+\begin{bmatrix}\mathbf{b^T \\ \vdots \\ b^T}\end{bmatrix}_{n \times d}$

In MATLAB or Julia this would be equivalent to:

A .+ b' 

Is there any succinct mathematical notation for this operation, or is the notation I used here the most appropriate?

Thanks in advance.

$\endgroup$
0

2 Answers 2

1
$\begingroup$

Let $\mathbf{1}= \pmatrix{1\\1\\ \vdots \\1}$

You want $\mathbf{A}+ \mathbf{1} \, \mathbf{b}^T$

$\endgroup$
1
$\begingroup$

If $\mathbf{1}$ denotes the $n \times 1$ vector with all entries equal to $1$, you could write

$$\mathbf{A}+\begin{bmatrix}\mathbf{b^T \\ \vdots \\ b^T}\end{bmatrix}_{n \times d} = A + \mathbf{1} \otimes \mathbf{b} $$ using tensor product.

$\endgroup$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.