Can't broadcast input array from shape (3,1) into shape (3,)
V[k:m,k] = v
; v
has shape (3,1), but the target is (3,). k:m
is a 3 term slice; k
is a scalar.
Try using v.ravel()
. Or V[k:m,[k]]
.
But also understand why v
has its shape.
V[k:m,k] = v
; v
has shape (3,1), but the target is (3,). k:m
is a 3 term slice; k
is a scalar.
Try using v.ravel()
. Or V[k:m,[k]]
.
But also understand why v
has its shape.