{
  "_id": "6a1f37e9b401979e73428da0",
  "Package": "hdtg",
  "Title": "Generate Samples from Multivariate Truncated Normal\nDistributions",
  "Version": "0.3.4",
  "Authors@R": "c(person(\"Zhenyu\", \"Zhang\", email = \"zhangzhenyusa@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Andrew\", \"Chin\", email = \"achin23@jhu.edu\", role = \"aut\"),\nperson(\"Akihiko\", \"Nishimura\", email = \"akihiko4@gmail.com\", role = \"aut\"),\nperson(\"Marc A.\", \"Suchard\", email = \"msuchard@ucla.edu\", role = \"aut\"),\nperson(\"John W.\", \"Ratcliff et al.\", role = c(\"cph\", \"ctb\"),\ncomment = \"authors and copyright holders of see2neon.h under an MIT license\"))",
  "Maintainer": "Zhenyu Zhang <zhangzhenyusa@gmail.com>",
  "Description": "Efficient sampling from high-dimensional truncated\nGaussian distributions, or multivariate truncated normal (MTN).\nTechniques include zigzag Hamiltonian Monte Carlo as in Akihiko\nNishimura, Zhenyu Zhang and Marc A. Suchard (2024)\n<doi:10.1080/01621459.2024.2395587>, and harmonic Monte Carlo\nin Ari Pakman and Liam Paninski (2014)\n<doi:10.1080/10618600.2013.788448>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "RdMacros": "Rdpack",
  "Config/testthat/edition": "3",
  "SystemRequirements": "CPU with AVX/SSE4.2 (optional for better\nperformance)",
  "Acknowledgements": "The package uses the following R infrastructure: Rcpp\n(Eddelbuettel & Francois, 2011), RcppEigen (Bates &\nEddelbuettel, 2013), RcppParallel (Allaire et al., 2025), mgcv\n(Wood, 2017), and Rdpack (Boshnakov, 2023).",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-12 09:31:20 UTC",
    "User": "root"
  },
  "Author": "Zhenyu Zhang [aut, cre], Andrew Chin [aut], Akihiko Nishimura\n[aut], Marc A. Suchard [aut], John W. Ratcliff et al. [cph,\nctb] (authors and copyright holders of see2neon.h under an MIT\nlicense)",
  "Config/pak/sysreqs": "make",
  "Repository": "https://zhenyu028.r-universe.dev",
  "Date/Publication": "2026-02-11 14:10:02 UTC",
  "RemoteUrl": "https://github.com/cran/hdtg",
  "RemoteRef": "HEAD",
  "RemoteSha": "e03791e8f5da144501872914e6b10b4ec182efa8",
  "MD5sum": "21d6a805f7d4d5830127df04eb5ca7f3",
  "_user": "zhenyu028",
  "_type": "src",
  "_file": "hdtg_0.3.4.tar.gz",
  "_fileid": "91db6b5e939c61e80d6a0231c2c43f506b284c8daf0ac309b8ab2a27ff2796f6",
  "_filesize": 374451,
  "_sha256": "91db6b5e939c61e80d6a0231c2c43f506b284c8daf0ac309b8ab2a27ff2796f6",
  "_created": "2026-05-12T09:31:20.000Z",
  "_published": "2026-06-02T20:07:05.221Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79161656472,
      "time": 121,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 79161655939,
      "time": 177,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6940608997"
    },
    {
      "job": 79161657035,
      "time": 128,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 79161656678,
      "time": 147,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6940598948"
    },
    {
      "job": 79161656594,
      "time": 280,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6940643728"
    },
    {
      "job": 79161656534,
      "time": 425,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6940678779"
    },
    {
      "job": 79161655962,
      "time": 158,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6940595405"
    },
    {
      "job": 79161655963,
      "time": 338,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6940704704"
    },
    {
      "job": 79161655617,
      "time": 172,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6940544574"
    },
    {
      "job": 79161655233,
      "time": 109,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 79161656070,
      "time": 133,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6940593873"
    },
    {
      "job": 79161656445,
      "time": 135,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6940595696"
    },
    {
      "job": 79161656755,
      "time": 130,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6940592471"
    }
  ],
  "_buildurl": "https://github.com/r-universe/zhenyu028/actions/runs/25725764227",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/hdtg",
  "_commit": {
    "id": "e03791e8f5da144501872914e6b10b4ec182efa8",
    "author": "Zhenyu Zhang <zhangzhenyusa@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.3.4\n",
    "time": 1770819002
  },
  "_maintainer": {
    "name": "Zhenyu Zhang",
    "email": "zhangzhenyusa@gmail.com",
    "login": "zhenyu028",
    "uuid": 29556533
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "role": "Imports"
    },
    {
      "package": "Rdpack",
      "role": "Imports"
    },
    {
      "package": "TruncatedNormal",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-21",
      "n": 1
    },
    {
      "week": "2025-43",
      "n": 1
    },
    {
      "week": "2025-44",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 1
    },
    {
      "week": "2026-07",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.2.1",
      "date": "2025-05-20"
    },
    {
      "name": "0.2.2",
      "date": "2025-10-25"
    },
    {
      "name": "0.2.3",
      "date": "2025-10-28"
    },
    {
      "name": "0.3.3",
      "date": "2026-01-26"
    },
    {
      "name": "0.3.4",
      "date": "2026-02-11"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "zhenyu028",
      "count": 7,
      "uuid": 29556533
    }
  ],
  "_userbio": {
    "uuid": 29556533,
    "type": "user",
    "name": "Zhenyu Zhang",
    "description": "@ucla \r\nWith all the bugs  🐛 🐞 🕷 🐜 , still a wonderful world. "
  },
  "_downloads": {
    "count": 236,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hdtg"
  },
  "_searchresults": 5,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hdtg.html",
    "manual.pdf"
  ],
  "_realowner": "zhenyu028",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2022-06-28"
    },
    {
      "version": "0.2.0",
      "date": "2022-08-07"
    },
    {
      "version": "0.2.1",
      "date": "2025-05-20"
    },
    {
      "version": "0.2.2",
      "date": "2025-10-25"
    },
    {
      "version": "0.2.3",
      "date": "2025-10-28"
    },
    {
      "version": "0.3.3",
      "date": "2026-01-26"
    },
    {
      "version": "0.3.4",
      "date": "2026-02-16"
    }
  ],
  "_exports": [
    "cholesky",
    "createEngine",
    "createNutsEngine",
    "drawLaplaceMomentum",
    "getHarmonicSample",
    "getInitialPosition",
    "getMarkovianZigzagSample",
    "getZigzagSample",
    "harmonicHMC",
    "markovianZigzag",
    "setMean",
    "setPrecision",
    "zigzagHMC"
  ],
  "_help": [
    {
      "page": "cholesky",
      "title": "Efficient Cholesky decomposition",
      "topics": [
        "cholesky"
      ]
    },
    {
      "page": "createEngine",
      "title": "Create a Zigzag-HMC engine object",
      "topics": [
        "createEngine"
      ]
    },
    {
      "page": "createNutsEngine",
      "title": "Create a Zigzag-NUTS engine object",
      "topics": [
        "createNutsEngine"
      ]
    },
    {
      "page": "drawLaplaceMomentum",
      "title": "Draw a random Laplace momentum",
      "topics": [
        "drawLaplaceMomentum"
      ]
    },
    {
      "page": "getHarmonicSample",
      "title": "One-step Harmonic HMC Sampler (Whitened Coordinates)",
      "topics": [
        "getHarmonicSample"
      ]
    },
    {
      "page": "getInitialPosition",
      "title": "Get an eligible initial value for a MTN with given mean and truncations",
      "topics": [
        "getInitialPosition"
      ]
    },
    {
      "page": "getMarkovianZigzagSample",
      "title": "Draw one Markovian zigzag sample",
      "topics": [
        "getMarkovianZigzagSample"
      ]
    },
    {
      "page": "getZigzagSample",
      "title": "Draw one MTN sample with Zigzag-HMC or Zigzag-NUTS",
      "topics": [
        "getZigzagSample"
      ]
    },
    {
      "page": "harmonicHMC",
      "title": "Sample from a truncated Gaussian distribution with the harmonic HMC",
      "topics": [
        "harmonicHMC"
      ]
    },
    {
      "page": "markovianZigzag",
      "title": "Markovian Zigzag Sampler",
      "topics": [
        "markovianZigzag"
      ]
    },
    {
      "page": "setMean",
      "title": "Set the mean for the target MTN",
      "topics": [
        "setMean"
      ]
    },
    {
      "page": "setPrecision",
      "title": "Set the precision matrix for the target MTN",
      "topics": [
        "setPrecision"
      ]
    },
    {
      "page": "zigzagHMC",
      "title": "Sample from a truncated Gaussian distribution",
      "topics": [
        "zigzagHMC"
      ]
    }
  ],
  "_rundeps": [
    "lattice",
    "Matrix",
    "mgcv",
    "nlme",
    "rbibutils",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "Rdpack"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 1.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "hdtg",
  "_universes": [
    "zhenyu028"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-05-12T09:34:17.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "e03791e8f5da144501872914e6b10b4ec182efa8",
      "fileid": "23e8242f91df73279ff9fabf3556974cf61e170e07fc20efc2151333d5fd223a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhenyu028/actions/runs/25725764227"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.4",
      "date": "2026-05-12T09:33:47.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "e03791e8f5da144501872914e6b10b4ec182efa8",
      "fileid": "13a7e7f49a90485585f5792bfabd0808bba0f43e807382e67167881602ab8cb2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhenyu028/actions/runs/25725764227"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-05-12T09:35:40.000Z",
      "arch": "aarch64",
      "commit": "e03791e8f5da144501872914e6b10b4ec182efa8",
      "fileid": "3f1c504740d82aaddd117a4cccbb1ad29b070fe7768d106621ad2a2b296a3739",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhenyu028/actions/runs/25725764227"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-05-12T09:37:01.000Z",
      "arch": "x86_64",
      "commit": "e03791e8f5da144501872914e6b10b4ec182efa8",
      "fileid": "5448a9621ae76113408ad367d6ca7bfb530ad141b8f5d370e8868d03d0947eb1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhenyu028/actions/runs/25725764227"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-05-12T09:33:47.000Z",
      "arch": "aarch64",
      "commit": "e03791e8f5da144501872914e6b10b4ec182efa8",
      "fileid": "ad2b8a87fd1a71f36797e86b350e8cfc5d22796aab232f27479a2ef2a5d73adc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhenyu028/actions/runs/25725764227"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.4",
      "date": "2026-05-12T09:38:16.000Z",
      "arch": "x86_64",
      "commit": "e03791e8f5da144501872914e6b10b4ec182efa8",
      "fileid": "b39556d2d2e8dbd28373a91be92c161f8848791a5ab72fcee052eabea87e31f7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhenyu028/actions/runs/25725764227"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-05-12T09:33:01.000Z",
      "arch": "x86_64",
      "commit": "e03791e8f5da144501872914e6b10b4ec182efa8",
      "fileid": "03f5c65b28f81751c5802ccf34de2a5a11ce2f6c830b76e6ff5c15cfafbf8636",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhenyu028/actions/runs/25725764227"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-05-12T09:33:01.000Z",
      "arch": "x86_64",
      "commit": "e03791e8f5da144501872914e6b10b4ec182efa8",
      "fileid": "b1512e6e89d5298c9ca621772f75999face17a2a560cad48dc653ac4382735ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhenyu028/actions/runs/25725764227"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.4",
      "date": "2026-05-12T09:33:11.000Z",
      "arch": "x86_64",
      "commit": "e03791e8f5da144501872914e6b10b4ec182efa8",
      "fileid": "1b43843c7c2da20623da78fbb114ec69c4dc60f8d79b44528ad1b85bd18352b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhenyu028/actions/runs/25725764227"
    }
  ]
}