{
  "_id": "6a106710acfb0bcc41ca90ce",
  "Package": "madness",
  "Maintainer": "Steven E. Pav <shabbychef@gmail.com>",
  "Authors@R": "c(person(c(\"Steven\", \"E.\"), \"Pav\", \nrole=c(\"aut\",\"cre\"),\nemail=\"shabbychef@gmail.com\",\ncomment = c(ORCID = \"0000-0002-4197-6195\")))",
  "Version": "0.2.7",
  "Date": "2020-02-07",
  "License": "LGPL-3",
  "Title": "Automatic Differentiation of Multivariate Operations",
  "BugReports": "https://github.com/shabbychef/madness/issues",
  "Description": "An object that supports automatic differentiation of\nmatrix- and multidimensional-valued functions with respect to\nmultidimensional independent variables. Automatic\ndifferentiation is via 'forward accumulation'.",
  "URL": "https://github.com/shabbychef/madness",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Collate": "'AllClass.r' 'bind.r' 'blockrep.r' 'coerce.r' 'data.r' 'det.r'\n'diag.r' 'eigen.r' 'elwise.r' 'madness_pkg.r' 'matwise.r'\n'max.r' 'norm.r' 'numderiv.r' 'Ops.r' 'reshape.r' 'solve.r'\n'sum.r' 'sums.r' 'theta.r' 'to_objective.r' 'trace.r'\n'twomoments.r' 'utils.r' 'vcov.r' 'vec.r'",
  "Repository": "https://shabbychef.r-universe.dev",
  "Date/Publication": "2021-04-03 22:36:05 UTC",
  "RemoteUrl": "https://github.com/shabbychef/madness",
  "RemoteRef": "HEAD",
  "RemoteSha": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-08 05:44:50 UTC",
    "User": "root"
  },
  "Author": "Steven E. Pav [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-4197-6195>)",
  "MD5sum": "abea63283fca6e608367818b8c9fc921",
  "_user": "shabbychef",
  "_type": "src",
  "_file": "madness_0.2.7.tar.gz",
  "_fileid": "56a96809d83aa7bee8f42f31cfcd489b732d6e8a11717705f44b4c7dfd2cf847",
  "_filesize": 1001320,
  "_sha256": "56a96809d83aa7bee8f42f31cfcd489b732d6e8a11717705f44b4c7dfd2cf847",
  "_created": "2026-05-08T05:44:50.000Z",
  "_published": "2026-05-22T14:24:16.861Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77399170437,
      "time": 149,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6872681781"
    },
    {
      "job": 77399171187,
      "time": 139,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6872679750"
    },
    {
      "job": 77399171339,
      "time": 91,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6872668793"
    },
    {
      "job": 77399171084,
      "time": 139,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6872679418"
    },
    {
      "job": 77399170414,
      "time": 197,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6872648262"
    },
    {
      "job": 77399169819,
      "time": 103,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7162860352"
    },
    {
      "job": 77399170468,
      "time": 101,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6872671477"
    },
    {
      "job": 77399170699,
      "time": 98,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6872670521"
    },
    {
      "job": 77399170550,
      "time": 129,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6872677484"
    }
  ],
  "_buildurl": "https://github.com/r-universe/shabbychef/actions/runs/25539080762",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/shabbychef/madness",
  "_commit": {
    "id": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
    "author": "Steven Pav <shabbychef@gmail.com>",
    "committer": "Steven Pav <shabbychef@gmail.com>",
    "message": "need tinytex for vignette in ghaction\n",
    "time": 1617489365
  },
  "_maintainer": {
    "name": "Steven E. Pav",
    "email": "shabbychef@gmail.com",
    "login": "shabbychef",
    "uuid": 1456159,
    "orcid": "0000-0002-4197-6195"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.2.0",
      "role": "Depends"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "matrixcalc",
      "role": "Imports"
    },
    {
      "package": "expm",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "lubridate",
      "role": "Suggests"
    },
    {
      "package": "SharpeR",
      "role": "Suggests"
    },
    {
      "package": "sandwich",
      "role": "Suggests"
    },
    {
      "package": "formatR",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    }
  ],
  "_owner": "shabbychef",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_stars": 31,
  "_contributors": [
    {
      "user": "shabbychef",
      "count": 72,
      "uuid": 1456159
    }
  ],
  "_userbio": {
    "uuid": 1456159,
    "type": "user",
    "name": "Steven Pav"
  },
  "_downloads": {
    "count": 351,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/madness"
  },
  "_devurl": "https://github.com/shabbychef/madness",
  "_searchresults": 42,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/madness.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/shabbychef/madness",
  "_realowner": "shabbychef",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2015-12-15"
    },
    {
      "version": "0.2.0",
      "date": "2016-01-20"
    },
    {
      "version": "0.2.1",
      "date": "2017-04-14"
    },
    {
      "version": "0.2.2",
      "date": "2017-04-26"
    },
    {
      "version": "0.2.3",
      "date": "2018-02-15"
    },
    {
      "version": "0.2.4",
      "date": "2018-08-27"
    },
    {
      "version": "0.2.5",
      "date": "2018-08-29"
    },
    {
      "version": "0.2.6",
      "date": "2019-04-19"
    },
    {
      "version": "0.2.7",
      "date": "2020-02-08"
    },
    {
      "version": "0.2.8",
      "date": "2023-08-21"
    }
  ],
  "_exports": [
    "%o%",
    "as.array",
    "as.madness",
    "as.matrix",
    "blockrep",
    "cbind2",
    "colMeans",
    "colSums",
    "det",
    "determinant",
    "diag",
    "dvdx",
    "eigen",
    "ivech",
    "madness",
    "matrix.trace",
    "maxeig",
    "norm",
    "numderiv",
    "outer",
    "rbind2",
    "repto",
    "rowMeans",
    "rowSums",
    "show",
    "solve",
    "sqrtm",
    "t",
    "theta",
    "to_objective",
    "todiag",
    "tril",
    "triu",
    "twomoments",
    "val",
    "varx",
    "varx<-",
    "vec",
    "vech",
    "vtag",
    "vtag<-",
    "xtag",
    "xtag<-"
  ],
  "_datasets": [
    {
      "name": "stock_returns",
      "title": "Stock Returns Data",
      "object": "stock_returns",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Date",
        "AAPL",
        "IBM"
      ],
      "rows": 1930,
      "table": true,
      "tojson": true
    },
    {
      "name": "wff3",
      "title": "Weekly Fama French 3 Factor Returns",
      "object": "wff3",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Date",
        "Mkt",
        "SMB",
        "HML",
        "RF"
      ],
      "rows": 4800,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "extract-methods",
      "title": "Extract parts of a 'madness' value.",
      "topics": [
        "[",
        "[,madness,ANY,ANY,ANY-method",
        "[,madness,ANY,missing,ANY-method"
      ]
    },
    {
      "page": "accessor-methods",
      "title": "Accessor methods.",
      "topics": [
        "accessor",
        "dim,madness-method",
        "dvdx",
        "dvdx,madness-method",
        "length,madness-method",
        "val",
        "val,madness-method",
        "varx",
        "varx,madness-method",
        "vtag",
        "vtag,madness-method",
        "xtag",
        "xtag,madness-method"
      ]
    },
    {
      "page": "arithops",
      "title": "Basic Arithmetic Operations.",
      "topics": [
        "*,array,madness-class",
        "*,array,madness-method",
        "*,madness,array-class",
        "*,madness,array-method",
        "*,madness,madness-class",
        "*,madness,madness-method",
        "*,madness,numeric-class",
        "*,madness,numeric-method",
        "*,numeric,madness-class",
        "*,numeric,madness-method",
        "+,array,madness-class",
        "+,array,madness-method",
        "+,madness,array-class",
        "+,madness,array-method",
        "+,madness,madness-class",
        "+,madness,madness-method",
        "+,madness,missing-method",
        "+,madness,numeric-class",
        "+,madness,numeric-method",
        "+,madness-class",
        "+,numeric,madness-class",
        "+,numeric,madness-method",
        "-,array,madness-class",
        "-,array,madness-method",
        "-,madness,array-class",
        "-,madness,array-method",
        "-,madness,madness-class",
        "-,madness,madness-method",
        "-,madness,missing-method",
        "-,madness,numeric-class",
        "-,madness,numeric-method",
        "-,madness-class",
        "-,numeric,madness-class",
        "-,numeric,madness-method",
        "/,array,madness-class",
        "/,array,madness-method",
        "/,madness,array-class",
        "/,madness,array-method",
        "/,madness,madness-class",
        "/,madness,madness-method",
        "/,madness,numeric-class",
        "/,madness,numeric-method",
        "/,numeric,madness-class",
        "/,numeric,madness-method",
        "arithops",
        "^,array,madness-class",
        "^,array,madness-method",
        "^,madness,array-class",
        "^,madness,array-method",
        "^,madness,madness-class",
        "^,madness,madness-method",
        "^,madness,numeric-class",
        "^,madness,numeric-method",
        "^,numeric,madness-class",
        "^,numeric,madness-method"
      ]
    },
    {
      "page": "as",
      "title": "Coerce madness to something else",
      "topics": [
        "as",
        "as.array",
        "as.array,madness-method",
        "as.matrix",
        "as.matrix,madness-method",
        "as.numeric",
        "as.numeric,madness-method"
      ]
    },
    {
      "page": "as.madness",
      "title": "Coerce to a madness object.",
      "topics": [
        "as.madness",
        "as.madness.default"
      ]
    },
    {
      "page": "bind",
      "title": "Row and Column Bind",
      "topics": [
        "bind",
        "c.madness",
        "cbind2,ANY,madness-method",
        "cbind2,madness,ANY-method",
        "cbind2,madness,madness-method",
        "cbind2,madness,missing-method",
        "rbind2,ANY,madness-method",
        "rbind2,madness,ANY-method",
        "rbind2,madness,madness-method",
        "rbind2,madness,missing-method"
      ]
    },
    {
      "page": "blockrep",
      "title": "Replicate blocks of multidimensional value.",
      "topics": [
        "blockrep",
        "repto"
      ]
    },
    {
      "page": "colsums",
      "title": "Form Row and Column Sums and Means",
      "topics": [
        "colMeans",
        "colMeans,madness-method",
        "colSums",
        "colsums",
        "colSums,madness-method",
        "rowMeans",
        "rowMeans,madness-method",
        "rowSums",
        "rowSums,madness-method"
      ]
    },
    {
      "page": "det",
      "title": "Matrix Determinant",
      "topics": [
        "det",
        "determinant",
        "determinant,madness,ANY-method",
        "determinant,madness,logical-method",
        "determinant,madness,missing-method",
        "determinant.madness"
      ]
    },
    {
      "page": "eigen",
      "title": "Spectral Decomposition of a Matrix",
      "topics": [
        "eigen",
        "eigen,madness-method"
      ]
    },
    {
      "page": "elwise",
      "title": "Element-wise Multivariate Operations",
      "topics": [
        "abs,madness-method",
        "cos,madness-method",
        "elwise",
        "exp,madness-method",
        "log,madness-method",
        "log10,madness-method",
        "sin,madness-method",
        "sqrt,madness-method",
        "tan,madness-method"
      ]
    },
    {
      "page": "madness-class",
      "title": "Madness Class.",
      "topics": [
        "initialize,madness-class",
        "initialize,madness-method",
        "madness",
        "madness-class"
      ]
    },
    {
      "page": "NEWS",
      "title": "News for package 'madness':",
      "topics": [
        "madness-NEWS"
      ]
    },
    {
      "page": "madness-pkg",
      "title": "Multivariate Automatic Differentiation.",
      "topics": [
        "madness-pkg"
      ]
    },
    {
      "page": "marithops",
      "title": "Basic Matrix Arithmetic Operations.",
      "topics": [
        "%*%,array,madness-class",
        "%*%,array,madness-method",
        "%*%,madness,array-class",
        "%*%,madness,array-method",
        "%*%,madness,madness-method",
        "crossprod",
        "crossprod,ANY,madness-method",
        "crossprod,madness,ANY-method",
        "crossprod,madness,madness-method",
        "crossprod,madness,missing-method",
        "marithops",
        "tcrossprod",
        "tcrossprod,ANY,madness-method",
        "tcrossprod,madness,ANY-method",
        "tcrossprod,madness,madness-method",
        "tcrossprod,madness,missing-method",
        "`%*%`,madness,madness-class"
      ]
    },
    {
      "page": "matrix.trace",
      "title": "Matrix Trace",
      "topics": [
        "matrix.trace",
        "matrix.trace,ANY-method",
        "matrix.trace,madness-method"
      ]
    },
    {
      "page": "matwise",
      "title": "Matrix-wise Multivariate Operations",
      "topics": [
        "chol",
        "chol.madness",
        "matwise",
        "sqrtm",
        "sqrtm,madness-method"
      ]
    },
    {
      "page": "max",
      "title": "Maxima and Minima",
      "topics": [
        "max",
        "max,madness-class",
        "max,madness-method",
        "min",
        "min,madness-class",
        "min,madness-method"
      ]
    },
    {
      "page": "norm",
      "title": "Matrix and vector norms.",
      "topics": [
        "maxeig",
        "maxeig,madness-method",
        "norm",
        "norm,madness,ANY-method",
        "norm,madness,missing-method",
        "norm,madness-method"
      ]
    },
    {
      "page": "numderiv",
      "title": "Numerical (approximate) Differentiation.",
      "topics": [
        "ANY,array-method",
        "ANY,madness-method",
        "numderiv",
        "numderiv,ANY,array-method",
        "numderiv,ANY,madness-method"
      ]
    },
    {
      "page": "outer",
      "title": "Outer product.",
      "topics": [
        "%o%",
        "kronecker,array,madness-class",
        "kronecker,array,madness-method",
        "kronecker,madness,array-class",
        "kronecker,madness,array-method",
        "kronecker,madness,madness-class",
        "kronecker,madness,madness-method",
        "outer",
        "outer,ANY,ANY-method",
        "outer,array,madness-method",
        "outer,madness,array-method",
        "outer,madness,madness-method"
      ]
    },
    {
      "page": "reshapes",
      "title": "Basic Reshape Operations",
      "topics": [
        "aperm",
        "aperm.madness",
        "dim<-,madness,ANY-method",
        "dim<-,madness-method",
        "reshapes",
        "t",
        "t,madness-method",
        "tril",
        "tril,madness-method",
        "triu",
        "triu,madness-method"
      ]
    },
    {
      "page": "setter-methods",
      "title": "Setter methods.",
      "topics": [
        "setter",
        "varx<-",
        "varx<-,madness-method",
        "vtag<-",
        "vtag<-,madness-method",
        "xtag<-",
        "xtag<-,madness-method"
      ]
    },
    {
      "page": "show-methods",
      "title": "Show a madness object.",
      "topics": [
        "show",
        "show,madness-method"
      ]
    },
    {
      "page": "solve",
      "title": "Basic Matrix Inversion",
      "topics": [
        "solve",
        "solve,ANY,madness-method",
        "solve,ANY,missing-method",
        "solve,array,madness-method",
        "solve,madness,ANY-method",
        "solve,madness,array-method",
        "solve,madness,madness-method",
        "solve,madness,missing-method"
      ]
    },
    {
      "page": "stock_returns",
      "title": "Stock Returns Data",
      "topics": [
        "stock_returns"
      ]
    },
    {
      "page": "sumprod",
      "title": "Sum and Product.",
      "topics": [
        "prod",
        "prod,madness-class",
        "prod,madness-method",
        "sum",
        "sum,madness-class",
        "sum,madness-method",
        "sumprod"
      ]
    },
    {
      "page": "theta",
      "title": "Estimate the symmetric second moment array of values.",
      "topics": [
        "theta"
      ]
    },
    {
      "page": "to_objective",
      "title": "Convert a madness object into an objective value with gradient",
      "topics": [
        "to_objective"
      ]
    },
    {
      "page": "todiag",
      "title": "Diagonal Operations",
      "topics": [
        "diag",
        "diag,madness-method",
        "todiag",
        "todiag,madness-method"
      ]
    },
    {
      "page": "twomoments",
      "title": "Estimate the mean and covariance of values.",
      "topics": [
        "twomoments"
      ]
    },
    {
      "page": "vcov.madness",
      "title": "Calculate Variance-Covariance Matrix for a model.",
      "topics": [
        "vcov.madness"
      ]
    },
    {
      "page": "vec",
      "title": "vectorize a multidimensional array.",
      "topics": [
        "ivech",
        "ivech,ANY-method",
        "ivech,madness-method",
        "vec",
        "vec,array-method",
        "vec,madness-method",
        "vech",
        "vech,array-method",
        "vech,madness-method"
      ]
    },
    {
      "page": "wff3",
      "title": "Weekly Fama French 3 Factor Returns",
      "topics": [
        "wff3"
      ]
    }
  ],
  "_readme": "https://github.com/shabbychef/madness/raw/HEAD/README.md",
  "_rundeps": [
    "expm",
    "lattice",
    "Matrix",
    "matrixcalc"
  ],
  "_vignettes": [
    {
      "source": "introducing_madness.Rnw",
      "filename": "introducing_madness.pdf",
      "title": "Asymptotic Distribution of the Markowitz Portfolio",
      "engine": "knitr::knitr",
      "headings": [],
      "created": "2018-08-26 05:00:36",
      "modified": "2018-08-28 04:57:47",
      "commits": 7
    }
  ],
  "_score": 6.290702243287854,
  "_indexed": true,
  "_nocasepkg": "madness",
  "_universes": [
    "shabbychef"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.7",
      "date": "2026-05-08T05:46:58.000Z",
      "distro": "noble",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "cbc1827eaab58c1b2d2f7aa128686b9b1cd738c696d03b616d2bfcebc24b5631",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/25539080762"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.7",
      "date": "2026-05-08T05:46:52.000Z",
      "distro": "noble",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "f8db5749a6e8c07f790fa37b8371519767ee79fdec373e233a12f35c65250b53",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/25539080762"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.7",
      "date": "2026-05-08T05:46:18.000Z",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "4b6af45dbb66c7d5572df04ddfceac1efd1ca74d4d5ed9e1011d5344c41696af",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/25539080762"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.7",
      "date": "2026-05-08T05:46:55.000Z",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "9775b95d319b0858e90185de49493387ea43a00888d603a748383eff19c7f559",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/25539080762"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.7",
      "date": "2026-05-08T05:46:06.000Z",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "d03d6fde760c3291eb10932cb9dd965f4ab041433ac1831d3a0285bd5f8ec175",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/25539080762"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.7",
      "date": "2026-05-08T05:46:05.000Z",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "f580138b6f8032120d9192b6635c61efbbb1f8a9f51880c2e409719d1efabb38",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/25539080762"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.7",
      "date": "2026-05-08T05:46:32.000Z",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "a91ea07f3489b628c37ca2d07894afc201643125e5fd947287b6eb55cb193c86",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/25539080762"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.7",
      "date": "2026-05-22T14:23:50.000Z",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "6982838910ce749313719d72ae32b294afe590ea2387b88c2481bcc8ec1c51f6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/25539080762"
    }
  ]
}