Extracting matrix from a matrix

Extracting matrix from a matrix - Extract a matrix from an existing matrix - "slicing" - Сообщения

#21 Опубликовано: 10.09.2016 08:34:35
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 Опубликовано: 10.09.2016 08:59:51
frapuano

frapuano

13 сообщений из 115 понравились пользователям.

Группа: 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 Опубликовано: 10.09.2016 09:24:19
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 пользователям понравился этот пост
francesco rapuano 26.01.2025 01:34:00, frapuano 10.09.2016 09:32:00, Andrey Ivashov 10.09.2016 12:07:00
#24 Опубликовано: 10.09.2016 11:51:19
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 КиБ) скачан 52 раз(а).



1 пользователям понравился этот пост
Radovan Omorjan 10.09.2016 13:28:00
#25 Опубликовано: 19.09.2016 18:59:53
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Radovan Omorjan 20.09.2016 02:10:00, frapuano 20.09.2016 04:25:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений