operator + method
- BinaryMatrix other
Adds two equally shaped matrices over GF(2).
Implementation
BinaryMatrix operator +(BinaryMatrix other) {
_requireSameShape(other, 'add');
return BinaryMatrix(
List<BigInt>.generate(
rowCount, (index) => _rows[index] ^ other._rows[index]),
columnCount: columnCount,
);
}