Commit d82b61b
authored
654 grb::set matrix to matrix broken in mixed domain (#290)
This MR fixes the behaviour of `grb::set( matrix, * )` by 1) correctly interpreting output masks and 2) fixes the behaviour of casting values from the input matrix value type to that of the output matrix.
This MR also
- adds a unit test for both fixes to guard against regressions;
- fixes / updates the base specification of `grb::set( matrix, * )`;
- allows for `grb::set( matrix, matrix[, scalar] )` to work for two matrices with different index / offset types;
- improves debug tracing for the reference `Compressed_Storage` class;
- includes minor code style fixes.
Thanks to Benjamin Lozes for initially identifying the issue and providing the fix!1 parent 3ff4480 commit d82b61b
File tree
9 files changed
+491
-174
lines changed- include/graphblas
- base
- bsp1d
- nonblocking
- reference
- tests/unit
9 files changed
+491
-174
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
1184 | | - | |
1185 | | - | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1186 | 1187 | | |
1187 | 1188 | | |
1188 | 1189 | | |
1189 | | - | |
1190 | | - | |
| 1190 | + | |
| 1191 | + | |
1191 | 1192 | | |
1192 | 1193 | | |
1193 | 1194 | | |
| |||
1198 | 1199 | | |
1199 | 1200 | | |
1200 | 1201 | | |
1201 | | - | |
1202 | 1202 | | |
| 1203 | + | |
1203 | 1204 | | |
1204 | 1205 | | |
1205 | 1206 | | |
| |||
1222 | 1223 | | |
1223 | 1224 | | |
1224 | 1225 | | |
1225 | | - | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
1229 | 1230 | | |
1230 | 1231 | | |
1231 | 1232 | | |
| |||
1264 | 1265 | | |
1265 | 1266 | | |
1266 | 1267 | | |
1267 | | - | |
| 1268 | + | |
1268 | 1269 | | |
1269 | 1270 | | |
1270 | 1271 | | |
| |||
1292 | 1293 | | |
1293 | 1294 | | |
1294 | 1295 | | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
1298 | 1299 | | |
1299 | 1300 | | |
1300 | 1301 | | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
1304 | 1305 | | |
1305 | 1306 | | |
1306 | | - | |
| 1307 | + | |
1307 | 1308 | | |
1308 | 1309 | | |
1309 | 1310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1723 | 1723 | | |
1724 | 1724 | | |
1725 | 1725 | | |
1726 | | - | |
| 1726 | + | |
1727 | 1727 | | |
1728 | 1728 | | |
1729 | 1729 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1134 | 1134 | | |
1135 | 1135 | | |
1136 | 1136 | | |
1137 | | - | |
| 1137 | + | |
| 1138 | + | |
1138 | 1139 | | |
1139 | 1140 | | |
1140 | 1141 | | |
| |||
1170 | 1171 | | |
1171 | 1172 | | |
1172 | 1173 | | |
1173 | | - | |
| 1174 | + | |
| 1175 | + | |
1174 | 1176 | | |
1175 | 1177 | | |
1176 | | - | |
1177 | | - | |
| 1178 | + | |
| 1179 | + | |
1178 | 1180 | | |
1179 | 1181 | | |
1180 | 1182 | | |
| |||
0 commit comments