Repair a verified behavior in ucsbarchlab/pyrtl.
Repair a verified behavior in ucsbarchlab/pyrtl.: a task in OriGent-SFT-Data (Harbor dataset). The pyrtl.rtllib.matrix.Matrix API is incomplete for rectangular hardware matrices. It currently provides neither matrix reshaping nor in-place element replacement, and flatten() is not a dependable…
The task
The `pyrtl.rtllib.matrix.Matrix` API is incomplete for rectangular hardware matrices. It currently provides neither matrix reshaping nor in-place element replacement, and `flatten()` is not a dependable operation for arbitrary non-square shapes. For example, a 2x3 `Matrix` containing `[[0, 1, 2], [3, 4, 5]]` must be…
Part of henryen/OriGent-SFT-Data.