Extracting matrix from a matrix

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

#21 Pubblicato: 10/09/2016 08:34:35
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: 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 Pubblicato: 10/09/2016 08:59:51
frapuano

frapuano

13 apprezzamenti in 115 post.

Gruppo: 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 Pubblicato: 10/09/2016 09:24:19
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: 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!"
3 utenti hanno apprezzato questo post
francesco rapuano 26/01/2025 01:34:00, frapuano 10/09/2016 09:32:00, Andrey Ivashov 10/09/2016 12:07:00
#24 Pubblicato: 10/09/2016 11:51:19
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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) scaricato 1607 volta(e).



1 utenti hanno apprezzato questo post
Radovan Omorjan 10/09/2016 13:28:00
#25 Pubblicato: 19/09/2016 18:59:53
Andrey Ivashov

Andrey Ivashov

2.343 apprezzamenti in 4.056 post.

Gruppo: 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.
2 utenti hanno apprezzato questo post
Radovan Omorjan 20/09/2016 02:10:00, frapuano 20/09/2016 04:25:00
  • Nuovi post
  • Nessun nuovo post