scientific-cpp

所属分类:C/C++基础
开发工具:HTML
文件大小:203KB
下载次数:0
上传日期:2019-10-20 18:54:50
上 传 者sh-1993
说明:  科学编程c++简介
(Short introduction to c++ for scientific programming)

文件列表:
LICENSE (1069, 2019-10-21)
examples (0, 2019-10-21)
examples\Part1 (0, 2019-10-21)
examples\Part1\.clang-format (2629, 2019-10-21)
examples\Part1\Exercise1.cpp (939, 2019-10-21)
examples\Part1\Exercise2.cpp (610, 2019-10-21)
examples\Part2 (0, 2019-10-21)
examples\Part2\.clang-format (2629, 2019-10-21)
examples\Part2\accumulate.cpp (542, 2019-10-21)
examples\Part2\for_each.cpp (495, 2019-10-21)
examples\Part2\sort.cpp (504, 2019-10-21)
examples\Part2\transform.cpp (823, 2019-10-21)
examples\Part3 (0, 2019-10-21)
examples\Part3\.clang-format (2629, 2019-10-21)
examples\Part3\NumericalIntegration.cpp (1859, 2019-10-21)
examples\Part3\linear_solvers.cpp (2432, 2019-10-21)
examples\Part3\nodal_connectivities.cpp (703, 2019-10-21)
examples\Part3\ranges.cpp (1976, 2019-10-21)
slides (0, 2019-10-21)
slides\js (0, 2019-10-21)
slides\js\remark-latest.min.js (634198, 2019-10-21)
slides\slides.htm (3402, 2019-10-21)
slides\slides.md (23362, 2019-10-21)

# scientific-cpp Slides and examples for a scientific c++ workshop using c++11 and c++14 features. ## Outline - Basic introduction to types, functions and classes - Leveraging the standard template library (stl) - Using numerical algebra libraries - Compiler flags and optimization ## Schedule ### Hour 1 - Compilers and tools - Type system crash course - Value, reference, pointer and const semantics - Functions ### Hour 2 - Standard algorithms (stl) - The future ranges ### Hour 3 - Linear algebra (dense and sparse matrices) - Go fast time! Compiler optimizations ## Preparation You will need to install some variant of linux in a virtual machine (VM). These instructions are written assuming you are using Fedora Workstation Edition. If you are familiar with other variants please use that and find the equivalent packages on your system. *Only if you are don't have a Linux system handy:* Firstly, download the live operating system image (.iso) from https://getfedora.org/en/workstation/ (approximately 1.3GiB) and install the OS as a virtual machine. Make sure you set yourself as the administrator for the virtual OS. Once you are logged into Fedora on the VM, open up a terminal from the top left hand side (Activities->Terminal) and type: ``` $ sudo dnf install -y clang gcc-c++ cmake git ``` Or in a Ubuntu OS ``` $ sudo apt-get install clang git cmake ``` and provide your user password when prompted to install git, cmake and the clang compiler. Once we have this working we need to pull down the slides and examples codes. In the terminal type ``` $ cd ``` to get back to the user home directory and pull down the sources from github ``` $ git clone --depth=1 https://github.com/dbeurle/scientific-cpp.git ``` Now go to the ```slides/``` folder and open the slides.htm file in your favourite web browser. The code examples are under ```examples/``` folder. Let's download Eigen3 by ``` wget http://bitbucket.org/eigen/eigen/get/3.3.4.zip ``` Unzip and open the folder. Create a new folder inside the eigen3 directory called ```build``` and go into this newly created folder. Then in the terminal type ``` $ cmake .. $ sudo make install ``` To install the header only library.

近期下载者

相关文件


收藏者