For those who are unaware of that, I want to add:
There are two kinds of laptops with NVidia GPUs: the ones that use the Optimus technology, and the ones who do not. Almost all laptops that use the NVidia GPU as a secondary option and also have a primary GPU (often an Intel HD Graphics), belong to the former kind. Which can be a real pain in the a** for linux users (to access the NVidia card; I am speaking from first-hand experience). With the latter kind the installation of the nvidia-driver and CUDA is straightforward, it works just like installing CUDA on a Linux Desktop, and there are hundreds of guides how to do that. For the Optimus Laptops the matter is more intricate. If you want to use the NVidia card for graphics, look into
Bumblebee. If you just want to use the NVidia card for CUDA (and not graphics output and OpenGL), you
do not need to install bumblebee, in fact you should not. But you need the regular nvidia driver, only without installing the OpenGL files. I am not sure if blacklisting nouveau is necessary in this case or not. I am sure there are some guides floating around the internet about that.
Jan