diff --git a/docs/guide/slq_guide.html b/docs/guide/slq_guide.html index 86b3934..2d70279 100644 --- a/docs/guide/slq_guide.html +++ b/docs/guide/slq_guide.html @@ -375,7 +375,7 @@

SLQ Trace guide

primate offers an extensible implementation of the stochastic Lanczos method (SLQ). There are many algorithms named the “stochastic Lanczos quadrature” in the literature; though each is typically related, they often have distinct goals. Pseudocode for a generic form of SLQ is given below:

-
+
\begin{algorithm} \caption{Stochastic Lanczos Quadrature} \begin{algorithmic} \Input Symmetric operator ($A \in \mathbb{R}^{n \times n}$) \Require Number of queries ($n_v$), Degree of quadrature ($k$) \Function{SLQ}{$A$, $n_v$, $k$} \State $\Gamma \gets 0$ \For{$j = 1, 2, \dots, n_v$} \State $v_i \sim \mathcal{D}$ where $\mathcal{D}$ satisfies $\mathbb{E}(v v^\top) = I$ \State $T^{(j)}(\alpha, \beta)$ $\gets$ $\mathrm{Lanczos}(A,v_j,k+1)$ \State $[\Theta, Y] \gets \mathrm{eigh\_tridiag}(T^{(j)}(\alpha, \beta))$ \State $\tau_i \gets \langle e_1, y_i \rangle$ \State < Do something with the node/weight pairs $(\theta_i, \tau_i^2)$ > \EndFor \EndFunction \end{algorithmic} \end{algorithm}
diff --git a/tools/cibw_macos.sh b/tools/cibw_macos.sh index 2fb35d6..51e4f2e 100644 --- a/tools/cibw_macos.sh +++ b/tools/cibw_macos.sh @@ -1,4 +1,4 @@ -!#/usr/bin/bash +#!/usr/bin/env bash brew install libomp llvm openblas export CC=/usr/bin/clang @@ -14,4 +14,7 @@ if [[ $(uname -m) == "arm64" && "$CIBW_BUILD" == "cp38-macosx_arm64" ]]; then curl -o /tmp/Python38.pkg https://www.python.org/ftp/python/3.8.10/python-3.8.10-macos11.pkg sudo installer -pkg /tmp/Python38.pkg -target / sh "/Applications/Python 3.8/Install Certificates.command" -fi \ No newline at end of file +fi + +echo CXX VARIABLE: +echo $CXX \ No newline at end of file