{"id":16692532,"url":"https://github.com/ckormanyos/mathematica_mathlink","last_synced_at":"2026-02-23T01:31:58.323Z","repository":{"id":186323447,"uuid":"670650649","full_name":"ckormanyos/mathematica_mathlink","owner":"ckormanyos","description":"C++ template header for interacting with the Mathematica(R) kernel","archived":false,"fork":false,"pushed_at":"2025-02-16T14:23:43.000Z","size":12626,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-28T14:48:57.478Z","etag":null,"topics":["cpp","mathematica"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ckormanyos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_1_0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-25T14:21:13.000Z","updated_at":"2025-02-16T14:23:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3012216-2450-43b8-acf1-55b7fb7fbc27","html_url":"https://github.com/ckormanyos/mathematica_mathlink","commit_stats":null,"previous_names":["ckormanyos/mathematica_mathlink"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ckormanyos/mathematica_mathlink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckormanyos%2Fmathematica_mathlink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckormanyos%2Fmathematica_mathlink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckormanyos%2Fmathematica_mathlink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckormanyos%2Fmathematica_mathlink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ckormanyos","download_url":"https://codeload.github.com/ckormanyos/mathematica_mathlink/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckormanyos%2Fmathematica_mathlink/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29734468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T20:09:16.275Z","status":"ssl_error","status_checked_at":"2026-02-22T20:09:13.750Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","mathematica"],"created_at":"2024-10-12T16:27:27.728Z","updated_at":"2026-02-23T01:31:58.290Z","avatar_url":"https://github.com/ckormanyos.png","language":"C++","readme":"mathematica_mathlink\n==================\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/ckormanyos/mathematica_mathlink/actions\"\u003e\n        \u003cimg src=\"https://github.com/ckormanyos/mathematica_mathlink/actions/workflows/mathematica_mathlink.yml/badge.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n`ckormanyos/mathematica_mathlink` provides a C++ template header\nfor interacting with the Mathematica(R) kernel.\n\n## Implementation Goals\n\n  - Interact directly with the Mathematica(R) kernel by sending/receiving _packets_.\n  - Clean header-only C++14 design.\n  - Seamless portability to any modern C++14, 17, 20, 23 compiler and beyond.\n  - Support an easy-to-use MSVC solution for simple build.\n  - Include a selection of non-trivial examples.\n\n## Test Examples\n\nSeveral completely worked out test examples are available in the\n[`test`](./test) directory of the repository.\n\n  - [test_bessel_j_versus_boost.cpp](./test/test_bessel_j_versus_boost.cpp) tests a variety of high-precision cylindrical Bessel function values comparing them with results from the kernel. This test requires the `Boost.Math` and `Boost.Multiprecision` libraries.\n  - [test_divmod.cpp](./test/test_divmod.cpp) generates pseudo-random wide integers and tests the `divmod` function versus the kernel. This function is equivalent to Python-3's double-divide (`//`) function or Mathematica(R)'s `QuotientRemainder` function. This test program requires the [ckormanyos/wide-integer](https://github.com/ckormanyos/wide-integer) header-only C++ _wide_-_integer_ library.\n  - [test_gcd.cpp](./test/test_gcd.cpp) generate pairs of pseudo-random wide-integers, compute their `gcd` (GCD, greatest common divisor) and confirm the GCD results with the kernel. This test program requires the [ckormanyos/wide-integer](https://github.com/ckormanyos/wide-integer) header-only C++ _wide_-_integer_ library.\n  - [test_prime.cpp](./test/test_prime.cpp) generate pseudo-random wide-integer prime numbers and verify their primality with the kernel. This test program requires the [ckormanyos/wide-integer](https://github.com/ckormanyos/wide-integer) header-only C++ _wide_-_integer_ library.\n\n## Additional information\n\n  - At the moment, `ckormanyos/mathematica_mathlink` can only handle single return packets.\n  - The path strings for finding/locating the Mathematica(R) kernel are only available for `Win*`, not for `*nix`.\n  - Link with `wstp64i4.lib` and run in the presence of `wstp64i4.dll` (which are proprietary libraries).\n  - CI compiles the test examples to object only (and does not link). Compilation is checked using GCC and clang compilers.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckormanyos%2Fmathematica_mathlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckormanyos%2Fmathematica_mathlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckormanyos%2Fmathematica_mathlink/lists"}