[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: howto matrixes containing e.g. vectors and matrixes and matrix opera
From: |
Sebastian Schoeller |
Subject: |
Re: howto matrixes containing e.g. vectors and matrixes and matrix operations |
Date: |
Mon, 2 Jun 2008 18:33:15 +0200 |
Dear Jordi,
thanks a lot for your help. It was exactly what I was looking for. I
was just trying to avoid the looping in the first place.
Q'et vaixi be (ets catala, no?)
Sebastian
2008/6/1 Jordi GutiƩrrez Hermoso <address@hidden>:
> On 01/06/2008, Schoeller Sebastian <address@hidden> wrote:
>> is it possible to create a multidimensional array,
>
> Sure, just index using more than two indices.
>
> E.g. m(:,1,1) = vector_1, m(:,2,1) = vector_2 and so on. You can then
> do m(:,1,1).*m(:,1,1). You may also be interested in the squeeze
> function.
>
> N-d arrays, as they are called, do seem to lose a lot of the benefits
> of vectorisation, unfortunately, or they did for me in the past, but
> as far as indexing goes, you can think of them as matrices or
> higher-order tensors.
>
> HTH,
> - Jordi G. H.
>