This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow to use flint for Stirling numbers of both kind
- Loading branch information
Showing
3 changed files
with
105 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
# distutils: libraries = flint | ||
# distutils: depends = flint/arith.h | ||
|
||
from sage.libs.flint.types cimport fmpz_t, fmpq_t, ulong | ||
from sage.libs.flint.types cimport fmpz_t, fmpq_t, ulong, slong | ||
|
||
# flint/arith.h | ||
cdef extern from "flint_wrap.h": | ||
void arith_bell_number(fmpz_t b, ulong n) | ||
void arith_bernoulli_number(fmpq_t x, ulong n) | ||
void arith_euler_number ( fmpz_t res , ulong n ) | ||
void arith_euler_number(fmpz_t res, ulong n) | ||
void arith_stirling_number_1u(fmpz_t res, slong n, slong k) | ||
void arith_stirling_number_2(fmpz_t res, slong n, slong k) | ||
void arith_number_of_partitions(fmpz_t x, ulong n) | ||
void arith_dedekind_sum(fmpq_t, fmpz_t, fmpz_t) | ||
void arith_harmonic_number(fmpq_t, unsigned long n) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters