HF RL Explorer

Task: Implement a Smart Symmetric Matrix Class in NumPy

Task: Implement a Smart Symmetric Matrix Class in NumPy: a task in Terminal-Lego-15k (Harbor dataset). Create a Python class called SymmetricMatrix that wraps a NumPy array to provide a "smart" symmetric matrix. When a value is written to position i j , the position j i should automatically and…

The task

Create a Python class called `SymmetricMatrix` that wraps a NumPy array to provide a "smart" symmetric matrix. When a value is written to position `[i][j]`, the position `[j][i]` should automatically and transparently be updated to maintain symmetry at all times.

Part of PrimeIntellect/Terminal-Lego-15k.