Enter values into matrices A and B, then click Multiply. Supports dimensions up to 6×6. B's row count is automatically locked to A's column count.
Neural network forward passes are sequences of matrix multiplications. A linear (fully connected) layer computes output = X @ W.T + b, where X is the input batch, W is the weight matrix, and b is the bias vector. Understanding shapes — (batch_size, in_features) × (in_features, out_features) = (batch_size, out_features) — is essential for debugging dimension errors in PyTorch or TensorFlow. Getting matrix shapes wrong is one of the most common sources of bugs when building custom layers or loss functions.