Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: PDEs oo

by Fletch (Bishop)
on Nov 03, 2021 at 15:32 UTC ( [id://11138386]=note: print w/replies, xml ) Need Help??


in reply to Re: PDEs oo
in thread PDEs oo

While not necessarily a "wrong" answer, I think this is kind of a bad answer to the original question.

If you're doing this "seriously" for something, then yes you're going to want to throw something bare metal and these days probably GPU powered at it. However for the purposes of learning how they work and how they're implemented and solved I think something like perl (or python; bleh) is going to be perfectly reasonable and performant for the type of examples you'd encounter in problems. People used to solve these things with slide rules and pencil/paper. If your (again, experimental learning) implementation to solve the hairiest problem in your textbook takes 2 minutes rather than 10 seconds that's not really going to be an issue the tens of times you might be running it.

And as to the OP not being able to understand the python examples: if you're going to be programming seriously go ahead and take the time to get a reading familiarity of python (the Pascal of the naught-ies . . .). Even if you stick with Perl as your primary language it's worthwhile to be able to digest things in other languages because there's going to be times like this where you can't find something off the shelf. To say nothing of being exposed to other language approaches helps you improve your programming in general.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^3: PDEs oo
by Lucero (Novice) on Nov 03, 2021 at 16:25 UTC
    That's what Im doing; If I don't know how, or can't find a way, to do it in Perl, I switch to another language.Not the first time, it happens. At the moment, I think I found an answer to my problem but I'm still working on it.

      And I forgot to mention that if your problems are doing vector or matrix operations in Perl you probably would want to look at PDL (which while not necessarily as fast as more dedicated low level libraries will probably be speedier than doing things yourself in pure perl).

      The cake is a lie.
      The cake is a lie.
      The cake is a lie.

        One major benefit of PDL is that if you design things right (using "threading") you can then set an environment variable and get "pthreading" (parallel processing using multi cores) with no further effort. See PDL::Threading and PDL::ParallelCPU for more.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11138386]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-29 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found