Erik Fröjdh

Science, computing and ideas

  • Home
  • Publications
  • About

C++

Printing elements of vector or array

24 June, 201925 June, 2019 Erik Fröjdh Leave a comment C++

Working with vectors it’s nice to have a quick way to print the values contained. Something like: Unfortunately this doesn’t work out of the box with C++… we first need to overload the << operator for vector. Now the code in the first block works fine, but only for vectors of int. Wouldn’t it be […]

Continue reading


Interfacing Python/numpy from C++ (Part 1/3)

22 September, 201822 September, 2018 Erik Fröjdh Leave a comment Python

Sometimes there is a need to interface Python and numpy from C++. Maybe your Python code is too slow for a specific application or you have an old C++ library that you want to run on your data.  In this three part series we will look at how to go from Python to C++ and […]

Continue reading


  • Popular
  • Recent
  • Academic starter-kit Jul 1, 2015
  • Interfacing Python/numpy from C++ (Part 1/3) Sep 22, 2018
  • Fit data using PyROOT… and plot the result using matplotlib Aug 18, 2017
  • Visualise the population of Switzerland using Python and bokeh Dec 12, 2017
  • How to include a publication list in WordPress Jun 25, 2015
  • Printing elements of vector or array Jun 24, 2019
  • Printing elements of vector or array Jun 24, 2019
  • Interfacing Python/numpy from C++ (Part 1/3) Sep 22, 2018
  • Visualise the population of Switzerland using Python and bokeh Dec 12, 2017
  • Fit data using PyROOT… and plot the result using matplotlib Aug 18, 2017
  • Academic starter-kit Jul 1, 2015
  • How to include a publication list in WordPress Jun 25, 2015
  • Ignatios Chatzidiamantis on Visualise the population of Switzerland using Python and bokeh

    Thank you very much for sharing. After a lot of searching, (...)

Topics

  • Academic
  • C++
  • Python
  • Website
dazzling Theme by Colorlib Powered by WordPress