Dirk Laurie on Wed, 17 May 2017 17:04:56 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Extracting a column of a matrix as a column vector
|
- To: "pari-users@pari.math.u-bordeaux.fr" <pari-users@pari.math.u-bordeaux.fr>
- Subject: Extracting a column of a matrix as a column vector
- From: Dirk Laurie <dirk.laurie@gmail.com>
- Date: Wed, 17 May 2017 17:04:47 +0200
- Delivery-date: Wed, 17 May 2017 17:04:56 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=GHnCFkWzYMRR/y7gIkXTf5hYIiIZgOis5g+vk6AezrI=; b=lkuZxyzF+J5VLUu2OlcRp33cLbCzwf7P+n7XjEqwUZevz3GXOMk2JG18LQwovwXmdk PELn7a6gfO1imcEy9uN/EtXlcrEIIT5WlZ42VZGM4k+2cOuU50rEHlJM50b/asK2NQmq njHsGi+rOERaYM9cO8URc0VfZsyIEc8NuRXSDFtTiod+GhKEcgZDrxaosxEVWQ1vVh6O z/jdGPrTvUa86lfgUXoKH3spDnhWvSRrfCA8pFAdOVWN3zEK9irqiF26TmkCdWZvdXRM Ma0XEnaqINs2FQQrT+6KCO9j/UZBesvrJLn+NUQSgp7IR+A1sUChjTXbUOl9eRB6LgZ7 r3CQ==
I have various clumsy solutions:
vector(matsize(A)[1], i, A[i,j])~
Vec(vecextract(A,j))[1]
I feel I am missing a trick here.