Difference between revisions of "Manuals/calci/HADAMARDPRODUCT"

From ZCubes Wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
*Hadamard product is also called Schur product or  entrywise product.
 
*Hadamard product is also called Schur product or  entrywise product.
 
*The Hadamard product is associative,commutative and distributive.
 
*The Hadamard product is associative,commutative and distributive.
*Hadamard product is defined by,For two matrices, A and B, of the same dimension, mxn, the Hadamard product, <math> A\circ B</math>, is a matrix, of the same dimension as the operands, with elements given by:
+
*Hadamard product is defined by,For two matrices, A and B of the same dimension mxn, the Hadamard product <math> A\circ B</math>, is a matrix, of the same dimension as the operands, with elements given by:
 
<math>(A \circ B)_{i,j}=(A)_{i,j}(B)_{i,j} </math>
 
<math>(A \circ B)_{i,j}=(A)_{i,j}(B)_{i,j} </math>
 
*Hadamard Product of order 2 is calculated by:
 
*Hadamard Product of order 2 is calculated by:
Line 23: Line 23:
  
 
==Examples==
 
==Examples==
 +
1. HADAMARDPRODUCT([[2,3],[10,14]],[[6,4],[8,3]])
 +
{| class="wikitable"
 +
|-
 +
| 12 || 12
 +
|-
 +
| 80 || 42
 +
|}
 +
2. HADAMARDPRODUCT([[6,3,10],[5,-7,12],[4,2,6]],[[4,5,6],[9,2,-5],[12,13,7]])
 +
{| class="wikitable"
 +
|-
 +
| 24 || 15 || 60
 +
|-
 +
| 45 || -14 || -60
 +
|-
 +
|48 || 26 || 42
 +
|}
 +
 +
==See Also==
 +
*[[Manuals/calci/HADAMARD| HADAMARD]]
 +
*[[Manuals/calci/hadamard| hadamard]]
 +
*[[Manuals/calci/HANKEL| HANKEL]]
 +
 +
==References==
 +
*[http://en.wikipedia.org/wiki/Hadamard_matrix Hadamard matrix]
 +
 +
 +
 +
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
*[[ Z3 |  Z3 home ]]

Revision as of 12:39, 7 June 2017

HADAMARDPRODUCT (a,b)


  • and are any two matrices.

Description

  • This function shows the value of the Hadamard product.
  • In , and are two matrices.
  • Hadamard product is also called Schur product or entrywise product.
  • The Hadamard product is associative,commutative and distributive.
  • Hadamard product is defined by,For two matrices, A and B of the same dimension mxn, the Hadamard product , is a matrix, of the same dimension as the operands, with elements given by:

  • Hadamard Product of order 2 is calculated by:

=

Examples

1. HADAMARDPRODUCT([[2,3],[10,14]],[[6,4],[8,3]])

12 12
80 42

2. HADAMARDPRODUCT([[6,3,10],[5,-7,12],[4,2,6]],[[4,5,6],[9,2,-5],[12,13,7]])

24 15 60
45 -14 -60
48 26 42

See Also

References