{
  "_id": "6a253e5e4b233be198399682",
  "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-06-07 09:45:04 UTC",
    "User": "root"
  },
  "Author": "Steven E. Pav [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-4197-6195>)",
  "MD5sum": "acc52a75965e8b22832dcdcd85097598",
  "_user": "shabbychef",
  "_type": "src",
  "_file": "madness_0.2.7.tar.gz",
  "_fileid": "ce319e0acc6cbe7e55e8c1e684c1e4d7fe957b01880bfbdfb83f6acd997ab24c",
  "_filesize": 1000097,
  "_sha256": "ce319e0acc6cbe7e55e8c1e684c1e4d7fe957b01880bfbdfb83f6acd997ab24c",
  "_created": "2026-06-07T09:45:04.000Z",
  "_published": "2026-06-07T09:48:14.842Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79948914198,
      "time": 145,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462960828"
    },
    {
      "job": 79948914193,
      "time": 146,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462960778"
    },
    {
      "job": 79948914253,
      "time": 93,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7462954805"
    },
    {
      "job": 79948914276,
      "time": 103,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462956061"
    },
    {
      "job": 79948718748,
      "time": 201,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462944030"
    },
    {
      "job": 79948914186,
      "time": 90,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462954518"
    },
    {
      "job": 79948914212,
      "time": 116,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7462957733"
    },
    {
      "job": 79948914245,
      "time": 111,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7462957405"
    },
    {
      "job": 79948914208,
      "time": 98,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7462955470"
    }
  ],
  "_buildurl": "https://github.com/r-universe/shabbychef/actions/runs/27088926737",
  "_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",
    "description": "",
    "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": 275,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/madness"
  },
  "_devurl": "https://github.com/shabbychef/madness",
  "_searchresults": 46,
  "_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.330210784571528,
  "_indexed": true,
  "_nocasepkg": "madness",
  "_universes": [
    "shabbychef"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.7",
      "date": "2026-06-07T09:47:11.000Z",
      "distro": "noble",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "ea6516f9fc760d93888bc41adef5b3112f4058d64ea403f007a1ce039f155b83",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/27088926737"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.7",
      "date": "2026-06-07T09:47:12.000Z",
      "distro": "noble",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "0e972d6f8e44263705372dbdd1ca66982511d0a96073cc8501901ea381ed6b28",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/27088926737"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.7",
      "date": "2026-06-07T09:46:36.000Z",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "cf896055b1588478c6a1703dedcde82a1e852f5bf17e459b314e9d672b340113",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/27088926737"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.7",
      "date": "2026-06-07T09:46:44.000Z",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "09aa632302d4b64bfec4b1aa5091a8b0521a52f4815ac0ddaa2c4f3ceaf3bafa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/27088926737"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.7",
      "date": "2026-06-07T09:46:56.000Z",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "cc624451fb68bb9ff245d9962ece3be20b93e77bc246e6cf5e92af4fa4f1279d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/27088926737"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.7",
      "date": "2026-06-07T09:46:45.000Z",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "6e3169a05cb0bc424a7e9c34c45dcaa70b1e551239774cbbdc11e99461dd66ef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/27088926737"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.7",
      "date": "2026-06-07T09:46:33.000Z",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "44a4446a2de830a71af9c3fd20ddbcace2e5beed34140c153460d247e14d34dc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/27088926737"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.7",
      "date": "2026-06-07T09:46:21.000Z",
      "commit": "fb82755d565fbac44ea98e1eb9d2e5c6fa6e2b97",
      "fileid": "c5497ab53d6b4b084bbd05e6bbbfa5eb4f58bfc91050fb9803d347190d34128d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shabbychef/actions/runs/27088926737"
    }
  ]
}