Hi Sage group:

I have met a problem.
The code is as follow.

import numpy as np
A = np.mat([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
print A[:, 1].shape
for i in range(0, 3):
    print A[:, i].shape

the result is
(1, 3)
(3, 1)
(3, 1)
(3, 1)

Is there any difference between "print A[:, 1]" and "print A[:, i]"?

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to