Skip to content

Commit

Permalink
kernel/ksupport: add linalg functions
Browse files Browse the repository at this point in the history
  • Loading branch information
AR-PyT committed Aug 1, 2024
1 parent c04b079 commit 0795195
Show file tree
Hide file tree
Showing 2 changed files with 498 additions and 0 deletions.
13 changes: 13 additions & 0 deletions artiq/firmware/ksupport/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,19 @@ static mut API: &'static [(&'static str, *const ())] = &[
api!(y1),
api!(yn),

// linalg
api!(np_linalg_matmul = ::linalg::np_linalg_matmul),
api!(np_linalg_cholesky = ::linalg::np_linalg_cholesky),
api!(np_linalg_qr = ::linalg::np_linalg_qr),
api!(np_linalg_svd = ::linalg::np_linalg_svd),
api!(np_linalg_inv = ::linalg::np_linalg_inv),
api!(np_linalg_pinv = ::linalg::np_linalg_pinv),
api!(np_linalg_matrix_power = ::linalg::np_linalg_matrix_power),
api!(np_linalg_det = ::linalg::np_linalg_det),
api!(sp_linalg_lu = ::linalg::sp_linalg_lu),
api!(sp_linalg_schur = ::linalg::sp_linalg_schur),
api!(sp_linalg_hessenberg = ::linalg::sp_linalg_hessenberg),

/* exceptions */
api!(_Unwind_Resume = ::unwind::_Unwind_Resume),
api!(__nac3_personality = ::eh_artiq::personality),
Expand Down
Loading

0 comments on commit 0795195

Please sign in to comment.