On Nov 16, 2007 5:55 PM, Emanuel Woiski <[EMAIL PROTECTED]> wrote:
> Sorry for coming very late to the thread, but you mean something like:
> for i in range(len(cols):
>
> [sending too soon...]
>
> On Oct 9, 2007 4:36 AM, Sven Schreiber <[EMAIL PROTECTED] > wrote:
>
> > Alan G Isaac schrieb:
> > >
Sorry for coming very late to the thread, but you mean something like:
for i in range(len(cols):
On Oct 9, 2007 4:36 AM, Sven Schreiber <[EMAIL PROTECTED]> wrote:
> Alan G Isaac schrieb:
> > On Mon, 8 Oct 2007, Robin apparently wrote:
> >> However in my code (I am converting from MATLAB) it is
>
Alan G Isaac schrieb:
> On Mon, 8 Oct 2007, Robin apparently wrote:
>> However in my code (I am converting from MATLAB) it is
>> important to maintain 2d arrays, and keep the difference
>> between row and column vectors.
>
> How about using matrices?
> help(numpy.mat)
>
> hth,
> Alan Isaac
>
On 10/8/07, Gael Varoquaux <[EMAIL PROTECTED]> wrote:
> Damn it. Shame on me. I meant c_[0:10,]. If you really need a shape of
> (1,10) (I have never had such a need) you can use c_[0:10,].T.
Thanks! - the trick with the , is just the sort of thing I was looking for -
I knew there must be an eas
On Mon, 8 Oct 2007, Robin apparently wrote:
> However in my code (I am converting from MATLAB) it is
> important to maintain 2d arrays, and keep the difference
> between row and column vectors.
How about using matrices?
help(numpy.mat)
hth,
Alan Isaac
On Mon, Oct 08, 2007 at 11:12:07PM +0100, Robin wrote:
>On 10/8/07, Gael Varoquaux <[EMAIL PROTECTED]> wrote:
> r_[0:10] and c_[0:10].
> Does that suit you ? The first one is indeed only 1D, but I don't see
> the
> problem with that. If you really want 2D you can use c_[0:
On Mon, Oct 08, 2007 at 11:00:39PM +0100, Robin wrote:
> Hi,
>
> I am trying to implement a project in scipy. I think I am getting somewhere
> finally.
>
> However in my code (I am converting from MATLAB) it is important to maintain
> 2d
> arrays, and keep the difference between row and column v
On 10/8/07, Gael Varoquaux <[EMAIL PROTECTED]> wrote:
>
> r_[0:10] and c_[0:10].
>
> Does that suit you ? The first one is indeed only 1D, but I don't see the
> problem with that. If you really want 2D you can use c_[0:10].T .
Thanks, but not really :)
Firstly - for me I don' see any difference
On Mon, Oct 08, 2007 at 11:00:39PM +0100, Robin wrote:
>Coming from matlab and being use to 0:10 for row or (0:10)' for column
>this seems a bit messy. Is there a better way of constructing row/column
>2d arrays from a slice type range?
r_[0:10] and c_[0:10].
Does that suit you ? The
Hi,
I am trying to implement a project in scipy. I think I am getting somewhere
finally.
However in my code (I am converting from MATLAB) it is important to maintain
2d arrays, and keep the difference between row and column vectors. After
working through some initial problems I think I am getting
10 matches
Mail list logo