{"id":19182030,"url":"https://github.com/glentner/parallelmt","last_synced_at":"2025-02-23T02:23:30.286Z","repository":{"id":23293077,"uuid":"26652189","full_name":"glentner/ParallelMT","owner":"glentner","description":"The ParallelMT class creates a family of MT19937 objects seeded independently allowing for simultaneous access and generation from within a parallel environment.","archived":false,"fork":false,"pushed_at":"2015-06-28T20:57:03.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-04T04:22:35.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glentner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-14T18:40:30.000Z","updated_at":"2015-06-28T20:44:14.000Z","dependencies_parsed_at":"2022-07-25T12:32:44.749Z","dependency_job_id":null,"html_url":"https://github.com/glentner/ParallelMT","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glentner%2FParallelMT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glentner%2FParallelMT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glentner%2FParallelMT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glentner%2FParallelMT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glentner","download_url":"https://codeload.github.com/glentner/ParallelMT/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240259133,"owners_count":19773115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-09T10:56:18.586Z","updated_at":"2025-02-23T02:23:30.192Z","avatar_url":"https://github.com/glentner.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"#ParallelMT\n\n####A Parallel Pseudo Random Number Generator for Monte Carlo Applications.\n\nThe ParallelMT class is an extension to the MT19937 class, both contained within a single MT\nnamespace. MT19937 is adapted from the original 64-bit pseudo random number generator\n(Nishimura and Matsumoto, 2004). Here we have a class constructed with either a single seed or\nan array seed. Methods include RandomInteger and RandomReal. The ParallelMT class creates a\nfamily of MT19937 objects seeded independently allowing for simultaneous access and generation\nfrom within a parallel environment.\n\n### Example usage:\n\n```c++\n#include \u003cParallelMT.hh\u003e\n#include \u003cvector\u003e\n\n#define threads 4\n\nint main(){\n\n    // std::vector\u003cdouble\u003e of length two designates `limits`\n    double init[] = {1, 6};\n    std::vector\u003cdouble\u003e limits(init, sizeof(init)/sizeof(double));\n\n    // construct using default seed\n    ParallelMT pmt1();\n\n    // construct using specified seed\n    ParallelMT pmt2(0x1234ULL);\n\n    // generate a random real numbers\n    for (int i = 0; i \u003c 1e6; i++)\n    \n    ...\n    return 0;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglentner%2Fparallelmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglentner%2Fparallelmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglentner%2Fparallelmt/lists"}