2 項進行中

115-1 選課時程

進行中

  • 初選第一階段 6/15 – 6/18
  • 初選第二階段 6/22 – 6/25
  • 校際選修 進行中 8/24 – 9/18
  • 初選第三階段 8/31 – 9/3
  • 開學後加退選 進行中 9/7 – 9/21
  • 逾期加退選 9/21 – 9/24
選課資源

加入行事曆

選擇訂閱 Google Calendar,或下載通用的 ICS 檔案。

使用 Google Calendar 時,Google 會收到這份課表的公開連結。

數值軟體開發

Numerical Software Development

學期
113-1
學分
0 學分
當期課號
535702
永久課號
CSDS30003
開課單位
數據科學與工程研究所碩士班
授課教師
陳永昱
校區
光復
類別
選修
上課時間表
週一
Z
07:00–07:50
數值軟體開發
EC114(光復)
3 節連堂
1
08:00–08:50
2
09:00–09:50

* 根據陽明交大上課時間表所列

概述

The full syllabus is at https://yyc.solvcon.net/en/latest/nsd/schedule/24au_nycu/schedule24au.html . Please read it carefully before taking the course. The course introduces the art of building numerical software, i.e., computer programs applying numerical methods for solving mathematical, scientfic, or engineering problems. We will be using Python, C++, and other tools (e.g., bash, git, make, etc.) to learn the modern development processes. By completing this course, students will acquire the fundamental skills for developing modern numerical software.

先修科目

Critical discussion is required for the practical course and the project development. If you don't feel comfortable expressing yourself publicly, this course is not designed for you. Please read the full syllabus at https://yyc.solvcon.net/en/latest/nsd/schedule/24au_nycu/schedule24au.html before taking the course. Students should have taken computer architecture and engineering mathematics or equivalents. Working knowledge of Linux and Unix-like is required. Prior knowledge to numerical methods is good to have. The instructor uses English in the lectures and discussions.

備註

無備註

教學方式

The instructor will use English. It is OK for students to use Mandarin in the class, but English is preferred. Computer program for homework and project should be developed against the latest Ubuntu LTS system.

評分方式

* You are expected to learn programming languages yourself. Python is easy, but C++ may be challenging. Students are encouraged to form study groups for practicing C++, and discuss with the instructor and/or the teaching assistant. * Grading: homework 30%, mid-term exam: 30%, term project: 40%. * There are 12 lectures for the subjects of numerical software developing using Python and C++. * There will be 6 homework assignments for you to exercise. Programming in Python and/or C++ is required. * Mid-term examination will be conducted to assess students' understandings to the analytical materials. * Term project will be used to assess students' overall coding skills. Presentation is required. Failure to present results in 0 point for this part.

課程大綱
  • Introduction

    What is numerical software.

  • Fundamental engineering

    A large chunk of efforts is spent in the infrastructure for coding. The key to the engineering system is automation.

  • Python and numpy

    Python is a popular choice for the scripting engine that makes the numerical software work as a platform.

  • C++ and computer architecture

    The low-level code of numerical software must be high-performance. The industries chose C++ because it can take advantage of everything that a hardware architecture offers while using any level of abstraction.

  • Matrix operations

    Matrices are everywhere in numerical analysis. Arrays are the fundamental data structure and used for matrix-vector, matrix-matrix, and other linear algebraic operations.

  • Cache optimization

    How cache works, its importance to performance, and optimization with cache.

  • SIMD (vector processing)

    Parallelism and x86 assembly for SIMD.

  • Memory management

    Numerical software tends to use as much memory as a workstation has. The memory has two major uses: (i) to hold the required huge amount of data, and (ii) to gain speed.

  • Ownership and smart pointers

    Ownership and memory management using C++ smart pointers.

  • Modern C++

    Copy elision and move semantics. Variadic template and perfect forwarding. Closure.

  • C++ and C for Python

    Use C++ and C to control the CPython interpreter.

  • Array code in C++

    Dissect the array-based code and element-based code and when to use them.

  • Advanced Python

    Advanced topics in Python programming.

週次計畫
週次主題
第 1 週

Introduction (proposal open) (start to prototype)

2024-09-02(一)
第 2 週

Unit 1: Fundamental Engineering (assignment #1)

2024-09-09(一)
第 3 週

Unit 2: Python and Numpy (proposal open)

2024-09-16(一)
第 4 週

Unit 3: C++ and Computer Architecture (assignment #2) (proposal due)

2024-09-23(一)
第 5 週

Project and prototype review Supplement to unit 3: C++ and Computer Architecture

2024-09-30(一)
第 6 週

Unit 4: Matrix Operations

2024-10-07(一)
第 7 週

Unit 5: Cache Optimization (assignment #3) (prototype review)

2024-10-14(一)
第 8 週

Mid-term examination

2024-10-21(一)
第 9 週

Unit 6: SIMD (Vector Processing)

2024-10-28(一)
第 10 週

Unit 7: Memory Management (assignment #4)

2024-11-04(一)
第 11 週

Unit 8: Ownership and Smart Pointers

2024-11-11(一)
第 12 週

Unit 9: Modern C++ (assignment #5)

2024-11-18(一)
第 13 週

Unit 10: C++ and C for Python

2024-11-25(一)
第 14 週

Unit 11: Array Code in C++ (assignment #6)

2024-12-02(一)
第 15 週

Unit 12: Advanced Python

2024-12-09(一)
第 16 週

Project presentation

2024-12-16(一)
第 17 週

No meeting

2024-12-23(一)
第 18 週

No meeting

2024-12-30(一)
教科書

Course notes: https://yyc.solvcon.net/en/latest/nsd/ Textbook: None References: * Computer Systems: A Programmer's Perspective: https://csapp.cs.cmu.edu/ * Python documentation: https://docs.python.org/3/ * Cppreference: https://en.cppreference.com/ * Effective Modern C++, Scott Meyer, O'Reilly, 2014 * modmesh (example system of this course) source code: https://github.com/solvcon/modmesh * pybind11 source code: https://github.com/pybind/pybind11 * cpython source code: https://github.com/python/cpython * numpy source code: https://github.com/numpy/numpy

Office Hours
地點
EC500A meeting room
時間
10:00am Monday
聯絡方式
See the full syllabus at https://yyc.solvcon.net/en/latest/nsd/schedule/24au_nycu/schedule24au.html . Send email to yyc at sciwork.dev, with "[nsd-course]" prefix in the subject line. Or go to sciwork meetup: https://sciwork.dev/meetup/ .