# on the vector product

Can the product(element to element) of two vector $\vec{a}$ and $\vec{b}$ with the same dimension be written as the usual vector(or matrix) product?

Say $\vec{a}=[2,3],\vec{b}=[4,5]$ and $\vec{a}~\text{product(element to element)}~\vec{b}=[8,15]$

Thank you!

-

if you mean dot product ,then it is  just scalar  not vector,in your case a*b=23 – dato Jan 11 '12 at 19:56
Yes, I know. I mean I can add some other constant matrix like identity matrix, or other constant vector like $e_j$, anyway, I just want to get rid off that kind of unusual product. – breezeintopl Jan 11 '12 at 20:01

## 2 Answers

No, not if you mean standard matrix multiplication. The matrix product of two $n\times 1$ or $1\times n$ matrices does not exist. Even if you allow taking the transpose, the product of a $1\times n$ matrix and a $n\times 1$ matrix is $1\times 1$ while the product of a $n\times 1$ matrix and a $1\times n$ matrix is $n\times n$. None of these are vectors, so this can't be what you are looking for.

However, as Andreas pointed out, there is a name for the operation you are talking about, the Hadamard product, and it generalizes to all matrices.

-

Ok, thank you so much! I understand. – breezeintopl Jan 11 '12 at 20:08

For matrices there is the Hadamard product with $(A \circ B)_{i,j} = (A)_{i,j} \cdot (B)_{i,j}.$ So think of vectors as $1-\text{by}-2$ matrices.

-
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 15, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9171608686447144, "perplexity_flag": "head"}