Extracting matrix from a matrix

Extracting matrix from a matrix - Extract a matrix from an existing matrix - "slicing" - Mensajes

#21 Publicado: 10/9/2016 8:34:35
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: Moderator

Although I am very satisfied with this feature, I have to agree with Martin. It might be a bit confusing this way, because the row-wise indexing for matrices as indexes is more expected than column-wise.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#22 Publicado: 10/9/2016 8:59:51
frapuano

frapuano

13 me gusta en 115 mensajes.

Grupo: User

..Probably I ma stupid but I haven't clearly understood the syntax of the command and how to use it ( ..and so the Andrey's examples) .

If there is someone that can take a moment to explain this , it would be very appreciated

Best regards

Franco
#23 Publicado: 10/9/2016 9:24:19
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: Moderator

Hello Franco,

Just play with this a bit, and you will figure out

Extract Matrix with matrix indices

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
A 3 usuarios les gustó este mensaje
francesco rapuano 26/1/2025 1:34:00, frapuano 10/9/2016 9:32:00, Andrey Ivashov 10/9/2016 12:07:00
#24 Publicado: 10/9/2016 11:51:19
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

I hoped this might be the most simplest way.



Not so easy ! At the machine code, everything is linear.
That's what the "ct" counter does system wise, then returned
math style. Just a bit more about Delta matrix. The JPG
explanation is short, just the principle of it. There is lot
more behind the scene.

Jean

Matrix Delta.gif

Utilities Matrix Mirror QUICK.sm (17,59 KiB) descargado 1602 vez(es).



A 1 usuarios les gustó este mensaje
Radovan Omorjan 10/9/2016 13:28:00
#25 Publicado: 19/9/2016 18:59:53
Andrey Ivashov

Andrey Ivashov

2.343 me gusta en 4.056 mensajes.

Grupo: Super Administrator

Wrote

The sandbox example shows the use of matrices as indices. The question is, how the rules for such indices are.

A straightforward rule would be that whatever you provide as index structure, it is accessed by linear indexing from 1..length() of the index structure.

The following example shows that the actual behaviour is different. The index matrices are indexed column-wise and not row-wise as the usual linear indexing works.

I propose to change this in order to be consistent with general linear indexing.


Thank you! Fixed by Davide.

Best regards.
A 2 usuarios les gustó este mensaje
Radovan Omorjan 20/9/2016 2:10:00, frapuano 20/9/2016 4:25:00
  • Nuevos mensajes
  • Sin mensajes nuevos