-
Notifications
You must be signed in to change notification settings - Fork 7
/
macros.tex
84 lines (73 loc) · 2.51 KB
/
macros.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
% THEOREMS
\newtheorem{theorem}{Theorem}
\newtheorem{definition}{Definition}
\newtheorem{example}{Example}
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{claim}[theorem]{Claim}
% SHORTHANDS
\newcommand*{\Th}{^{\textrm{th}}}
\newcommand*{\WLoG}{Without loss of generality}
\newcommand*{\wLoG}{without loss of generality}
\newcommand*{\wrt}{with respect to}
\let\opname\operatorname
% SYMBOLS
\let\eps\epsilon
\newcommand*{\defeq}{:=}
\newcommand*{\plusEq}{\mathrel{{+}{=}}}
\newcommand*{\divEq}{\mathrel{{/}{=}}}
\newcommand*{\defiff}{\;:\Longleftrightarrow\;}
\newcommand*{\alphahat}{\widehat{\alpha}}
\newcommand*{\betahat}{\widehat{\beta}}
\newcommand*{\Ahat}{\widehat{A}}
\newcommand*{\Bhat}{\widehat{B}}
\newcommand*{\Chat}{\widehat{C}}
\newcommand*{\Jhat}{\widehat{J}}
\newcommand*{\Shat}{\widehat{S}}
\newcommand*{\Yhat}{\widehat{Y}}
\newcommand*{\bhat}{\widehat{b}}
\newcommand*{\shat}{\widehat{s}}
\newcommand*{\what}{\widehat{w}}
\newcommand*{\xhat}{\widehat{x}}
\newcommand*{\yhat}{\widehat{y}}
\newcommand*{\zhat}{\widehat{z}}
\newcommand*{\Btild}{\widetilde{B}}
\newcommand*{\Ctild}{\widetilde{C}}
\newcommand*{\Jtild}{\widetilde{J}}
\newcommand*{\Stild}{\widetilde{S}}
\newcommand*{\Ytild}{\widetilde{Y}}
\newcommand*{\btild}{\widetilde{b}}
\newcommand*{\stild}{\widetilde{s}}
\newcommand*{\wtild}{\widetilde{w}}
\newcommand*{\xtild}{\widetilde{x}}
\newcommand*{\ytild}{\widetilde{y}}
\newcommand*{\ztild}{\widetilde{z}}
\newcommand*{\Dcal}{\mathcal{D}}
\newcommand*{\Fcal}{\mathcal{F}}
\newcommand*{\Jcal}{\mathcal{J}}
\newcommand*{\Kcal}{\mathcal{K}}
\newcommand*{\Tcal}{\mathcal{T}}
\newcommand*{\ebar}{\overline{e}}
\newcommand*{\Xbar}{\overline{X}}
\newcommand*{\xbar}{\overline{x}}
\newcommand*{\Ybar}{\overline{Y}}
\newcommand*{\ybar}{\overline{y}}
% MATH
\newcommand*{\floor}[1]{\left\lfloor #1 \right\rfloor}
\newcommand*{\smallfloor}[1]{\lfloor #1 \rfloor}
\newcommand*{\ceil}[1]{\left\lceil #1 \right\rceil}
\newcommand*{\smallceil}[1]{\lceil #1 \rceil}
\newcommand*{\abs}[1]{\left\lvert #1 \right\rvert}
\newcommand*{\smallabs}[1]{\lvert #1 \rvert}
\newcommand*{\norm}[1]{\left\lVert #1 \right\rVert}
\newcommand*{\smallnorm}[1]{\lVert #1 \rVert}
\newcommand*{\Z}{\mathbb{Z}}
\DeclareMathOperator*{\E}{E}
\DeclareMathOperator*{\Var}{Var}
\DeclareMathOperator*{\argmin}{argmin}
\DeclareMathOperator*{\argmax}{argmax}
\DeclareMathOperator{\poly}{poly}
\DeclareMathOperator{\opt}{opt}
\DeclareMathOperator{\argopt}{argopt}
\DeclareMathOperator{\support}{support}
\newcommand*{\OPT}{\mathrm{OPT}}