Calculate the element-wise product of two vectors or matrices.
Enter two sequences of the same length to compute their Hadamard product. This operation is fundamental in various fields like linear algebra and machine learning.
Enter comma-separated or space-separated numbers. Vectors must have the same length.
Enter comma-separated or space-separated numbers. Vectors must have the same length.
Click on an example to load it into the calculator.
A simple element-wise product of two integer vectors.
A: [1, 2, 3]
B: [4, 5, 6]
Demonstrates the product with floating-point numbers.
A: [0.5, 1.5, -2.0]
B: [2, 1, 3.5]
Simulates applying a binary mask to a vector (e.g., pixel values).
A: [128, 255, 64, 210]
B: [1, 0, 1, 0]
Represents gating features in a neural network layer.
A: [0.89, -0.23, 1.34, -0.67]
B: [0.95, 0.98, 0.21, 0.55]