HF RL Explorer

Task: Apply numpy.linalg.norm to Each Row of a Matrix

Task: Apply numpy.linalg.norm to Each Row of a Matrix: a task in Terminal-Lego-15k (Harbor dataset). Create a Python script that efficiently computes the L2 (Euclidean) norm of each row in a 2D NumPy matrix without using explicit Python for-loops. The solution must handle large matrices (30,000+…

The task

Create a Python script that efficiently computes the L2 (Euclidean) norm of each row in a 2D NumPy matrix without using explicit Python for-loops. The solution must handle large matrices (30,000+ rows) efficiently.

Part of PrimeIntellect/Terminal-Lego-15k.