Bill Allombert on Wed, 17 Jan 2024 11:31:43 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Bizarre semantic of Mat
|
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: Re: Bizarre semantic of Mat
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Wed, 17 Jan 2024 11:31:39 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1705487500; c=relaxed/relaxed; bh=EbZLozT7qxl/9QN4vIwBAz94Zlbbn7bup4r9Ke1Krbc=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=s0SqQ/F7PR6QPzHHMIafiMnWg2nblarW2fdWqPi3Uk/v8ZjaQVIhmJJNJ+865z7Da/wxJiPSOQHTflhljviT63YvUH1nmmsG2Pt/7lo2WzM8tfKgyhAv1Of28IuJxzgOd4f42jal76e2KoYLCU05sT8W3wVb7vh8Y3RC8XEB6GK5TDDWDb5Lo4yKwZKGnCl61MfrF9UJkjPjeloFgdhh8JX3QGDjSdIYsQi1yXtG1+yAPVpLqvetFUc+ZpN1NB5qUhbKP8O5sgHAlTmvyRgO8+NpWhrVFtsV1TBgYCvbMH+8FvCPjGZp03ra16MIF4rk8e7kAbZN6keXEjbkeH1SW55Y6bacPIKDC+dhrDAWbOPm4J9mBdkGhE0Q7jLiTT+65BNcFP8DGwBGRwQ6MIVvc4QVjHLNexJgyB56TnxPHvj/qhW/0VdJuEa4InsoXN22Dz7UJDD19ly8SpPzDu3KntOI035vwKPxnRBr/xISpAS3DIu5Yc/2OoeGJFkELZ7muK0aeJT7Ui3cI3gi7TEyCJMQJ1xKrZesKqeOU3BqJPXkzhzIWO/hROsce6eFkvcSUzWx0pV1x4JYS82RC9ZQU+dPpX2vPWMXz+nJSB1fB3RkWSTETwYGLj8pIhKZAl1PlnDNtn7F10redVxedZi84xp0qi3QHmYlXCMy5TE/38c=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1705487500; cv=none; b=gcVMa3XvpwujubIKelI4axTC23mIi607Wla01A3WG505jYKxPOT8KrIXsnote8tKatMqZ+R0SIMDyKY5TwSNRkxqf/NRJzD95xzUg6rYPkrj3eON8k3xTEMi64GvC81Cqg4WcpSaEeI6hdXrz/2P5IBAGcwRwnoagurs1zJonHQywXwuNvqnhoiF50+qmRWBN91wjtHr723s0w88N7BZu/LUcTGBlEl83TW3qIYw+RTnwhv9jdsvoPOwADD7TUprpZKuxHgRIw4L//HxzmynBzFjTIMqDT5MA5RcHQTzvaiFytziXSndcT8DxjCr1IbeEID8miz/3xPxCHZ+QiJbf/oEqvPk9Ta/qWITCetxtLZUkyzqaSpWETVfVGTTSbCz1y0b0DjTiPF/rSOcR4MTWBfNAomAjFMVL+KbgWy1cBHPuXAdpPI4lL1uRuo7soNhmpA9UJR0l7OqBIInIhWoP2K9AElFujUSTSCUxsCIXGceOXWDQiNc7kg32w1fwRPE2fNkC5RMx/R7qDQDmc7CrhXxJypf6AQobppdNyz9vDS9yZVu3VMd27FSXR5DHyfvGpnNRAXTWgXbEyFWnRSeIm8BlrtUZhyv9QH1ua3mK4G4qUNaPjSozqdTSlwkuiau2DN34/w9LQU0DaQrdhcNyKoA36jupY2Bnr6nQbWNC2w=
- Authentication-results: smail; arc=none
- Delivery-date: Wed, 17 Jan 2024 11:31:43 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1705487500; bh=EbZLozT7qxl/9QN4vIwBAz94Zlbbn7bup4r9Ke1Krbc=; h=Date:From:To:Subject:References:In-Reply-To:From; b=fBZn6xHSFPkH2ATrJRB8rCHr3mOcPAkAGkb05oTrXvc3Z9qBEnvrtK5J8UubFhFj3 5qqN9hq0KvUhFJnQjUzn/9urO9dXDxZD2SDRy7zSI+Okf6u8RIZ3Ce36ePyG6T8V/e wyVHyeS4vF2hVzyUnjbrK9+UcA5VcPaIgzXpr0lcZJ6hudvAqNSZAPpj06I1k8gojm yNdmKmLNlN7ptryoCBflM/oBk9UT3g5B4QB45p2ZnurkmQ8V/l/9YahBL+ndu7mHxc Y/r51MvOyWDhxX98oXnhWyEVZQ01luwgza+TfHzF/y1IM6Y4IXE+wVboUKUv1sQlZa bTxnjZKd4mVYMApq9vyuDNe/MPBdZvtPJWjD62AnX2DsDoXU7IE+6utiZyNgn5Z9b2 KO44lCAVy9ngDHJePSKPMwyQyvLStNZWWnmr72+GrOFv3q/N4QUGJlfN6t1zbiNUno WcHusQLEBz51rtWJnQZV9+Z83xwLPbqPXZb2x7y8tdr6UWYgLD/0vy5jYcgF6Ev0dx f99j13qLCeswc/2+TAzhKG6UVElcHiij70EdFg6Y1PtIz23Yfi5tpEPQV9XodPepel 5aeQ99PwjX530ElmvpSs32Q4KI7GvSVfDC2/HKaurLbXkrHyYF5QJq9/mzPipFnWBc 2L/bCoN17iVe9eA4MyuyS5SM=
- In-reply-to: <Zac9RC1aAbmXah4O@login.math.berkeley.edu>
- Mail-followup-to: pari-dev@pari.math.u-bordeaux.fr
- References: <Zac9RC1aAbmXah4O@login.math.berkeley.edu>
On Tue, Jan 16, 2024 at 06:36:52PM -0800, Ilya Zakharevich wrote:
> Today I (finally) looked through the documentation of Mat() — and it
> seems to be very convenient for interactive usage! On the other hand,
> such “cute” semantics have a tendency to become a limiting factor when
> one wants to write down general-purpose algorithms…
>
> Is there a simple way to convert a vector-column into a 1 column
> matrix (without using matrix())? Mat() is almost there — except for
> bizarre special-cases — which are impossible to switch off!
There is a trick:
? V=[[1]~,[2]~,[3]~]
%28 = [[1]~,[2]~,[3]~]
? Mat(V~)~
%29 = Mat([[1]~,[2]~,[3]~])
? V=[[1],[2],[3]]~
%30 = [[1],[2],[3]]~
? Mat(V~)~
%31 = [[1];[2];[3]]
Cheers,
Bill