Notation or matrix operations for product of all elements in a vector?

1.1k Views Asked by At

Let $a=\left[\begin{array}.a_1\\\vdots\\a_n\end{array}\right]$ be a vector. Is there any standard notation for or any simple matrix operations that gives the product $$\prod_{i=1}^{n}a_i ?$$

1

There are 1 best solutions below

0
On

If $D = \text{diag}(a) = \text{diag}(a_1,\dots,a_n)$, then $$ \det D = \prod_{i = 1}^n a_i. $$