Yanfei's Notes

Notes about thoughts, science, and simulations.

Front About Archive Tags Search

Setting Up LaTeX Compilation in VS Code

2026-03-27
  • LaTeX
  • VS Code

Writing papers on a remote server is common in academic and HPC environments, but getting a smooth LaTeX compilation loop working inside VS Code requires a few non-obvious steps. This guide cove...

Read More

Setup Continue Extension in VS Code with a Local LLM model

2026-03-26
  • LLM
  • agent

This guide documents how to set up the Continue extension in VS Code to use a self-hosted LLM served via an OpenAI-compatible API (e.g., vLLM, SGLang).

Read More

Local Jekyll Development Setup Guide

2026-03-25
  • Jekyll
  • web serve

This guide documents how to set up a local Jekyll development environment for this GitHub Pages site on a fresh Ubuntu machine.

Read More

Modes of Circular Waveguide

Yanfei Tang 2025-05-07
  • electromagnetism
  • python

We review the electromagnetic field theory of circular waveguide, particular about the TE and TM mode. Most part of the discussion comes from David M. Pozar’s book.

Read More

Calculate S-matrix of Networks

Yanfei Tang 2025-04-09
  • circuit model
  • python

This post is about S-parameter of networks.

Read More

Mathematical Notes

Yanfei Tang 2024-12-28
  • math

This post is about mathematical formulas for my reference.

Read More

HPC series 4 - OpenACC Practice

2024-09-14
  • HPC
  • gpu
  • OpenACC

   Previously, we discussed about the CUDA language to increase performance of code by GPU. We give a very simple example to acceralte code of drawing a Mandelbrot graph. However, even for this ...

Read More

HPC Series 3 - Benchmark of numpy/torch/CuPy's Matrix Operators on Various Platforms

2024-07-04
  • HPC
  • gpu
  • cpu
  • cuda

   Recently, I was assigned a task to accelerate a program by using a GPU accelerator. After analyzing the original Python program, namely the rigorous coupled wave analysis (RCWA) method, I fou...

Read More

HPC Series 2 - Invoke BLAS/LAPACK compiled Fortran library in C

2024-06-01
  • C
  • Fortran
  • HPC
  • LAPACK
  • BLAS

Me: “Can you show me some examples using complex number in C language while using LAPACK library? Please don’t use lapacke.h.”

Gemini: “LAPACK functionality is typically accessed throug...

Read More

Toolkits

2023-12-13
  • tool
  • JavaScript

Useful toolkits for research.

Read More
← Prev 1 2 Next →