Skip to content

Commit dba3bd5

Browse files
authored
blocked cholesky paper replication materials (#1)
* created subdir for blocked cholesky paper replication materials * gitignore additions for blockedchol * ignore generated tex files in blockecholesky * added draft generation material for blockedcholesky * blockedcholesky: added draft compilation instructions to readme * fix instantiate command in README * added instructions to install jupyter cache. Thanks to Sam Ozminkowski for catching this! * added replication material for JSS submission in blockedcholesky/replication * added latex temp files to gitignore * added instructions to render instead of preview in blockedcholesky/REAMDE.md
1 parent bade39c commit dba3bd5

42 files changed

Lines changed: 5693 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,41 @@ docs/site/
2222
# committed for packages, but should be committed for applications that require a static
2323
# environment.
2424
Manifest.toml
25+
26+
27+
28+
**/.cache
29+
blockedcholesky/BlockedCholeskyMM_files/
30+
31+
32+
33+
34+
_files/
35+
.cache/
36+
blockedcholesky/BlockedCholeskyMM.tex
37+
blockedcholesky/ms.tex
38+
blockedcholesky/orcidlink.sty
39+
blockedcholesky/arxiv.sty
40+
blockedcholesky/jss.bst
41+
blockedcholesky/jss.cls
42+
blockedcholesky/jsslogo.jpg
43+
blockedcholesky/jss-draft.tex
44+
.jupyter_cache/
45+
scratch/
46+
.luarc.json
47+
BlockedCholeskyMM.quarto_ipynb
48+
49+
/.luarc.json
50+
blockedcholesky/BlockedCholeskyMM+jss.tex
51+
blockedcholesky/BlockedCholeskyMM+arxiv.tex
52+
blockedcholesky/BlockedCholeskyMM+arxiv.pdf
53+
blockedcholesky/BlockedCholeskyMM+jss.pdf
54+
55+
56+
**/*.aux
57+
**/*.bbl
58+
**/*.blg
59+
**/*.fdb_latexmk
60+
**/*.fls
61+
**/*.log
62+
**/*.synctex.gz

blockedcholesky/BlockedCholeskyMM.qmd

Lines changed: 1170 additions & 0 deletions
Large diffs are not rendered by default.

blockedcholesky/Makefile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
DOCNAME := BlockedCholeskyMM
2+
TEMPS := jss.bst jss.cls jsslogo.jpg $(DOCNAME).tex ms.tex arxiv.sty orcidlink.sty
3+
OUTFILES := $(TEMPS) $(DOCNAME).pdf $(DOCNAME)+arxiv.tex $(DOCNAME)+arxiv.pdf $(DOCNAME)+jss.tex $(DOCNAME)+jss.pdf
4+
5+
.PHONY: rbench render-arxiv
6+
preview:
7+
quarto preview $(DOCNAME).qmd
8+
9+
render:
10+
quarto render $(DOCNAME).qmd --to jss-pdf+jss
11+
12+
render-arxiv:
13+
sed -i'.bak' -e '/city:/d' $(DOCNAME).qmd
14+
quarto render $(DOCNAME).qmd --to arxiv-pdf+arxiv
15+
mv $(DOCNAME).qmd.bak $(DOCNAME).qmd
16+
17+
clean:
18+
./latex-clean.sh && rm -v $(OUTFILES)
19+
20+
clean-temps:
21+
./latex-clean.sh && rm -v $(TEMPS)
22+
23+
clean-arxiv:
24+
./latex-clean.sh && rm -v ms.tex arxiv.sty orcidlink.sty
25+
26+
clean-replication:
27+
rm -rfv replication
28+
29+
rbench:
30+
R --quiet --no-restore --file=scripts/benchmark.R > scripts/benchmarkoutput.txt
31+
32+
submit-arxiv: rbench render-arxiv
33+
./arxiver.sh

blockedcholesky/Project.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[deps]
2+
AlgebraOfGraphics = "cbdf2221-f076-402e-a563-3d30da359d67"
3+
AppleAccelerate = "13e28ba4-7ad8-5781-acae-3021b1ed3924"
4+
Arrow = "69666777-d1a9-59fb-9406-91d4454c9d45"
5+
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
6+
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
7+
Chairmarks = "0ca39b1e-fe0b-4e98-acfc-b1656634c4de"
8+
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
9+
MKL = "33e6dc65-8f57-5167-99aa-e5a354878fb2"
10+
MKL_jll = "856f044c-d86e-5d09-b602-aeab76dc8ba7"
11+
MixedModels = "ff71e718-51f3-5ec2-a782-8ffcbfa3c316"
12+
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
13+
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
14+
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
15+
16+
[compat]
17+
AlgebraOfGraphics = "0.10.4"
18+
Arrow = "2.8"
19+
CSV = "0.10"
20+
CairoMakie = "0.13.4"
21+
Chairmarks = "1.3"
22+
DataFrames = "1.7"
23+
MixedModels = "4.34"
24+
PrettyTables = "2.4"
25+
Printf = "1"
26+
julia = "1.10"

blockedcholesky/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Replication Materials for "Mixed-model Log-likelihood Evaluation Via a Blocked Cholesky Factorization"
2+
3+
4+
## Steps
5+
6+
- Install `jupyter-cache` using the instructions from the quarto Julia docs [here](https://quarto.org/docs/computations/julia.html#jupyter-cache).
7+
- Install required `Julia` dependencies by running:
8+
```bash
9+
$ julia --project=@. -e "import Pkg; Pkg.instantiate()"
10+
```
11+
- Generate the JSS formatted preview using:
12+
```bash
13+
$ make render
14+
```
15+
- Generate the arXiv formatted version using:
16+
```bash
17+
$ make render-arxiv
18+
```
19+
**Note:** this command re-runs the `R` benchmark script which can take a long time.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
title: Git-Rev
2+
author: Quarto Docs
3+
version: 1.0.0
4+
quarto-required: ">=1.2.222"
5+
contributes:
6+
shortcodes:
7+
- git.lua
8+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
-- from https://quarto.org/docs/extensions/shortcodes.html
2+
function git(command)
3+
local p = io.popen("git " .. command)
4+
local output = p:read('*all')
5+
p:close()
6+
return output
7+
end
8+
9+
-- return a table containing shortcode definitions
10+
-- defining shortcodes this way allows us to create helper
11+
-- functions that are not themselves considered shortcodes
12+
return {
13+
["git-rev"] = function(args, kwargs)
14+
-- command line args
15+
local cmdArgs = ""
16+
local short = pandoc.utils.stringify(kwargs["short"])
17+
if short == "true" then
18+
cmdArgs = cmdArgs .. "--short "
19+
end
20+
21+
-- run the command
22+
local cmd = "rev-parse " .. cmdArgs .. "HEAD"
23+
local rev = git(cmd)
24+
25+
-- return as string
26+
return pandoc.Str(string.gsub(rev, '%s+$', ''))
27+
end
28+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
title: ArXiv Template
2+
author: Mike Mahoney
3+
version: 0.2.3
4+
contributes:
5+
formats:
6+
common:
7+
filters:
8+
- jss.lua
9+
# define below YAML configuration common to all formats
10+
# filters:
11+
# You can include here Lua filters from your extension format
12+
shortcodes:
13+
# You can include here Lua filters defining shortcodes from your extension
14+
- shortcodes.lua
15+
knitr:
16+
opts_chunk:
17+
echo: false
18+
number-sections: true
19+
pdf:
20+
# define default configuration for the pdf version of your format
21+
documentclass: article
22+
linenumbers: false
23+
doublespacing: false
24+
authorcols: false
25+
# Content to add in header that your format is using
26+
header-includes: |
27+
\usepackage{arxiv}
28+
\usepackage{orcidlink}
29+
\usepackage{amsmath}
30+
\usepackage{lmodern}
31+
\usepackage[T1]{fontenc}
32+
\let\proglang=\texttt
33+
\newcommand{\pkg}[1]{{\fontseries{m}\fontseries{b}\selectfont #1}}
34+
template-partials: ["partials/_authors.tex", "partials/title.tex", "partials/before-body.tex"]
35+
mathfont: "Latin Modern Math"
36+
mainfont: "Latin Modern Roman"
37+
format-resources:
38+
# Add here the resources required for the PDF rendering
39+
- arxiv.sty
40+
- orcidlink.sty
41+
cite-method: natbib
42+
natbiboptions: round
43+
html:
44+
toc: true
45+
# Use a CSL file to style (https://www.zotero.org/styles/)
46+
csl: https://www.zotero.org/styles/chicago-author-date-16th-edition

0 commit comments

Comments
 (0)