|
From: | David Bateman |
Subject: | Re: About resize() function |
Date: | Fri, 24 Oct 2008 10:03:18 +0100 |
User-agent: | Mozilla-Thunderbird 2.0.0.16 (X11/20080724) |
Jaroslav Hajek wrote:
On Fri, Oct 24, 2008 at 10:24 AM, José Luis García Pallero <address@hidden> wrote:Ok, but the fact that some elements are not preserved if the new matrix is samaller is logical. I think that the help of the function is quite confused.I agree. Also, the behaviour when given a single dimension argument is not logical - IMHO, it should do a vector resize (similarly to what assigning to a non-existent vector element does). I intend to patch resize soon, after I finish the patch I'm now working on, improving the speed of dense indexing and cleaning up the indexing code in Array<T>. regards,
If you do check that if you have the Octave-forge comms toolbox installed something like
m = 2; n = 2.^m; a = gf (floor(randn(10,10,n), m); b = tril (a)resize is used in tril and is used so that metadata in the input matrix (for the galois field about the primitive polynomial of the field), is preserved during the operation.
Regards David -- David Bateman address@hiddenMotorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary
[Prev in Thread] | Current Thread | [Next in Thread] |