From: Sam Moore Date: Mon, 7 Jul 2014 11:27:57 +0000 (+0800) Subject: Tidy up documents repo X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=637743d4dec88ef70b163160a76e66279b85624c;p=ipdf%2Fdocuments.git Tidy up documents repo So we can write some more documents. --- diff --git a/.gitignore b/.gitignore index 5860cb3..484890d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,10 @@ *.bbl *.blg *.toc +*.pyg +*.geany +*.dat +*.exe +*.dll data/* +.geany diff --git a/LiteratureNotes.pdf b/LiteratureNotes.pdf index 56772f0..53d3953 100644 Binary files a/LiteratureNotes.pdf and b/LiteratureNotes.pdf differ diff --git a/LiteratureNotes.tex b/LiteratureNotes.tex index 111e220..3f21e37 100644 --- a/LiteratureNotes.tex +++ b/LiteratureNotes.tex @@ -1,54 +1,4 @@ -\documentclass[8pt]{extreport} -\usepackage{graphicx} -\usepackage{caption} -\usepackage{amsmath} % needed for math align -\usepackage{bm} % needed for maths bold face - \usepackage{graphicx} % needed for including graphics e.g. EPS, PS -\usepackage{fancyhdr} % needed for header -%\usepackage{epstopdf} % Converts eps to pdf before including. Do it manually instead. -\usepackage{float} -\usepackage{hyperref} - - \topmargin -1.5cm % read Lamport p.163 - \oddsidemargin -0.04cm % read Lamport p.163 - \evensidemargin -0.04cm % same as oddsidemargin but for left-hand pages - \textwidth 16.59cm - \textheight 21.94cm - %\pagestyle{empty} % Uncomment if don't want page numbers - \parskip 8.2pt % sets spacing between paragraphs - %\renewcommand{\baselinestretch}{1.5} % Uncomment for 1.5 spacing between lines - \parindent 0pt % sets leading space for paragraphs -\linespread{1} - - -\newcommand{\vect}[1]{\boldsymbol{#1}} % Draw a vector -\newcommand{\divg}[1]{\nabla \cdot #1} % divergence -\newcommand{\curl}[1]{\nabla \times #1} % curl -\newcommand{\grad}[1]{\nabla #1} %gradient -\newcommand{\pd}[3][ ]{\frac{\partial^{#1} #2}{\partial #3^{#1}}} %partial derivative -%\newcommand{\d}[3][ ]{\frac{d^{#1} #2}{d #3^{#1}}} %full derivative -\newcommand{\phasor}[1]{\tilde{#1}} % make a phasor -\newcommand{\laplacian}[1]{\nabla^2 {#1}} % The laplacian operator - -\usepackage{color} -\usepackage{listings} - -\definecolor{darkgray}{rgb}{0.95,0.95,0.95} -\definecolor{darkred}{rgb}{0.75,0,0} -\definecolor{darkblue}{rgb}{0,0,0.75} -\definecolor{pink}{rgb}{1,0.5,0.5} -\lstset{language=XML} -\lstset{backgroundcolor=\color{darkgray}} -%\lstset{numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=5pt} -%\lstset{keywordstyle=\color{darkred}\bfseries} -%\lstset{commentstyle=\color{darkblue}} -%\lstset{stringsyle=\color{red}} -%\lstset{showstringspaces=false} -%\lstset{basicstyle=\small} - -\newcommand{\shell}[1]{\texttt{#1}} -\newcommand{\code}[1]{\texttt{#1}} - +\input{template} \begin{document} @@ -349,11 +299,7 @@ and is implemented almost exactly by modern graphics APIs such as \texttt{OpenGL all but guaranteed that this is the method we will be using for compositing document elements in our project. -{\bf Some issues with the statements made here...} -When introducing Bresenham's algorithm below you say modern graphics systems ``will often use Wu's line-drawing algorithm instead, \emph{as it produces antialiased lines}'' (and don't give a citation). Here you say OpenGL uses Porter-Duff compositing ``almost exactly''. But in their introduction they say: `` -\begin{enumerate} -\ \section{Bresenham's Algorithm: Algorithm for computer control of a digital plotter \cite{bresenham1965algorithm}} Bresenham's line drawing algorithm is a fast, high quality line rasterization @@ -437,7 +383,7 @@ In \cite{kilgard2012gpu}, Kilgard mentions that Glitz has been abandoned. He des %% Sam again -\section{Boost Multiprecision Library \cite{boost_multiprecision}} +\section{Boost Multiprecision Library} \begin{itemize} \item ``The Multiprecision Library provides integer, rational and floating-point types in C++ that have more range and precision than C++'s ordinary built-in types.'' @@ -731,7 +677,7 @@ Example of XML parsing using pugixml is in \shell{code/src/tests/xml.cpp} \begin{figure}[H] \centering -\begin{lstlisting}[language=XML,basicstyle=\ttfamily] +\begin{minted}{xml} @@ -744,7 +690,7 @@ Example of XML parsing using pugixml is in \shell{code/src/tests/xml.cpp} -\end{lstlisting} +\end{minted} \includegraphics[width=0.6\textwidth]{references/pugixmlDOM-dom_tree.png} \caption{Tree representation of the above listing \cite{pugixmlDOM}} @@ -848,12 +794,12 @@ Issues considered are: Rounding rules, Exception handling and NaNs (eg: The payl An example is this Fortran compiler ``nasty bug'' where the compiler replaces $s$ with $x$ in line 4 and thus a rounding operation is lost. -\begin{lstlisting}[language=Fortran, basicstyle=\ttfamily] +\begin{minted}{Fortran} real(8) :: x, y % double precision (or extended as real(12)) real(4) :: s, t % single precision s = x % s should be rounded t = (s - y) / (...) % Compiler incorrectly replaces s with x in this line -\end{lstlisting} +\end{minted} \subsection{The Baleful Influence of Benchmarks \cite{kahan1996ieee754} pg 20} diff --git a/Makefile b/Makefile index 4a62ee5..707a63c 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ TARGETS = LiteratureNotes.pdf -all : $(TARGETS) clean +all : $(TARGETS) rebuild : make clean_full @@ -8,10 +8,10 @@ rebuild : %.pdf : %.tex papers.bib # Incoming wall of text - pdflatex $* + pdflatex -shell-escape $* bibtex $* - pdflatex $* - pdflatex $* + pdflatex -shell-escape $* + pdflatex -shell-escape $* clean : # LaTeX makes way too many output files; get rid of them all diff --git a/figures/koch.svg b/figures/koch.svg new file mode 100644 index 0000000..12bb519 --- /dev/null +++ b/figures/koch.svg @@ -0,0 +1 @@ + + + diff --git a/papers.bib b/papers.bib index d5a2511..362dedf 100644 --- a/papers.bib +++ b/papers.bib @@ -1137,3 +1137,13 @@ pages={327-341}, keywords={Calculators;Character recognition;Engine cylinders;Engineering drawings;Hardware;History;Information analysis;Information processing;Permission;Time sharing computer systems}, doi={10.1109/MAHC.1982.10042}, ISSN={0164-1239},} + +@article{heckmann1998bigintegers, + author = "Reinhold Heckmann", + title = "Big Integers and Complexity Issues in Exact Real Arithmetic", + journal = "Electronic Notes in Theoretical Computer Science", + Volume = 13, + year = 1998, + pages = 69, + doi = "10.1016/S1571-0661(05)80215-4" +} diff --git a/references/bryant2005x86-64programming.pdf b/references/bryant2005x86-64programming.pdf new file mode 100644 index 0000000..bb08d1a Binary files /dev/null and b/references/bryant2005x86-64programming.pdf differ diff --git a/references/ferrari1999tiny-guide-to-x86.pdf b/references/ferrari1999tiny-guide-to-x86.pdf new file mode 100644 index 0000000..75da4c2 Binary files /dev/null and b/references/ferrari1999tiny-guide-to-x86.pdf differ diff --git a/references/gmp-man-6.0.0a.pdf b/references/gmp-man-6.0.0a.pdf new file mode 100644 index 0000000..6791d93 Binary files /dev/null and b/references/gmp-man-6.0.0a.pdf differ diff --git a/references/heckmann1998bigintegers.pdf b/references/heckmann1998bigintegers.pdf new file mode 100644 index 0000000..2780826 Binary files /dev/null and b/references/heckmann1998bigintegers.pdf differ diff --git a/references/matz2013amd64abi.pdf b/references/matz2013amd64abi.pdf new file mode 100644 index 0000000..22942fe Binary files /dev/null and b/references/matz2013amd64abi.pdf differ diff --git a/references/pstutorial.pdf b/references/pstutorial.pdf new file mode 100644 index 0000000..50f1bb1 Binary files /dev/null and b/references/pstutorial.pdf differ diff --git a/template.tex b/template.tex new file mode 100644 index 0000000..1c06233 --- /dev/null +++ b/template.tex @@ -0,0 +1,56 @@ +\documentclass[8pt]{extreport} +\usepackage{makeidx} +\usepackage{graphicx} +\usepackage{caption} +\usepackage{amsmath} % needed for math align +\usepackage{bm} % needed for maths bold face + \usepackage{graphicx} % needed for including graphics e.g. EPS, PS +\usepackage{fancyhdr} % needed for header +%\usepackage{epstopdf} % Converts eps to pdf before including. Do it manually instead. +\usepackage{float} +\usepackage{hyperref} +\usepackage{setspace} +\usepackage{anyfontsize} +\usepackage{mdframed} +\usepackage[compact]{titlesec} +\usepackage[table]{xcolor} + + \topmargin -1.5cm % read Lamport p.163 + \oddsidemargin -0.04cm % read Lamport p.163 + \evensidemargin -0.04cm % same as oddsidemargin but for left-hand pages + \textwidth 16.59cm + \textheight 21.94cm + %\pagestyle{empty} % Uncomment if don't want page numbers + \parskip 8.2pt % sets spacing between paragraphs + %\renewcommand{\baselinestretch}{1.5} % Uncomment for 1.5 spacing between lines + \parindent 0pt % sets leading space for paragraphs +\linespread{1} + + +\newcommand{\vect}[1]{\boldsymbol{#1}} % Draw a vector +\newcommand{\divg}[1]{\nabla \cdot #1} % divergence +\newcommand{\curl}[1]{\nabla \times #1} % curl +\newcommand{\grad}[1]{\nabla #1} %gradient +\newcommand{\pd}[3][ ]{\frac{\partial^{#1} #2}{\partial #3^{#1}}} %partial derivative +%\newcommand{\d}[3][ ]{\frac{d^{#1} #2}{d #3^{#1}}} %full derivative +\newcommand{\phasor}[1]{\tilde{#1}} % make a phasor +\newcommand{\laplacian}[1]{\nabla^2 {#1}} % The laplacian operator + +\usepackage{color} + +\usepackage{minted} % For code snippets +\AtBeginEnvironment{minted}{\singlespacing\fontsize{7}{7}\selectfont} +\definecolor{pink}{rgb}{1.0,0.5,0.5} +\definecolor{darkgray}{rgb}{0.1,0.1,0.1} +\definecolor{lightgray}{rgb}{0.95,0.95,0.95} +\definecolor{gray}{rgb}{0.5,0.5,0.5} +\definecolor{darkred}{rgb}{0.75,0,0} +\definecolor{darkblue}{rgb}{0,0,0.35} +\definecolor{green}{rgb}{0,0.70,0} +\definecolor{black}{rgb}{0,0,0} + +\newcommand{\shell}[1]{\texttt{#1}} +\newcommand{\code}[1]{\texttt{#1}} +\renewcommand{\url}[1]{$\langle$\href{#1}{\underline{\color{blue}{#1}}}$\rangle$} + +