LDC 安装

  • 默认有了 LDC 的相关 code
  • 默认使用 Ubuntu 系统
  • 为了降低难度和复杂度,直接使用包管理器(apt-get)安装

安装依赖库

swig 库

SWIG 是一款软件开发工具,它简化了将不同语言连接到 C 和 C++ 程序的任务。简而言之,SWIG 是一个编译器,它接受 C/C++ 声明并创建从其他语言(包括 Perl、Python、Tcl、Ruby、Guile 和 Java)访问这些声明所需的包装器。SWIG 通常不需要修改现有代码,并且可以在几分钟内构建可用的接口。

sudo apt-get -q install swig

gsl 科学计算库

The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License.

sudo apt-get -q install libgsl-dev

fftw 快速傅里叶变换库

主页: http://www.fftw.org/

FFTW is a C subroutine library for computing the discrete Fourier transform (DFT) in one or more dimensions, of arbitrary input size, and of both real and complex data (as well as of even/odd data, i.e. the discrete cosine/sine transforms or DCT/DST). We believe that FFTW, which is free software, should become the FFT library of choice for most applications.

sudo apt-get -q install libfftw3-dev

python 版本的 fftw 和 healpy

pip install pyfftw healpy
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。