miyamot0 / libcg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libcg: Conjugate gradient for C in Julia

CI

This serves as a proof-of-concept for writing dynamic libraries for C or other languages in Julia.

It creates a library for performing solving a matrix-free linear system via the conjugate gradient method. It wraps the cg! function from IterativeSolvers.jl and exposes it as a C-callable interface using PackageCompiler.jl.

Examples are provided for calling this from C and Rust.

About

License:MIT License


Languages

Language:Makefile 34.5%Language:Shell 25.1%Language:Julia 20.2%Language:Rust 10.9%Language:C 9.3%