Deleting Rows an Columns

Deleting Rows an Columns - Matrice Handling - Poruke

#1 Objavljeno: 30. 5. 2021. 22:31:23
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Some functions for row and column deletion.
For row and column functions accepts horizontal and vertical vectors, range(2) and range(3), numbers.
No need to convert anything during input, and exceeding and subceeding values not be removed.

Regards

delete_rowcol.sm (21,39 KiB) preuzeto 1476 put(ova). (old method)

delete_rowcol.sm (15,58 KiB) preuzeto 1468 put(ova). (new and faster method)

2021-05-31_04-24_1.png
1 korisnika je svidelo ovu objavu
sergio 31. 5. 2021. 05:16:00
#2 Objavljeno: 31. 5. 2021. 08:01:39
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Otherwise useful ... you delete what you don't select.

DelColRow.PNG
1 korisnika je svidelo ovu objavu
sergio 31. 5. 2021. 08:16:00
#3 Objavljeno: 1. 6. 2021. 00:23:20
NDTM Amarasekera

NDTM Amarasekera

130 svidjanja u 352 postova.

Grupa: User

Alternate program. Very fast on large matrix.
Jean's program very helpful. Thank you Jean

New_Matrix_Delete [col_row].sm (24,06 KiB) preuzeto 1344 put(ova).

Del_Col_Row_Ex.png
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
2 korisnika je svidelo ovu objavu
overlord 3. 6. 2021. 21:45:00, sergio 1. 6. 2021. 04:28:00
#4 Objavljeno: 1. 6. 2021. 11:30:22
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

Alternate program. Very fast on large matrix.
Jean's program very helpful. Thank you Jean


I tried your solution and found out it is faster with single row or single column removal. Good job.
And also found out transpose method is way much slower if I use ranges or matrices for input.
That method is not fast enough and not a good method when you use vectors of columns or rows for removal.
So I have combined your solution with mine, a fast and feature-full method is born.
New file is added in first post.

Regards

2021-06-01_17-25.png
1 korisnika je svidelo ovu objavu
NDTM Amarasekera 1. 6. 2021. 13:29:00
#5 Objavljeno: 1. 6. 2021. 12:52:21
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

From square/rectangular matrix algo style do all at will.

1. delete cols & rows in any shuffled ways.
2. conserve selected rows deleted of 'j'.
3. conserve selected cols deleted of 'j'.
Hopefully, no red in your SS version !
Thanks, be good ... Jean.

Utilities Matrix Minor [col_row] ADVANCED OTHERWISE Copy.sm (21,58 KiB) preuzeto 1371 put(ova).
#6 Objavljeno: 1. 6. 2021. 13:28:36
NDTM Amarasekera

NDTM Amarasekera

130 svidjanja u 352 postova.

Grupa: User

Wrote

I tried your solution and found out it is faster with single row or single column removal. Good job.
And also found out transpose method is way much slower if I use ranges or matrices for input.
That method is not fast enough and not a good method when you use vectors of columns or rows for removal.
So I have combined your solution with mine, a fast and feature-full method is born.
New file is added in first post.



Yes it works fast. It is a smart code with added features.
Thank you.
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
1 korisnika je svidelo ovu objavu
overlord 3. 6. 2021. 21:45:00
#7 Objavljeno: 2. 6. 2021. 15:34:35
NDTM Amarasekera

NDTM Amarasekera

130 svidjanja u 352 postova.

Grupa: User

A revised version, to delete multiple non-adjacent columns.
Faster on large matrix than my last example in post #3.

New_Matrix_Delete [col_row]_R2.sm (41,9 KiB) preuzeto 1330 put(ova).

Capture.PNG
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
2 korisnika je svidelo ovu objavu
overlord 3. 6. 2021. 21:45:00, Alvaro 2. 6. 2021. 17:53:00
#8 Objavljeno: 2. 6. 2021. 18:12:03
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Hi Amarasekera. Please try this other version, which works for single column values or column ranges.

New_Matrix_Delete [col_row]_R2.sm (38,79 KiB) preuzeto 1307 put(ova).

Clipboard01.jpg

Best regards.
Alvaro.
2 korisnika je svidelo ovu objavu
overlord 3. 6. 2021. 21:45:00, NDTM Amarasekera 2. 6. 2021. 23:47:00
#9 Objavljeno: 2. 6. 2021. 18:35:44
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

1 korisnika je svidelo ovu objavu
NDTM Amarasekera 2. 6. 2021. 23:48:00
  • Novi postovi
  • Nema novih postova