identity method Null safety
Make this the identity matrix
Implementation
void identity() {
visit((r, c) {
if (r == c) {
setF(r, c, 1);
} else {
setF(r, c, 0);
}
});
}
Make this the identity matrix
void identity() {
visit((r, c) {
if (r == c) {
setF(r, c, 1);
} else {
setF(r, c, 0);
}
});
}