Compare commits

..

10 Commits

Author SHA1 Message Date
David Mak 2e1d6ab644 standalone: Add math tests for non-number arguments 2023-11-01 17:59:43 +08:00
David Mak 8d85ca3ac1 core: Rework gamma/gammaln to match SciPy behavior
Matches behavior for infinities and NaNs.
2023-11-01 17:59:40 +08:00
David Mak 9d3d5be383 core: Replace TopLevelDef comments with documentation 2023-11-01 17:59:14 +08:00
David Mak df4f5fe9f3 core: Implement numpy and scipy functions 2023-11-01 17:59:14 +08:00
David Mak 197ffbbe81 core: Implement and expose {isinf,isnan} 2023-11-01 17:58:48 +08:00
David Mak 61ce788843 flake: Add scipy 2023-11-01 15:01:54 +08:00
David Mak 2d941157a1 core: Add create_fn_by_* functions
Used for abstracting the creation of function from different sources.
2023-11-01 15:01:54 +08:00
David Mak e308846cd8 core: Do not cast floor/ceil result to int
NumPy explicitly states that the return type of the floor/ceil is float.
2023-11-01 15:01:54 +08:00
David Mak cff30b81b1 core: Remove {ceil64,floor64,round,round64}
These are not present in NumPy or Artiq.
2023-11-01 15:01:54 +08:00
David Mak 49d132702f standalone: Do not output sign if float is NaN
Matches behavior in Python.
2023-11-01 15:01:52 +08:00
2 changed files with 5 additions and 5 deletions

View File

@ -2,16 +2,16 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1698553279,
"narHash": "sha256-T/9P8yBSLcqo/v+FTOBK+0rjzjPMctVymZydbvR/Fak=",
"lastModified": 1698233941,
"narHash": "sha256-n66he1jg9pt/zkVACpWwVMYTIkGmF4jOM764mMj0ffw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "90e85bc7c1a6fc0760a94ace129d3a1c61c3d035",
"rev": "545857e74921a41af587931bd80dfed5541c3cbf",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"ref": "master",
"repo": "nixpkgs",
"type": "github"
}

View File

@ -1,7 +1,7 @@
{
description = "The third-generation ARTIQ compiler";
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable;
inputs.nixpkgs.url = github:NixOS/nixpkgs/master;
outputs = { self, nixpkgs }:
let