Joerg Arndt on Wed, 17 Jan 2024 07:51:00 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Bizarre semantic of Mat
|
- To: Pari Developers Mailing List <pari-dev@pari.math.u-bordeaux.fr>
- Subject: Re: Bizarre semantic of Mat
- From: Joerg Arndt <arndt@jjj.de>
- Date: Wed, 17 Jan 2024 07:50:56 +0100
- Arc-authentication-results: i=1; coreboot.org; auth=pass smtp.auth=arndt@jjj.de smtp.mailfrom=arndt@jjj.de
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=jjj.de; s=dkim; t=1705474256; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VX32TedFqRx9l1qPF9pBgylKylI5zCPf41AIfZlXAHo=; b=YLIEID2ka67aPZ45jYPmZF6+2CROqyVvpa6cgn7qHc8vJlReVXtJL5cIXqS4KUsZYOtxOA 4m/zADPYERGR4o3aMYAz5IRUvBxyHNatfA7pubcBpOj9Mi1taOn3bYu+gyK+MrLzqr1Twc PywwKBr4NBc4bP7Aa05ndBlgzSXJmHA=
- Arc-seal: i=1; s=dkim; d=jjj.de; t=1705474256; a=rsa-sha256; cv=none; b=pgirM8AZQIUMoUoZBfIMRQJeLtm+HigOQmGf9x3hMDFif61+Kotbx+nJP8sO3wMKyYIWLAnwKe+B1Y37/G3RyVKQjP9hdBvtLkiPNYrw5g05mZo2rCzcWT1QiDaSM7DuJSOr/Gft2ifah5H5rD0G0jvaYt+mZ2HGy7duVysFCmI=
- Authentication-results: coreboot.org; auth=pass smtp.auth=arndt@jjj.de smtp.mailfrom=arndt@jjj.de
- Delivery-date: Wed, 17 Jan 2024 07:51:00 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jjj.de; s=dkim; t=1705474256; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VX32TedFqRx9l1qPF9pBgylKylI5zCPf41AIfZlXAHo=; b=aXyGllNeIRX+8kSh2bmUWuWfxigoy/gqOIaeHekMNBzBMae0/jGlsRq0ae2dnmKf4A50kU 0dxlwC2B+ZZDiY0n1K+FkiRR6ZpDkdwb3y0OwxMxK6kJsOX95NqkKBV3lb5+K0jvoMpwGJ wlE7tpcBK7M/GY3pOMY1+CRieJDMUGI=
- In-reply-to: <Zac9RC1aAbmXah4O@login.math.berkeley.edu>
- References: <Zac9RC1aAbmXah4O@login.math.berkeley.edu>
? v=[1,2,3,4];
? matrix(#v,1,r,c,v[r])
[1]
[2]
[3]
[4]
? matrix(1,#v,r,c,v[c])
[1 2 3 4]
Best regards, jj
* Ilya Zakharevich <nospam-abuse@ilyaz.org> [Jan 17. 2024 07:39]:
> 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!
>
> Thanks,
> Ilya