Skip to content

Commit

Permalink
Add temp docs
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Oct 10, 2020
1 parent 6f1abd9 commit a9d8297
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions docs/level1_tmp.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Level 1\n",
"\n",
"| single (s) | double (d) | single complex (c) | double complex (z) | |\n",
"| :---: | :---: | :---: | :---: | :---: |\n",
"| scopy | [`dcopy`](./dcopy.ipynb) | ccopy | zcopy | $\\mathbf{y} \\leftarrow \\mathbf{x}$ |\n",
"| sswap | dswap | cswap | zswap | $\\mathbf{x}, \\mathbf{y} \\leftarrow \\mathbf{y}, \\mathbf{x}$ |\n",
"| sscal | dscal | cscal (csscal) | zscal (zdscal) | $x \\leftarrow \\alpha\\mathbf{x}$ |\n",
"| saxpy | daxpy | caxpy | zaxpy | $\\mathbf{y} \\leftarrow \\alpha\\mathbf{x} + \\mathbf{y}$ |\n",
"| | | scabs1 | dcabs1 | $\\left\\vert\\mathrm{Re}(z_i)\\right\\vert + \\left\\vert\\mathrm{Im}(z_i)\\right\\vert$ |\n",
"| sasum | dasum | | | $\\sum_i^N\\left\\vert x_i\\right\\vert $ |\n",
"| | | scasum | dzasum | $\\sum_i^N\\left\\vert\\mathrm{Re}(z_i)\\right\\vert + \\left\\vert\\mathrm{Im}(z_i)\\right\\vert$ |\n",
"| sdot (sdsdot, dsdot) | ddot | cdotu | zdotu | $\\mathbf{x}\\cdot\\mathbf{y}$ |\n",
"| | | cdotc | zdotc | $\\mathbf{x}^H\\cdot\\mathbf{y}$ |\n",
"| snrm2 | dnrm2 | | | $\\sqrt{\\mathbf{x}\\cdot\\mathbf{x}} = \\left\\|\\mathbf{x}\\right\\|_2$ |\n",
"| | | scnrm2 | dznrm2 | $\\sqrt{\\mathbf{z}^H\\cdot\\mathbf{z}} = \\left\\|\\mathbf{z}\\right\\|_2$ |\n",
"| srot | drot | csrot | zdrot | $\\begin{bmatrix}x_i \\\\ y_i\\end{bmatrix} \\leftarrow \\begin{pmatrix}c & s \\\\ -s & c \\end{pmatrix} \\cdot \\begin{bmatrix}x_i \\\\ y_i \\end{bmatrix}$ |\n",
"| srotg | drotg | crotg | zrotg | $c \\leftarrow a/r\\\\ s \\leftarrow b/r \\\\ a \\leftarrow r \\\\ b \\leftarrow \"z\"$ |\n",
"| srotm | drotm | | | $\\begin{bmatrix}x_i \\\\ y_i\\end{bmatrix} \\leftarrow \\begin{pmatrix}h_1 & h_2 \\\\ h_3 & h_4\\end{pmatrix} \\cdot \\begin{bmatrix} x_i \\\\ y_i\\end{bmatrix}$ |\n",
"| srotmg | drotmg | | | |\n"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.0"
}
},
"nbformat": 4,
"nbformat_minor": 4
}

0 comments on commit a9d8297

Please sign in to comment.