Extracting matrix from a matrix

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

#21 Objavljeno: 10. 9. 2016. 08:34:35
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: 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 Objavljeno: 10. 9. 2016. 08:59:51
frapuano

frapuano

13 svidjanja u 115 postova.

Grupa: 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 Objavljeno: 10. 9. 2016. 09:24:19
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: 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 korisnika je svidelo ovu objavu
francesco rapuano 26. 1. 2025. 01:34:00, frapuano 10. 9. 2016. 09:32:00, Andrey Ivashov 10. 9. 2016. 12:07:00
#24 Objavljeno: 10. 9. 2016. 11:51:19
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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) preuzeto 1652 put(ova).



1 korisnika je svidelo ovu objavu
Radovan Omorjan 10. 9. 2016. 13:28:00
#25 Objavljeno: 19. 9. 2016. 18:59:53
Andrey Ivashov

Andrey Ivashov

2.345 svidjanja u 4.060 postova.

Grupa: 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 korisnika je svidelo ovu objavu
Radovan Omorjan 20. 9. 2016. 02:10:00, frapuano 20. 9. 2016. 04:25:00
  • Novi postovi
  • Nema novih postova