Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

3 Pages<123
Options
Go to last post Go to first unread
Offline MBernacca  
#41 Posted : 19 February 2018 12:36:00(UTC)
MBernacca


Rank: Member

Groups: Registered
Joined: 28/11/2017(UTC)
Posts: 12
Italy
Location: Pisa

Was thanked: 1 time(s) in 1 post(s)
Hello Everybody,

Thanks to all of you for these extremely interesting postings.
I am barely able to fully understand them in depth... I need a bit of time to study them thoroughly.
Programming is like making music, and this is a symphony!!

Once again, thanks for all these good suggestions.

Marco
Offline Jean Giraud  
#42 Posted : 20 February 2018 07:08:59(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 2,981
Canada

Was thanked: 586 time(s) in 454 post(s)
Originally Posted by: MBernacca Go to Quoted Post
Still on line intersections.
Bug corrected: only lines with same number of points were accepted.
Now lines with different # of points will work.
Also some improvements in efficiency so that runtime is now
approx. -25%.


Marco, your Line Intersection is a piece of gold for Engineering works.
1. Trifolium
2. Dragilev implicit solve
3. Focus [suggested as next exercise]

Zillions thanks ... Jean

Maths InterX.r1 (2) Trifolium Copy.sm (104kb) downloaded 20 time(s).

Offline Andrey Ivashov  
#43 Posted : 21 February 2018 23:34:53(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,267
Man
Russian Federation

Was thanked: 1372 time(s) in 470 post(s)
Originally Posted by: Andrey Ivashov Go to Quoted Post
Just take a look at the speed:
plotG_2.PNG


Originally Posted by: mkraska Go to Quoted Post
For such uses it would be good if the augment and stack functions could expand scalar arguments (or more generally any arguments not matching the maximum number of rows or cols) to uniformly populated vectors of the required size).


This is what I've got after improving stack/augment (see SMath Studio 0.99.6626):

plotg_improved_1.PNG

Note, that I had to make height of the result matrix about 40 times larger to see the same time! This means that this syntax of stack/augment is about 40 times faster then without it.

Thank you!

Edited by user 21 February 2018 23:36:46(UTC)  | Reason: Not specified

thanks 6 users thanked Andrey Ivashov for this useful post.
on 21/02/2018(UTC),  on 22/02/2018(UTC),  on 22/02/2018(UTC),  on 22/02/2018(UTC),  on 22/02/2018(UTC),  on 22/02/2018(UTC)
Offline Jean Giraud  
#44 Posted : 22 February 2018 18:55:14(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 2,981
Canada

Was thanked: 586 time(s) in 454 post(s)
Originally Posted by: Andrey Ivashov Go to Quoted Post
This is what I've got after improving stack/augment (see SMath Studio 0.99.6626):

Looks great, not reproducible 6179.
Could it conflict in other situations ?

Users browsing this topic
3 Pages<123
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.