Skip to content

Instantly share code, notes, and snippets.

View yibaohu-outlook's full-sized avatar

yibao hu yibaohu-outlook

View GitHub Profile
@t-nissie
t-nissie / cholesky_d.f
Last active April 2, 2024 14:23
Cholesky decomposition written in Fortran
! cholesky_d.f -*-f90-*-
! Using Cholesky decomposition, cholesky_d.f solve a linear equation Ax=b,
! where A is a n by n positive definite real symmetric matrix, x and b are
! real*8 vectors length n.
!
! Time-stamp: <2015-06-25 18:05:47 takeshi>
! Author: Takeshi NISHIMATSU
! Licence: GPLv3
!
! [1] A = G tG, where G is a lower triangular matrix and tG is transpose of G.
@Imxset21
Imxset21 / lapack_cholesky.c
Last active September 1, 2021 12:14
C89 Cholesky decomposition using LAPACK
/**
@file lapack_cholesky.c
@author Pedro Rittner
@date November 25, 2014
@brief Small example for how to perform a Cholesky decomposition using LAPACK
A small example performing a Cholesky decomposition using LAPACK's C API.
This is meant to demystify the API somewhat and to make it clearer what
is happening in terms of the function call/arguments/etc.