天天看點

Latex slide中添加算法流程圖

需要添加的宏包:

tex 程式語言:

\begin{algorithm}[H]
	\caption{HOSVD}
	\small
	\KwIn{HOSVD($\mathcal{X},R_{1},R_{2}.....R_{N}$) }
	\KwOut{ $\mathcal{G},A_{(1)},A_{(2)}......A_{(N)} $ }
	
	\For{$k=1$ to $N$ }
	{
		$A_{(n)}\leftarrow R_{n}$left singular matrix of $X_{(n)}$
	}
	$\mathcal{G}=\leftarrow \mathcal{X} \times A_{(1)}^{T} \times A_{(2)}^{T}...... \times A_{(N)}^{T}$\\
	\Return $\mathcal{G},A_{(1)},A_{(2)}......A_{(N)} $
\end{algorithm}
           

效果:

Latex slide中添加算法流程圖

Latex slide完整模闆:

https://download.csdn.net/download/qq_28531269/16140993

繼續閱讀