operator * method
- BinaryMatrix right
Multiplies this matrix by right over GF(2).
Implementation
BinaryMatrix operator *(BinaryMatrix right) {
if (columnCount != right.rowCount) {
throw RohdHclException('Cannot multiply ${rowCount}x$columnCount and '
'${right.rowCount}x${right.columnCount} binary matrices.');
}
final rightTranspose = right.transpose();
return BinaryMatrix(
[
for (final leftRow in _rows)
_dotProducts(leftRow, rightTranspose._rows),
],
columnCount: right.columnCount,
);
}