It works perfect, maybe the result only doesn´t match your expectations?
But first, Python is not Javascript, so forget using the ; at the end of the lines.
np.copy(A[0, 0:3]) gives you the first three elements of the first row of A
so that is definitly a single vector.
What do you expect that it should return?
But first, Python is not Javascript, so forget using the ; at the end of the lines.
np.copy(A[0, 0:3]) gives you the first three elements of the first row of A
so that is definitly a single vector.
What do you expect that it should return?