At 05:46 AM 2/6/2014, Alan G Isaac wrote:
Compare np.mat('1 2; 3 4')
to np.array([[1, 2], [3, 4]])
for readability and intimidation factor.
Little things matter when getting started
with students who lack programming background.
my $.02:
'1 2; 3 4'
is a non-obvious and non-intuitive way to des
On 2/6/2014 6:03 PM, David Goldsmith wrote:
> So the substance of the utility function Stefan suggests is one line:
It's even easier than that:
np.mat('1 2;3 4').A
However the context is the introduction of the language
to students who have no programming experience, not
my personal convenience (
Date: Thu, 6 Feb 2014 08:42:38 -0800
> From: Chris Barker
> Subject: Re: [Numpy-discussion] create numerical arrays from strings
> To: Discussion of Numerical Python
> Message-ID:
> <
> calgmxekvnqok6wty-jbjzgaeu5ewhh1_flmsqxjsujfclex...@mail.gmail.com>
&g
On Thu, Feb 6, 2014 at 5:46 AM, Alan G Isaac wrote:
> NumPy matrix construction includes as a convenience feature
> the construction of matrices with a Matlab-like syntax.
> E.g., np.mat('1 2;3 4').
>
> Is it correct that this syntax is not supported for
> direct (i.e., not using `mat`) ndarray c
Hi Alan
On Thu, 06 Feb 2014 08:46:49 -0500, Alan G Isaac wrote:
> You may ask, where would this possibly matter?
> The answer: in the undergraduate classroom.
As a lecturer, I understand where you are coming from, but I don't think we
can ultimately make API decisions based on teachability.
The
NumPy matrix construction includes as a convenience feature
the construction of matrices with a Matlab-like syntax.
E.g., np.mat('1 2;3 4').
Is it correct that this syntax is not supported for
direct (i.e., not using `mat`) ndarray creation?
You may ask, where would this possibly matter?
The answ