Does this kind of matrix product exist?

  • Context: Undergrad 
  • Thread starter Thread starter lets_resonate
  • Start date Start date
  • Tags Tags
    Matrix Product
Click For Summary

Discussion Overview

The discussion revolves around the existence and naming of a specific type of matrix product, where the product of two matrices A and B results in a new matrix formed by multiplying corresponding elements. The scope includes theoretical aspects of matrix operations and potential applications in programming and mathematics.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant defines a product A \star B that results in a matrix where each element is the product of corresponding elements from matrices A and B.
  • Another participant asserts that such a product exists and mentions its implementation in MATLAB as a common operation, suggesting it may be a special case of the tensor product.
  • A different participant challenges the previous claim, stating that the contraction described leads to the ordinary product of two matrices rather than the proposed product.
  • One participant proposes potential names for the product, including "pointwise product," "componentwise product," or "elementwise product."
  • Another participant identifies the term "Hadamard product" as a name they have encountered for this type of operation.
  • One participant notes that they have seen this product referenced in the context of C*-algebra, although they do not recall its specific application.

Areas of Agreement / Disagreement

Participants express differing views on the naming and nature of the product, with some suggesting it is a specific type of product while others contest this characterization. No consensus is reached regarding the terminology or the mathematical implications of the product.

Contextual Notes

There are unresolved aspects regarding the definitions and implications of the proposed product, particularly in relation to tensor operations and matrix multiplication conventions.

lets_resonate
Messages
15
Reaction score
0
Suppose you have a matrix A:

[tex] \left(<br /> \begin{array}{ccc}<br /> a_{1,1} & a_{1,2} & a_{1,3} \\<br /> a_{2,1} & a_{2,2} & a_{2,3} \\<br /> a_{3,1} & a_{3,2} & a_{3,3}<br /> \end{array}<br /> \right)[/tex]

And a matrix B:

[tex] \left(<br /> \begin{array}{ccc}<br /> b_{1,1} & b_{1,2} & b_{1,3} \\<br /> b_{2,1} & b_{2,2} & b_{2,3} \\<br /> b_{3,1} & b_{3,2} & b_{3,3}<br /> \end{array}<br /> \right)[/tex]

I want a product [itex]A \star B[/itex] that would result in:

[tex] \left(<br /> \begin{array}{ccc}<br /> a_{1,1} b_{1,1} & a_{1,2} b_{1,2} & a_{1,3} b_{1,3} \\<br /> a_{2,1} b_{2,1} & a_{2,2} b_{2,2} & a_{2,3} b_{2,3} \\<br /> a_{3,1} b_{3,1} & a_{3,2} b_{3,2} & a_{3,3} b_{3,3}<br /> \end{array}<br /> \right)[/tex]

Does such a product exist? What would be the name of it?
 
Physics news on Phys.org
It certainly exists. For one thing, you just defined it! But regardless of that fact, this is a common product in MATLAB: v1.*v2, where v1 and v2 are vectors or matrices of the same size. I'm not sure if it has a specific name, probably because it's a special case of a more general operation, the tensor product.

I can define a rank-4 tensor with components

[tex]C^{ik}_{~~jl} = A^{i}_{~j}B^{k}_{~l}[/tex]

I can then contract over the indices k and j to get the matrix you want:

[tex]M^{i}_{~l} = C^{ik}_{~~kl} = A^{i}_{~k}B^{k}_{~l}[/tex]

In case you're unfamilar with index notation, we're basically specifying the components of the matrix (or, in general, higher dimensional objects called tensors) using indices to label the rows and columns (and the other higher dimensional directions of the object). Note that I've used "Einstein Notation", meaning a summation is implied: any time an index appears twice on a product or term it is being summed over. The tensor C I defined is a new object defined in terms of the components of two other objects. The "Contraction" I did, summing over elements of the C tensor, results in a lower-dimensional object, which in this case is the object you defined.

See: http://en.wikipedia.org/wiki/Einstein_notation , http://en.wikipedia.org/wiki/Tensor_product , http://en.wikipedia.org/wiki/Tensor

Note that the stuff on tensors may be a little more than you want or need for your purposes, depending on what they are.
 
Last edited by a moderator:
Mute said:
I can then contract over the indices k and j to get the matrix you want:

[tex]M^{i}_{~l} = C^{ik}_{~~kl} = A^{i}_{~k}B^{k}_{~l}[/tex]
No, that is the ordinary product of two matrices.
 
lets_resonate said:
What would be the name of it?
My first guess is that someone using such a product would call it the "pointwise product", "componentwise product", or "elementwise product", if they bothered to name it at all.
 
Hadamard product is the name I've seen used for it.
 
I've seen it used in C* algebra related material, though I can't recall what it was used for.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
5
Views
5K