From a9d82975d946ce31bd7ede3d634888d17c680e07 Mon Sep 17 00:00:00 2001 From: Tim Leslie Date: Sat, 10 Oct 2020 17:40:43 +1100 Subject: [PATCH] Add temp docs --- docs/level1_tmp.ipynb | 50 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 docs/level1_tmp.ipynb diff --git a/docs/level1_tmp.ipynb b/docs/level1_tmp.ipynb new file mode 100644 index 0000000..1bc8054 --- /dev/null +++ b/docs/level1_tmp.ipynb @@ -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 +}