Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. ComPhys (comphys@qoto.org)'s status on Monday, 19-Aug-2019 21:16:39 UTC ComPhys ComPhys

    I needed to perform a numerical integral of a function I knew very little about. I tried to get decent resolution by having small slices in my integration.

    Python was pretty slow to perform the integration, so I thought I'd have a look at writing it in c++. I haven't used c++ for ages, but eventually I got it working.

    I then needed to plot the result of my integration against measured data, so I wanted access to my c++ functions in python, where I do my plotting.

    Finally got my c++ functions imported into python using PyBind11 and I must say, it works amazingly well, I think it's well documented and the examples were great. Vectorising my functions so that I can run them for a whole numpy array of values was genuinely super-easy. I'm very impressed! Thanks to all the devs =]

    In conversation Monday, 19-Aug-2019 21:16:39 UTC from qoto.org permalink
    • 🎓 Dr. Freemo :jpf: 🇳🇱 repeated this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.