<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def toArray(self):
 """ Returns a copy of this SparseVector as a 1-dimensional NumPy array. """

        arr = np.zeros((self.size,), dtype=np.float64)
        arr[self.indices] = self.values
        return arr