% Sebastian J. Schlecht, Thursday, 16 January 2020
% Aalto University, Finland

\usepackage{amsmath,amsfonts,bm,amsthm}
\usepackage{mathtools}
\usepackage{color}
\usepackage{physics}
\usepackage{nth}
%\usepackage{todonotes}
\usepackage{xparse}

% Variables
\newcommand{\force}[0]{F}
\newcommand{\mass}[0]{m}
\newcommand{\acceleration}[0]{a}
\newcommand{\speed}[0]{v}
\renewcommand{\time}[0]{t}
\newcommand{\timeDerivative}[1]{\dv{#1}{\time}}


% Paired Delimiter
\DeclarePairedDelimiter\paren{\lparen}{\rparen}
\DeclarePairedDelimiter\p{\lparen}{\rparen}
\DeclarePairedDelimiter\magn{\lvert}{\rvert}
\DeclarePairedDelimiter\bracket{[}{]}
\DeclarePairedDelimiter\cbracket{\{}{\}}
\DeclarePairedDelimiter\ceil{\lceil}{\rceil}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
\DeclarePairedDelimiter\euclidean{\lVert}{\rVert_2}
\DeclarePairedDelimiter\frob{\lVert}{\rVert_\textrm{F}}
\DeclarePairedDelimiter\maxnorm{\lVert}{\rVert_\textrm{max}}
\DeclarePairedDelimiter\anynorm{\lVert}{\rVert}

% Fonts
\renewcommand{\vec}[1]{\bm{#1}}
\newcommand{\mat}[1]{\bm{#1}}
\newcommand{\set}[1]{\mathbb{#1}}

% unary operator
\newcommand{\tran}{^{\mathstrut\scriptscriptstyle\top}} 
\newcommand{\der}{'}
\newcommand{\herm}{^{\mathstrut\scriptscriptstyle H}} 
\newcommand{\mean}[1]{\overline{#1}} 
\newcommand{\compconj}[1]{\overline{#1}}
\newcommand{\inv}[1]{{#1}^{-1}}
\newcommand{\invp}[1]{\p*{#1}^{-1}}

% binary operator
\newcommand{\conv}[0]{\mathbin{\ast}} 
\newcommand{\hadamard}[0]{\mathbin{\circ}} 

% math operator
\newcommand{\diag}[1]{\operatorname{diag}\paren*{#1}} 
\newcommand{\cov}[1]{\operatorname{cov}\paren*{#1}} 

\DeclareMathOperator{\sign}{sign} 
\DeclareMathOperator{\sgn}{sgn} 
\DeclareMathOperator{\adj}{adj} 
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\argmax}{arg\,max}



% math
\newcommand{\imag}{\imath} 
\newcommand{\eye}[0]{\mat{I}}
\newcommand{\ones}[0]{\vec{1}}
\newcommand{\BigO}[0]{\mathcal{O}}
\newcommand{\Nset}[0]{\langle N \rangle}
\newcommand{\spectralRadius}[0]{\rho}
\newcommand{\sv}[0]{\sigma}
\newcommand{\detp}[1]{\det\paren*{#1}}
\renewcommand{\ev}[0]{\lambda}

% utility
\newcommand{\comments}[1]{\textcolor{blue}{#1}}

