Thanks Oliver.
You can do it in one shot with: > > x = np.vstack((Xstart, A[:, 0:1], Xend)) > > Using A[:, 0:1] instead of A[:, 0] lets you keep it as a 2d matrix (this > should answer your last question). > Then the scalars Xstart and Xend will automatically be broadcasted to > accomodate the shape of A[:, 0:1], so you don't need to write [[Xstart]] > and [[Xend]]. > > -=- Olivier > >
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
