(self, args, screen_info=None)
| 291 | return output |
| 292 | |
| 293 | def _print_ones(self, args, screen_info=None): |
| 294 | ap = argparse.ArgumentParser( |
| 295 | description="Print all-one matrix.", usage=argparse.SUPPRESS) |
| 296 | ap.add_argument( |
| 297 | "-s", |
| 298 | "--size", |
| 299 | dest="size", |
| 300 | type=int, |
| 301 | default=3, |
| 302 | help="Size of the matrix. For example, of the value is 3, " |
| 303 | "the matrix will have shape (3, 3)") |
| 304 | |
| 305 | parsed = ap.parse_args(args) |
| 306 | |
| 307 | m = np.ones([parsed.size, parsed.size]) |
| 308 | |
| 309 | return tensor_format.format_tensor(m, "m") |
| 310 | |
| 311 | def testInitialization(self): |
| 312 | ui = MockCursesUI(40, 80) |
nothing calls this directly
no test coverage detected