From 0585ef7772b1088618d4ae6b511332bbba1bd3e3 Mon Sep 17 00:00:00 2001 From: Erik Welch Date: Thu, 29 Sep 2022 16:22:18 -0500 Subject: [PATCH] Render aggregator notebook (#281) * Render aggregator notebook --- notebooks/Aggregators.ipynb | 40672 +++++++++++++++++++++++++++++++++- 1 file changed, 40611 insertions(+), 61 deletions(-) diff --git a/notebooks/Aggregators.ipynb b/notebooks/Aggregators.ipynb index 2ffc32549..9cbc56544 100644 --- a/notebooks/Aggregators.ipynb +++ b/notebooks/Aggregators.ipynb @@ -12,7 +12,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "id": "f2c92922", "metadata": {}, "outputs": [], @@ -23,10 +23,217 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "id": "e8e9833e", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "
A
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Matrix
nvals
nrows
ncols
dtype
format
1176INT32bitmapr
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
012345
023
18
21
333
4
517
6573
\n", + "
" + ], + "text/plain": [ + "\"A\" nvals nrows ncols dtype format\n", + "gb.Matrix 11 7 6 INT32 bitmapr\n", + "----------------------------------------------\n", + " 0 1 2 3 4 5\n", + "0 2 3 \n", + "1 8 \n", + "2 1\n", + "3 3 3 \n", + "4 \n", + "5 1 7\n", + "6 5 7 3 " + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "# We can create a recorder and have it be alive until we call `rec.stop()`.\n", "# One can do `rec.clear()` to clear the data.\n", @@ -43,20 +250,440 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "id": "973a53b5", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Matrix_new(&A, GrB_INT32, 7, 6);\n",
+       "GrB_Matrix_build_INT32(A, (GrB_Index[]){3, 0, 3, 5, 6, 0, 6, 1, 6, 2, 5}, (GrB_Index[]){0, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5}, (int32_t[]){3, 2, 3, 1, 5, 3, 7, 8, 3, 1, 7}, 11, GrB_PLUS_INT32);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Matrix_new(&A, GrB_INT32, 7, 6);\n", + "GrB_Matrix_build_INT32(A, (GrB_Index[]){3, 0, 3, 5, 6, 0, 6, 1, 6, 2, 5}, (GrB_Index[]){0, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5}, (int32_t[]){3, 2, 3, 1, 5, 3, 7, 8, 3, 1, 7}, 11, GrB_PLUS_INT32);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Matrix_new(&A, GrB_INT32, 7, 6);\n", + " GrB_Matrix_build_INT32(A, (GrB_Index[]){3, 0, 3, 5, 6, 0, 6, 1, 6, 2, 5}, (GrB_Index[]){0, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5}, (int32_t[]){3, 2, 3, 1, 5, 3, 7, 8, 3, 1, 7}, 11, GrB_PLUS_INT32);" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "rec" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "id": "9453edc9", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "
v0
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
281313
\n", + "
" + ], + "text/plain": [ + "\"v_0\" nvals size dtype format\n", + "gb.Vector 6 7 INT32 bitmap\n", + "-------------------------------------\n", + "index 0 1 2 3 4 5 6\n", + "value 2 8 1 3 1 3" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "# You can also record within a context.\n", "# Only one recorder records at a given time, so `rec` does not save these calls\n", @@ -67,10 +694,283 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "id": "f86bad7c", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&v_0, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(v_0, NULL, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&v_0, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(v_0, NULL, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (not recording)\n", + "---------------------------\n", + " GrB_Vector_new(&v_0, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(v_0, NULL, NULL, GrB_MIN_MONOID_INT32, A, NULL);" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "# Here we see our recipe simply used a monoid as one would expect for MIN\n", "rec2" @@ -78,10 +978,155 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "id": "76f7e5a7", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "
v1
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
66INT32full
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
012345
113222
\n", + "
" + ], + "text/plain": [ + "\"v_1\" nvals size dtype format\n", + "gb.Vector 6 6 INT32 full\n", + "-------------------------------------\n", + "index 0 1 2 3 4 5\n", + "value 1 1 3 2 2 2" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "rec.clear()\n", "A.reduce_columnwise(agg.count).new()" @@ -97,7 +1142,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "id": "e22fc8a9", "metadata": {}, "outputs": [], @@ -107,12 +1152,27131 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "id": "5d93e3c7", "metadata": { - "scrolled": true + "scrolled": false }, - "outputs": [], + "outputs": [ + { + "data": { + "text/markdown": [ + "# L0norm" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
211223
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_3, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_3, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(rowwise, NULL, NULL, GxB_PLUS_ISNE_INT32, A, v_3, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_3, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_3, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(rowwise, NULL, NULL, GxB_PLUS_ISNE_INT32, A, v_3, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_3, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_3, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(rowwise, NULL, NULL, GxB_PLUS_ISNE_INT32, A, v_3, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
11INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Vector_new(&v_4, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_4, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_5, GrB_INT32, 7);\n",
+       "GrB_mxv(v_5, NULL, NULL, GxB_PLUS_ISNE_INT32, A, v_4, NULL);\n",
+       "GrB_Matrix_new(&M_0, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_0, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_6, GrB_INT32, 1);\n",
+       "GrB_vxm(v_6, NULL, NULL, GxB_PLUS_FIRST_INT32, v_5, M_0, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_6, 0);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Vector_new(&v_4, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_4, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_5, GrB_INT32, 7);\n", + "GrB_mxv(v_5, NULL, NULL, GxB_PLUS_ISNE_INT32, A, v_4, NULL);\n", + "GrB_Matrix_new(&M_0, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_0, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_6, GrB_INT32, 1);\n", + "GrB_vxm(v_6, NULL, NULL, GxB_PLUS_FIRST_INT32, v_5, M_0, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_6, 0);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Vector_new(&v_4, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_4, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_5, GrB_INT32, 7);\n", + " GrB_mxv(v_5, NULL, NULL, GxB_PLUS_ISNE_INT32, A, v_4, NULL);\n", + " GrB_Matrix_new(&M_0, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_0, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_6, GrB_INT32, 1);\n", + " GrB_vxm(v_6, NULL, NULL, GxB_PLUS_FIRST_INT32, v_5, M_0, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_6, 0);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# L1norm" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
5816815
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_7, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_7, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(rowwise, NULL, NULL, plus_absfirst_INT32, A, v_7, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_7, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_7, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(rowwise, NULL, NULL, plus_absfirst_INT32, A, v_7, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_7, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_7, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(rowwise, NULL, NULL, plus_absfirst_INT32, A, v_7, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
43INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Vector_new(&v_8, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_8, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_9, GrB_INT32, 7);\n",
+       "GrB_mxv(v_9, NULL, NULL, plus_absfirst_INT32, A, v_8, NULL);\n",
+       "GrB_Matrix_new(&M_1, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_1, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_10, GrB_INT32, 1);\n",
+       "GrB_vxm(v_10, NULL, NULL, GxB_PLUS_FIRST_INT32, v_9, M_1, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_10, 0);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Vector_new(&v_8, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_8, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_9, GrB_INT32, 7);\n", + "GrB_mxv(v_9, NULL, NULL, plus_absfirst_INT32, A, v_8, NULL);\n", + "GrB_Matrix_new(&M_1, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_1, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_10, GrB_INT32, 1);\n", + "GrB_vxm(v_10, NULL, NULL, GxB_PLUS_FIRST_INT32, v_9, M_1, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_10, 0);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Vector_new(&v_8, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_8, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_9, GrB_INT32, 7);\n", + " GrB_mxv(v_9, NULL, NULL, plus_absfirst_INT32, A, v_8, NULL);\n", + " GrB_Matrix_new(&M_1, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_1, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_10, GrB_INT32, 1);\n", + " GrB_vxm(v_10, NULL, NULL, GxB_PLUS_FIRST_INT32, v_9, M_1, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_10, 0);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# L2norm" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67FP64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
3.6055518.01.04.2426417.0710689.110434
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_11, GrB_INT64, 7);\n",
+       "GrB_Vector_new(&v_12, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_12, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_11, NULL, NULL, plus_pow_INT64, A, v_12, NULL);\n",
+       "GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_11, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_11, GrB_INT64, 7);\n", + "GrB_Vector_new(&v_12, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_12, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_11, NULL, NULL, plus_pow_INT64, A, v_12, NULL);\n", + "GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_11, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_11, GrB_INT64, 7);\n", + " GrB_Vector_new(&v_12, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_12, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_11, NULL, NULL, plus_pow_INT64, A, v_12, NULL);\n", + " GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_11, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
15.132745950421556FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_FP64);\n",
+       "GrB_Vector_new(&v_13, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_13, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_14, GrB_INT64, 7);\n",
+       "GrB_mxv(v_14, NULL, NULL, plus_pow_INT64, A, v_13, NULL);\n",
+       "GrB_Matrix_new(&M_2, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_2, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_15, GrB_INT64, 1);\n",
+       "GrB_vxm(v_15, NULL, NULL, GxB_PLUS_FIRST_INT64, v_14, M_2, NULL);\n",
+       "GrB_Vector_new(&v_16, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_16, NULL, NULL, GxB_SQRT_FP64, v_15, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_16, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_FP64);\n", + "GrB_Vector_new(&v_13, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_13, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_14, GrB_INT64, 7);\n", + "GrB_mxv(v_14, NULL, NULL, plus_pow_INT64, A, v_13, NULL);\n", + "GrB_Matrix_new(&M_2, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_2, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_15, GrB_INT64, 1);\n", + "GrB_vxm(v_15, NULL, NULL, GxB_PLUS_FIRST_INT64, v_14, M_2, NULL);\n", + "GrB_Vector_new(&v_16, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_16, NULL, NULL, GxB_SQRT_FP64, v_15, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_16, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_FP64);\n", + " GrB_Vector_new(&v_13, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_13, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_14, GrB_INT64, 7);\n", + " GrB_mxv(v_14, NULL, NULL, plus_pow_INT64, A, v_13, NULL);\n", + " GrB_Matrix_new(&M_2, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_2, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_15, GrB_INT64, 1);\n", + " GrB_vxm(v_15, NULL, NULL, GxB_PLUS_FIRST_INT64, v_14, M_2, NULL);\n", + " GrB_Vector_new(&v_16, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_16, NULL, NULL, GxB_SQRT_FP64, v_15, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_16, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# Linfnorm" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
381377
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_17, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_17, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(rowwise, NULL, NULL, max_absfirst_INT32, A, v_17, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_17, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_17, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(rowwise, NULL, NULL, max_absfirst_INT32, A, v_17, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_17, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_17, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(rowwise, NULL, NULL, max_absfirst_INT32, A, v_17, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
8INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Vector_new(&v_18, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_18, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_19, GrB_INT32, 7);\n",
+       "GrB_mxv(v_19, NULL, NULL, max_absfirst_INT32, A, v_18, NULL);\n",
+       "GrB_Matrix_new(&M_3, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_3, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_20, GrB_INT32, 1);\n",
+       "GrB_vxm(v_20, NULL, NULL, GrB_MAX_FIRST_SEMIRING_INT32, v_19, M_3, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_20, 0);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Vector_new(&v_18, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_18, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_19, GrB_INT32, 7);\n", + "GrB_mxv(v_19, NULL, NULL, max_absfirst_INT32, A, v_18, NULL);\n", + "GrB_Matrix_new(&M_3, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_3, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_20, GrB_INT32, 1);\n", + "GrB_vxm(v_20, NULL, NULL, GrB_MAX_FIRST_SEMIRING_INT32, v_19, M_3, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_20, 0);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Vector_new(&v_18, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_18, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_19, GrB_INT32, 7);\n", + " GrB_mxv(v_19, NULL, NULL, max_absfirst_INT32, A, v_18, NULL);\n", + " GrB_Matrix_new(&M_3, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_3, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_20, GrB_INT32, 1);\n", + " GrB_vxm(v_20, NULL, NULL, GrB_MAX_FIRST_SEMIRING_INT32, v_19, M_3, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_20, 0);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# all" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67BOOLbitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
TrueTrueTrueTrueTrueTrue
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_BOOL, 7);\n",
+       "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_LAND_MONOID_BOOL, M_4, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_BOOL, 7);\n", + "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_LAND_MONOID_BOOL, M_4, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_BOOL, 7);\n", + " GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_LAND_MONOID_BOOL, M_4, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
TrueBOOL
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_BOOL);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_LAND_MONOID_BOOL, M_4, NULL);\n",
+       "GrB_Scalar_extractElement_BOOL(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_BOOL);\n", + "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_LAND_MONOID_BOOL, M_4, NULL);\n", + "GrB_Scalar_extractElement_BOOL(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_BOOL);\n", + " GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_LAND_MONOID_BOOL, M_4, NULL);\n", + " GrB_Scalar_extractElement_BOOL(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# any" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67BOOLbitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
TrueTrueTrueTrueTrueTrue
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_BOOL, 7);\n",
+       "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_LOR_MONOID_BOOL, M_5, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_BOOL, 7);\n", + "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_LOR_MONOID_BOOL, M_5, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_BOOL, 7);\n", + " GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_LOR_MONOID_BOOL, M_5, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
TrueBOOL
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_BOOL);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_LOR_MONOID_BOOL, M_5, NULL);\n",
+       "GrB_Scalar_extractElement_BOOL(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_BOOL);\n", + "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_LOR_MONOID_BOOL, M_5, NULL);\n", + "GrB_Scalar_extractElement_BOOL(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_BOOL);\n", + " GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_LOR_MONOID_BOOL, M_5, NULL);\n", + " GrB_Scalar_extractElement_BOOL(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# any_value" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
281315
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GxB_ANY_INT32_MONOID, A, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GxB_ANY_INT32_MONOID, A, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GxB_ANY_INT32_MONOID, A, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
2INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GxB_ANY_INT32_MONOID, A, NULL);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GxB_ANY_INT32_MONOID, A, NULL);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GxB_ANY_INT32_MONOID, A, NULL);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# argmax" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
345053
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_21, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(v_21, NULL, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n",
+       "GrB_Matrix_diag(&M_6, v_21, 0);\n",
+       "GrB_Matrix_new(&M_7, GrB_BOOL, 7, 6);\n",
+       "GrB_mxm(M_7, NULL, NULL, GxB_ANY_EQ_INT32, M_6, A, NULL);\n",
+       "GrB_Matrix_assign(M_7, M_7, NULL, M_7, GrB_ALL, 7, GrB_ALL, 6, GrB_DESC_R);\n",
+       "GrB_Vector_new(&v_22, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_22, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(rowwise, NULL, NULL, GxB_MIN_FIRSTJ_INT64, M_7, v_22, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_21, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(v_21, NULL, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n", + "GrB_Matrix_diag(&M_6, v_21, 0);\n", + "GrB_Matrix_new(&M_7, GrB_BOOL, 7, 6);\n", + "GrB_mxm(M_7, NULL, NULL, GxB_ANY_EQ_INT32, M_6, A, NULL);\n", + "GrB_Matrix_assign(M_7, M_7, NULL, M_7, GrB_ALL, 7, GrB_ALL, 6, GrB_DESC_R);\n", + "GrB_Vector_new(&v_22, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_22, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(rowwise, NULL, NULL, GxB_MIN_FIRSTJ_INT64, M_7, v_22, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_21, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(v_21, NULL, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n", + " GrB_Matrix_diag(&M_6, v_21, 0);\n", + " GrB_Matrix_new(&M_7, GrB_BOOL, 7, 6);\n", + " GrB_mxm(M_7, NULL, NULL, GxB_ANY_EQ_INT32, M_6, A, NULL);\n", + " GrB_Matrix_assign(M_7, M_7, NULL, M_7, GrB_ALL, 7, GrB_ALL, 6, GrB_DESC_R);\n", + " GrB_Vector_new(&v_22, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_22, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(rowwise, NULL, NULL, GxB_MIN_FIRSTJ_INT64, M_7, v_22, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# argmin" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
145024
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_23, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(v_23, NULL, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n",
+       "GrB_Matrix_diag(&M_8, v_23, 0);\n",
+       "GrB_Matrix_new(&M_9, GrB_BOOL, 7, 6);\n",
+       "GrB_mxm(M_9, NULL, NULL, GxB_ANY_EQ_INT32, M_8, A, NULL);\n",
+       "GrB_Matrix_assign(M_9, M_9, NULL, M_9, GrB_ALL, 7, GrB_ALL, 6, GrB_DESC_R);\n",
+       "GrB_Vector_new(&v_24, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_24, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(rowwise, NULL, NULL, GxB_MIN_FIRSTJ_INT64, M_9, v_24, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_23, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(v_23, NULL, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n", + "GrB_Matrix_diag(&M_8, v_23, 0);\n", + "GrB_Matrix_new(&M_9, GrB_BOOL, 7, 6);\n", + "GrB_mxm(M_9, NULL, NULL, GxB_ANY_EQ_INT32, M_8, A, NULL);\n", + "GrB_Matrix_assign(M_9, M_9, NULL, M_9, GrB_ALL, 7, GrB_ALL, 6, GrB_DESC_R);\n", + "GrB_Vector_new(&v_24, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_24, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(rowwise, NULL, NULL, GxB_MIN_FIRSTJ_INT64, M_9, v_24, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_23, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(v_23, NULL, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n", + " GrB_Matrix_diag(&M_8, v_23, 0);\n", + " GrB_Matrix_new(&M_9, GrB_BOOL, 7, 6);\n", + " GrB_mxm(M_9, NULL, NULL, GxB_ANY_EQ_INT32, M_8, A, NULL);\n", + " GrB_Matrix_assign(M_9, M_9, NULL, M_9, GrB_ALL, 7, GrB_ALL, 6, GrB_DESC_R);\n", + " GrB_Vector_new(&v_24, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_24, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(rowwise, NULL, NULL, GxB_MIN_FIRSTJ_INT64, M_9, v_24, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# bitwise_all" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67UINT64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
281311
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_UINT64, 7);\n",
+       "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GxB_BAND_UINT64_MONOID, M_10, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_UINT64, 7);\n", + "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GxB_BAND_UINT64_MONOID, M_10, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_UINT64, 7);\n", + " GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GxB_BAND_UINT64_MONOID, M_10, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
0UINT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_UINT64);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GxB_BAND_UINT64_MONOID, M_10, NULL);\n",
+       "GrB_Scalar_extractElement_UINT64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_UINT64);\n", + "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GxB_BAND_UINT64_MONOID, M_10, NULL);\n", + "GrB_Scalar_extractElement_UINT64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_UINT64);\n", + " GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GxB_BAND_UINT64_MONOID, M_10, NULL);\n", + " GrB_Scalar_extractElement_UINT64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# bitwise_any" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67UINT64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
381377
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_UINT64, 7);\n",
+       "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GxB_BOR_UINT64_MONOID, M_11, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_UINT64, 7);\n", + "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GxB_BOR_UINT64_MONOID, M_11, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_UINT64, 7);\n", + " GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GxB_BOR_UINT64_MONOID, M_11, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
15UINT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_UINT64);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GxB_BOR_UINT64_MONOID, M_11, NULL);\n",
+       "GrB_Scalar_extractElement_UINT64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_UINT64);\n", + "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GxB_BOR_UINT64_MONOID, M_11, NULL);\n", + "GrB_Scalar_extractElement_UINT64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_UINT64);\n", + " GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GxB_BOR_UINT64_MONOID, M_11, NULL);\n", + " GrB_Scalar_extractElement_UINT64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# count" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
211223
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_25, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_25, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(rowwise, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_25, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_25, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_25, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(rowwise, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_25, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_25, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_25, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(rowwise, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_25, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
11INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Vector_new(&v_26, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_26, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_27, GrB_INT64, 7);\n",
+       "GrB_mxv(v_27, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_26, NULL);\n",
+       "GrB_Matrix_new(&M_12, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_12, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_28, GrB_INT64, 1);\n",
+       "GrB_vxm(v_28, NULL, NULL, GxB_PLUS_FIRST_INT64, v_27, M_12, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_28, 0);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Vector_new(&v_26, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_26, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_27, GrB_INT64, 7);\n", + "GrB_mxv(v_27, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_26, NULL);\n", + "GrB_Matrix_new(&M_12, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_12, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_28, GrB_INT64, 1);\n", + "GrB_vxm(v_28, NULL, NULL, GxB_PLUS_FIRST_INT64, v_27, M_12, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_28, 0);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Vector_new(&v_26, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_26, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_27, GrB_INT64, 7);\n", + " GrB_mxv(v_27, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_26, NULL);\n", + " GrB_Matrix_new(&M_12, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_12, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_28, GrB_INT64, 1);\n", + " GrB_vxm(v_28, NULL, NULL, GxB_PLUS_FIRST_INT64, v_27, M_12, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_28, 0);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# count_nonzero" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
211223
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_29, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_29, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(rowwise, NULL, NULL, GxB_PLUS_ISNE_INT32, A, v_29, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_29, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_29, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(rowwise, NULL, NULL, GxB_PLUS_ISNE_INT32, A, v_29, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_29, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_29, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(rowwise, NULL, NULL, GxB_PLUS_ISNE_INT32, A, v_29, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
11INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Vector_new(&v_30, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_30, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_31, GrB_INT32, 7);\n",
+       "GrB_mxv(v_31, NULL, NULL, GxB_PLUS_ISNE_INT32, A, v_30, NULL);\n",
+       "GrB_Matrix_new(&M_13, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_13, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_32, GrB_INT32, 1);\n",
+       "GrB_vxm(v_32, NULL, NULL, GxB_PLUS_FIRST_INT32, v_31, M_13, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_32, 0);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Vector_new(&v_30, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_30, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_31, GrB_INT32, 7);\n", + "GrB_mxv(v_31, NULL, NULL, GxB_PLUS_ISNE_INT32, A, v_30, NULL);\n", + "GrB_Matrix_new(&M_13, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_13, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_32, GrB_INT32, 1);\n", + "GrB_vxm(v_32, NULL, NULL, GxB_PLUS_FIRST_INT32, v_31, M_13, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_32, 0);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Vector_new(&v_30, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_30, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_31, GrB_INT32, 7);\n", + " GrB_mxv(v_31, NULL, NULL, GxB_PLUS_ISNE_INT32, A, v_30, NULL);\n", + " GrB_Matrix_new(&M_13, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_13, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_32, GrB_INT32, 1);\n", + " GrB_vxm(v_32, NULL, NULL, GxB_PLUS_FIRST_INT32, v_31, M_13, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_32, 0);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# count_zero" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
000000
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_33, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_33, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(rowwise, NULL, NULL, GxB_PLUS_ISEQ_INT32, A, v_33, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_33, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_33, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(rowwise, NULL, NULL, GxB_PLUS_ISEQ_INT32, A, v_33, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_33, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_33, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(rowwise, NULL, NULL, GxB_PLUS_ISEQ_INT32, A, v_33, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
0INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Vector_new(&v_34, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_34, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_35, GrB_INT32, 7);\n",
+       "GrB_mxv(v_35, NULL, NULL, GxB_PLUS_ISEQ_INT32, A, v_34, NULL);\n",
+       "GrB_Matrix_new(&M_14, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_14, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_36, GrB_INT32, 1);\n",
+       "GrB_vxm(v_36, NULL, NULL, GxB_PLUS_FIRST_INT32, v_35, M_14, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_36, 0);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Vector_new(&v_34, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_34, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_35, GrB_INT32, 7);\n", + "GrB_mxv(v_35, NULL, NULL, GxB_PLUS_ISEQ_INT32, A, v_34, NULL);\n", + "GrB_Matrix_new(&M_14, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_14, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_36, GrB_INT32, 1);\n", + "GrB_vxm(v_36, NULL, NULL, GxB_PLUS_FIRST_INT32, v_35, M_14, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_36, 0);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Vector_new(&v_34, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_34, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_35, GrB_INT32, 7);\n", + " GrB_mxv(v_35, NULL, NULL, GxB_PLUS_ISEQ_INT32, A, v_34, NULL);\n", + " GrB_Matrix_new(&M_14, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_14, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_36, GrB_INT32, 1);\n", + " GrB_vxm(v_36, NULL, NULL, GxB_PLUS_FIRST_INT32, v_35, M_14, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_36, 0);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# exists" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap (iso)
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
111111
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_37, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_37, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(rowwise, NULL, NULL, GxB_ANY_PAIR_INT64, A, v_37, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_37, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_37, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(rowwise, NULL, NULL, GxB_ANY_PAIR_INT64, A, v_37, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_37, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_37, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(rowwise, NULL, NULL, GxB_ANY_PAIR_INT64, A, v_37, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
1INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Vector_new(&v_38, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_38, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_39, GrB_INT64, 7);\n",
+       "GrB_mxv(v_39, NULL, NULL, GxB_ANY_PAIR_INT64, A, v_38, NULL);\n",
+       "GrB_Matrix_new(&M_15, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_15, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_40, GrB_INT64, 1);\n",
+       "GrB_vxm(v_40, NULL, NULL, GxB_ANY_PAIR_INT64, v_39, M_15, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_40, 0);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Vector_new(&v_38, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_38, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_39, GrB_INT64, 7);\n", + "GrB_mxv(v_39, NULL, NULL, GxB_ANY_PAIR_INT64, A, v_38, NULL);\n", + "GrB_Matrix_new(&M_15, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_15, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_40, GrB_INT64, 1);\n", + "GrB_vxm(v_40, NULL, NULL, GxB_ANY_PAIR_INT64, v_39, M_15, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_40, 0);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Vector_new(&v_38, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_38, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_39, GrB_INT64, 7);\n", + " GrB_mxv(v_39, NULL, NULL, GxB_ANY_PAIR_INT64, A, v_38, NULL);\n", + " GrB_Matrix_new(&M_15, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_15, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_40, GrB_INT64, 1);\n", + " GrB_vxm(v_40, NULL, NULL, GxB_ANY_PAIR_INT64, v_39, M_15, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_40, 0);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# first" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
281315
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_41, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_41, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_42, GrB_INT32, 7);\n",
+       "GrB_mxv(v_42, NULL, NULL, GxB_MIN_SECONDI_INT32, A, v_41, NULL);\n",
+       "GrB_Vector_wait(v_42, GrB_MATERIALIZE);\n",
+       "GrB_Vector_extractTuples_INT32(&index_array, &values_array, &s_nvals, v_42);\n",
+       "GrB_Matrix_new(&M_16, GrB_BOOL, 0, 0);\n",
+       "GrB_Matrix_new(&M_17, GrB_INT64, 6, 7);\n",
+       "GrB_Scalar_new(&s_temp, GrB_INT64);\n",
+       "GrB_Scalar_setElement_INT64(s_temp, 1);\n",
+       "GxB_Matrix_build_Scalar(M_17, (GrB_Index[]){1, 4, 5, 0, 2, 2}, (GrB_Index[]){0, 1, 2, 3, 5, 6}, s_temp, 6);\n",
+       "GrB_Matrix_diag(&M_18, v_42, 0);\n",
+       "GrB_Matrix_new(&M_19, GrB_INT32, 7, 7);\n",
+       "GrB_mxm(M_19, M_18, NULL, GxB_ANY_FIRST_INT32, A, M_17, GrB_DESC_S);\n",
+       "GrB_Vector_new(&v_43, GrB_INT32, 7);\n",
+       "GxB_Vector_diag(v_43, M_19, 0, NULL);\n",
+       "GrB_Vector_assign(rowwise, NULL, NULL, v_43, GrB_ALL, 7, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_41, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_41, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_42, GrB_INT32, 7);\n", + "GrB_mxv(v_42, NULL, NULL, GxB_MIN_SECONDI_INT32, A, v_41, NULL);\n", + "GrB_Vector_wait(v_42, GrB_MATERIALIZE);\n", + "GrB_Vector_extractTuples_INT32(&index_array, &values_array, &s_nvals, v_42);\n", + "GrB_Matrix_new(&M_16, GrB_BOOL, 0, 0);\n", + "GrB_Matrix_new(&M_17, GrB_INT64, 6, 7);\n", + "GrB_Scalar_new(&s_temp, GrB_INT64);\n", + "GrB_Scalar_setElement_INT64(s_temp, 1);\n", + "GxB_Matrix_build_Scalar(M_17, (GrB_Index[]){1, 4, 5, 0, 2, 2}, (GrB_Index[]){0, 1, 2, 3, 5, 6}, s_temp, 6);\n", + "GrB_Matrix_diag(&M_18, v_42, 0);\n", + "GrB_Matrix_new(&M_19, GrB_INT32, 7, 7);\n", + "GrB_mxm(M_19, M_18, NULL, GxB_ANY_FIRST_INT32, A, M_17, GrB_DESC_S);\n", + "GrB_Vector_new(&v_43, GrB_INT32, 7);\n", + "GxB_Vector_diag(v_43, M_19, 0, NULL);\n", + "GrB_Vector_assign(rowwise, NULL, NULL, v_43, GrB_ALL, 7, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_41, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_41, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_42, GrB_INT32, 7);\n", + " GrB_mxv(v_42, NULL, NULL, GxB_MIN_SECONDI_INT32, A, v_41, NULL);\n", + " GrB_Vector_wait(v_42, GrB_MATERIALIZE);\n", + " GrB_Vector_extractTuples_INT32(&index_array, &values_array, &s_nvals, v_42);\n", + " GrB_Matrix_new(&M_16, GrB_BOOL, 0, 0);\n", + " GrB_Matrix_new(&M_17, GrB_INT64, 6, 7);\n", + " GrB_Scalar_new(&s_temp, GrB_INT64);\n", + " GrB_Scalar_setElement_INT64(s_temp, 1);\n", + " GxB_Matrix_build_Scalar(M_17, (GrB_Index[]){1, 4, 5, 0, 2, 2}, (GrB_Index[]){0, 1, 2, 3, 5, 6}, s_temp, 6);\n", + " GrB_Matrix_diag(&M_18, v_42, 0);\n", + " GrB_Matrix_new(&M_19, GrB_INT32, 7, 7);\n", + " GrB_mxm(M_19, M_18, NULL, GxB_ANY_FIRST_INT32, A, M_17, GrB_DESC_S);\n", + " GrB_Vector_new(&v_43, GrB_INT32, 7);\n", + " GxB_Vector_diag(v_43, M_19, 0, NULL);\n", + " GrB_Vector_assign(rowwise, NULL, NULL, v_43, GrB_ALL, 7, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
2INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Matrix_new(&M_20, GrB_BOOL, 6, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_20, NULL, NULL, False, GrB_ALL, 6, GrB_ALL, 1, NULL);\n",
+       "GrB_Matrix_new(&M_21, GrB_INT32, 7, 1);\n",
+       "GrB_mxm(M_21, NULL, NULL, GxB_MIN_SECONDI_INT32, A, M_20, NULL);\n",
+       "GrB_Vector_new(&v_44, GrB_BOOL, 7);\n",
+       "GrB_Vector_assign_BOOL(v_44, NULL, NULL, False, GrB_ALL, 7, NULL);\n",
+       "GrB_Vector_new(&v_45, GrB_INT32, 1);\n",
+       "GrB_mxv(v_45, NULL, NULL, GxB_MIN_SECONDI_INT32, M_21, v_44, GrB_DESC_T0);\n",
+       "GrB_Scalar_new(&s_0, GrB_INT32);\n",
+       "GrB_Vector_extractElement_Scalar(s_0, v_45, 0);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, s_0);\n",
+       "GrB_Scalar_new(&s_1, GrB_INT32);\n",
+       "GrB_Matrix_extractElement_Scalar(s_1, M_21, 0, 0);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, s_1);\n",
+       "GrB_Matrix_extractElement_Scalar(scalar, A, 0, 1);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Matrix_new(&M_20, GrB_BOOL, 6, 1);\n", + "GrB_Matrix_assign_BOOL(M_20, NULL, NULL, False, GrB_ALL, 6, GrB_ALL, 1, NULL);\n", + "GrB_Matrix_new(&M_21, GrB_INT32, 7, 1);\n", + "GrB_mxm(M_21, NULL, NULL, GxB_MIN_SECONDI_INT32, A, M_20, NULL);\n", + "GrB_Vector_new(&v_44, GrB_BOOL, 7);\n", + "GrB_Vector_assign_BOOL(v_44, NULL, NULL, False, GrB_ALL, 7, NULL);\n", + "GrB_Vector_new(&v_45, GrB_INT32, 1);\n", + "GrB_mxv(v_45, NULL, NULL, GxB_MIN_SECONDI_INT32, M_21, v_44, GrB_DESC_T0);\n", + "GrB_Scalar_new(&s_0, GrB_INT32);\n", + "GrB_Vector_extractElement_Scalar(s_0, v_45, 0);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, s_0);\n", + "GrB_Scalar_new(&s_1, GrB_INT32);\n", + "GrB_Matrix_extractElement_Scalar(s_1, M_21, 0, 0);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, s_1);\n", + "GrB_Matrix_extractElement_Scalar(scalar, A, 0, 1);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Matrix_new(&M_20, GrB_BOOL, 6, 1);\n", + " GrB_Matrix_assign_BOOL(M_20, NULL, NULL, False, GrB_ALL, 6, GrB_ALL, 1, NULL);\n", + " GrB_Matrix_new(&M_21, GrB_INT32, 7, 1);\n", + " GrB_mxm(M_21, NULL, NULL, GxB_MIN_SECONDI_INT32, A, M_20, NULL);\n", + " GrB_Vector_new(&v_44, GrB_BOOL, 7);\n", + " GrB_Vector_assign_BOOL(v_44, NULL, NULL, False, GrB_ALL, 7, NULL);\n", + " GrB_Vector_new(&v_45, GrB_INT32, 1);\n", + " GrB_mxv(v_45, NULL, NULL, GxB_MIN_SECONDI_INT32, M_21, v_44, GrB_DESC_T0);\n", + " GrB_Scalar_new(&s_0, GrB_INT32);\n", + " GrB_Vector_extractElement_Scalar(s_0, v_45, 0);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, s_0);\n", + " GrB_Scalar_new(&s_1, GrB_INT32);\n", + " GrB_Matrix_extractElement_Scalar(s_1, M_21, 0, 0);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, s_1);\n", + " GrB_Matrix_extractElement_Scalar(scalar, A, 0, 1);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# first_index" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
145022
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_46, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_46, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(rowwise, NULL, NULL, GxB_MIN_SECONDI_INT32, A, v_46, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_46, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_46, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(rowwise, NULL, NULL, GxB_MIN_SECONDI_INT32, A, v_46, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_46, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_46, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(rowwise, NULL, NULL, GxB_MIN_SECONDI_INT32, A, v_46, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# geometric_mean" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67FP64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
2.449498.01.03.02.6457514.717694
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_47, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_48, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_48, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_47, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_48, NULL);\n",
+       "GrB_Vector_new(&v_49, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(v_49, NULL, NULL, GrB_TIMES_MONOID_INT32, A, NULL);\n",
+       "GrB_Vector_new(&v_50, GrB_FP64, 7);\n",
+       "GrB_Vector_apply(v_50, NULL, NULL, GrB_MINV_FP64, v_47, NULL);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GxB_POW_FP64, v_49, v_50, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_47, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_48, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_48, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_47, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_48, NULL);\n", + "GrB_Vector_new(&v_49, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(v_49, NULL, NULL, GrB_TIMES_MONOID_INT32, A, NULL);\n", + "GrB_Vector_new(&v_50, GrB_FP64, 7);\n", + "GrB_Vector_apply(v_50, NULL, NULL, GrB_MINV_FP64, v_47, NULL);\n", + "GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GxB_POW_FP64, v_49, v_50, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_47, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_48, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_48, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_47, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_48, NULL);\n", + " GrB_Vector_new(&v_49, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(v_49, NULL, NULL, GrB_TIMES_MONOID_INT32, A, NULL);\n", + " GrB_Vector_new(&v_50, GrB_FP64, 7);\n", + " GrB_Vector_apply(v_50, NULL, NULL, GrB_MINV_FP64, v_47, NULL);\n", + " GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GxB_POW_FP64, v_49, v_50, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
3.163450241931081FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_2, GrB_INT32);\n",
+       "GrB_Vector_new(&v_51, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_51, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_52, GrB_INT64, 7);\n",
+       "GrB_mxv(v_52, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_51, NULL);\n",
+       "GrB_Matrix_new(&M_22, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_22, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_53, GrB_INT64, 1);\n",
+       "GrB_vxm(v_53, NULL, NULL, GxB_PLUS_FIRST_INT64, v_52, M_22, NULL);\n",
+       "GrB_Scalar_new(&s_3, GrB_INT32);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(s_3, NULL, GrB_TIMES_MONOID_INT32, A, NULL);\n",
+       "GrB_Vector_new(&v_54, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_54, NULL, NULL, GrB_MINV_FP64, v_53, NULL);\n",
+       "GrB_Vector_new(&v_55, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_55, NULL, NULL, GxB_POW_FP64, (GrB_Vector)s_3, v_54, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_55, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_FP64);\n", + "GrB_Scalar_new(&s_2, GrB_INT32);\n", + "GrB_Vector_new(&v_51, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_51, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_52, GrB_INT64, 7);\n", + "GrB_mxv(v_52, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_51, NULL);\n", + "GrB_Matrix_new(&M_22, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_22, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_53, GrB_INT64, 1);\n", + "GrB_vxm(v_53, NULL, NULL, GxB_PLUS_FIRST_INT64, v_52, M_22, NULL);\n", + "GrB_Scalar_new(&s_3, GrB_INT32);\n", + "GrB_Matrix_reduce_Monoid_Scalar(s_3, NULL, GrB_TIMES_MONOID_INT32, A, NULL);\n", + "GrB_Vector_new(&v_54, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_54, NULL, NULL, GrB_MINV_FP64, v_53, NULL);\n", + "GrB_Vector_new(&v_55, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_55, NULL, NULL, GxB_POW_FP64, (GrB_Vector)s_3, v_54, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_55, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_FP64);\n", + " GrB_Scalar_new(&s_2, GrB_INT32);\n", + " GrB_Vector_new(&v_51, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_51, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_52, GrB_INT64, 7);\n", + " GrB_mxv(v_52, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_51, NULL);\n", + " GrB_Matrix_new(&M_22, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_22, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_53, GrB_INT64, 1);\n", + " GrB_vxm(v_53, NULL, NULL, GxB_PLUS_FIRST_INT64, v_52, M_22, NULL);\n", + " GrB_Scalar_new(&s_3, GrB_INT32);\n", + " GrB_Matrix_reduce_Monoid_Scalar(s_3, NULL, GrB_TIMES_MONOID_INT32, A, NULL);\n", + " GrB_Vector_new(&v_54, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_54, NULL, NULL, GrB_MINV_FP64, v_53, NULL);\n", + " GrB_Vector_new(&v_55, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_55, NULL, NULL, GxB_POW_FP64, (GrB_Vector)s_3, v_54, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_55, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# harmonic_mean" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67FP64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
2.48.01.03.01.754.43662
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_56, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_57, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_57, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_56, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_57, NULL);\n",
+       "GrB_Vector_new(&v_58, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_59, GrB_FP64, 6);\n",
+       "GrB_Vector_assign_FP64(v_59, NULL, NULL, -1.0, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_58, NULL, NULL, plus_pow_FP64, A, v_59, NULL);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_DIV_FP64, v_56, v_58, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_56, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_57, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_57, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_56, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_57, NULL);\n", + "GrB_Vector_new(&v_58, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_59, GrB_FP64, 6);\n", + "GrB_Vector_assign_FP64(v_59, NULL, NULL, -1.0, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_58, NULL, NULL, plus_pow_FP64, A, v_59, NULL);\n", + "GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_DIV_FP64, v_56, v_58, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_56, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_57, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_57, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_56, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_57, NULL);\n", + " GrB_Vector_new(&v_58, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_59, GrB_FP64, 6);\n", + " GrB_Vector_assign_FP64(v_59, NULL, NULL, -1.0, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_58, NULL, NULL, plus_pow_FP64, A, v_59, NULL);\n", + " GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_DIV_FP64, v_56, v_58, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
2.4752210018751675FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_4, GrB_INT32);\n",
+       "GrB_Vector_new(&v_60, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_60, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_61, GrB_INT64, 7);\n",
+       "GrB_mxv(v_61, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_60, NULL);\n",
+       "GrB_Matrix_new(&M_23, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_23, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_62, GrB_INT64, 1);\n",
+       "GrB_vxm(v_62, NULL, NULL, GxB_PLUS_FIRST_INT64, v_61, M_23, NULL);\n",
+       "GrB_Scalar_new(&s_5, GrB_FP64);\n",
+       "GrB_Vector_new(&v_63, GrB_FP64, 6);\n",
+       "GrB_Vector_assign_FP64(v_63, NULL, NULL, -1.0, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_64, GrB_FP64, 7);\n",
+       "GrB_mxv(v_64, NULL, NULL, plus_pow_FP64, A, v_63, NULL);\n",
+       "GrB_Matrix_new(&M_24, GrB_FP64, 7, 1);\n",
+       "GrB_Matrix_assign_FP64(M_24, NULL, NULL, -1.0, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_65, GrB_FP64, 1);\n",
+       "GrB_vxm(v_65, NULL, NULL, GxB_PLUS_FIRST_FP64, v_64, M_24, NULL);\n",
+       "GrB_Vector_new(&v_66, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_66, NULL, NULL, GrB_DIV_FP64, v_62, v_65, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_66, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_FP64);\n", + "GrB_Scalar_new(&s_4, GrB_INT32);\n", + "GrB_Vector_new(&v_60, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_60, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_61, GrB_INT64, 7);\n", + "GrB_mxv(v_61, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_60, NULL);\n", + "GrB_Matrix_new(&M_23, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_23, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_62, GrB_INT64, 1);\n", + "GrB_vxm(v_62, NULL, NULL, GxB_PLUS_FIRST_INT64, v_61, M_23, NULL);\n", + "GrB_Scalar_new(&s_5, GrB_FP64);\n", + "GrB_Vector_new(&v_63, GrB_FP64, 6);\n", + "GrB_Vector_assign_FP64(v_63, NULL, NULL, -1.0, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_64, GrB_FP64, 7);\n", + "GrB_mxv(v_64, NULL, NULL, plus_pow_FP64, A, v_63, NULL);\n", + "GrB_Matrix_new(&M_24, GrB_FP64, 7, 1);\n", + "GrB_Matrix_assign_FP64(M_24, NULL, NULL, -1.0, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_65, GrB_FP64, 1);\n", + "GrB_vxm(v_65, NULL, NULL, GxB_PLUS_FIRST_FP64, v_64, M_24, NULL);\n", + "GrB_Vector_new(&v_66, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_66, NULL, NULL, GrB_DIV_FP64, v_62, v_65, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_66, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_FP64);\n", + " GrB_Scalar_new(&s_4, GrB_INT32);\n", + " GrB_Vector_new(&v_60, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_60, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_61, GrB_INT64, 7);\n", + " GrB_mxv(v_61, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_60, NULL);\n", + " GrB_Matrix_new(&M_23, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_23, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_62, GrB_INT64, 1);\n", + " GrB_vxm(v_62, NULL, NULL, GxB_PLUS_FIRST_INT64, v_61, M_23, NULL);\n", + " GrB_Scalar_new(&s_5, GrB_FP64);\n", + " GrB_Vector_new(&v_63, GrB_FP64, 6);\n", + " GrB_Vector_assign_FP64(v_63, NULL, NULL, -1.0, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_64, GrB_FP64, 7);\n", + " GrB_mxv(v_64, NULL, NULL, plus_pow_FP64, A, v_63, NULL);\n", + " GrB_Matrix_new(&M_24, GrB_FP64, 7, 1);\n", + " GrB_Matrix_assign_FP64(M_24, NULL, NULL, -1.0, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_65, GrB_FP64, 1);\n", + " GrB_vxm(v_65, NULL, NULL, GxB_PLUS_FIRST_FP64, v_64, M_24, NULL);\n", + " GrB_Vector_new(&v_66, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_66, NULL, NULL, GrB_DIV_FP64, v_62, v_65, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_66, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# hypot" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67FP64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
3.6055518.01.04.2426417.0710689.110434
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_67, GrB_INT64, 7);\n",
+       "GrB_Vector_new(&v_68, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_68, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_67, NULL, NULL, plus_pow_INT64, A, v_68, NULL);\n",
+       "GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_67, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_67, GrB_INT64, 7);\n", + "GrB_Vector_new(&v_68, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_68, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_67, NULL, NULL, plus_pow_INT64, A, v_68, NULL);\n", + "GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_67, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_67, GrB_INT64, 7);\n", + " GrB_Vector_new(&v_68, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_68, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_67, NULL, NULL, plus_pow_INT64, A, v_68, NULL);\n", + " GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_67, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
15.132745950421556FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_FP64);\n",
+       "GrB_Vector_new(&v_69, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_69, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_70, GrB_INT64, 7);\n",
+       "GrB_mxv(v_70, NULL, NULL, plus_pow_INT64, A, v_69, NULL);\n",
+       "GrB_Matrix_new(&M_25, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_25, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_71, GrB_INT64, 1);\n",
+       "GrB_vxm(v_71, NULL, NULL, GxB_PLUS_FIRST_INT64, v_70, M_25, NULL);\n",
+       "GrB_Vector_new(&v_72, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_72, NULL, NULL, GxB_SQRT_FP64, v_71, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_72, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_FP64);\n", + "GrB_Vector_new(&v_69, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_69, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_70, GrB_INT64, 7);\n", + "GrB_mxv(v_70, NULL, NULL, plus_pow_INT64, A, v_69, NULL);\n", + "GrB_Matrix_new(&M_25, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_25, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_71, GrB_INT64, 1);\n", + "GrB_vxm(v_71, NULL, NULL, GxB_PLUS_FIRST_INT64, v_70, M_25, NULL);\n", + "GrB_Vector_new(&v_72, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_72, NULL, NULL, GxB_SQRT_FP64, v_71, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_72, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_FP64);\n", + " GrB_Vector_new(&v_69, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_69, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_70, GrB_INT64, 7);\n", + " GrB_mxv(v_70, NULL, NULL, plus_pow_INT64, A, v_69, NULL);\n", + " GrB_Matrix_new(&M_25, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_25, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_71, GrB_INT64, 1);\n", + " GrB_vxm(v_71, NULL, NULL, GxB_PLUS_FIRST_INT64, v_70, M_25, NULL);\n", + " GrB_Vector_new(&v_72, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_72, NULL, NULL, GxB_SQRT_FP64, v_71, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_72, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# last" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
381373
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_73, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_73, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_74, GrB_INT32, 7);\n",
+       "GrB_mxv(v_74, NULL, NULL, GxB_MAX_SECONDI_INT32, A, v_73, NULL);\n",
+       "GrB_Vector_wait(v_74, GrB_MATERIALIZE);\n",
+       "GrB_Vector_extractTuples_INT32(&index_array, &values_array, &s_nvals, v_74);\n",
+       "GrB_Matrix_new(&M_26, GrB_BOOL, 0, 0);\n",
+       "GrB_Matrix_new(&M_27, GrB_INT64, 6, 7);\n",
+       "GrB_Scalar_new(&s_temp, GrB_INT64);\n",
+       "GrB_Scalar_setElement_INT64(s_temp, 1);\n",
+       "GxB_Matrix_build_Scalar(M_27, (GrB_Index[]){3, 4, 5, 2, 5, 4}, (GrB_Index[]){0, 1, 2, 3, 5, 6}, s_temp, 6);\n",
+       "GrB_Matrix_diag(&M_28, v_74, 0);\n",
+       "GrB_Matrix_new(&M_29, GrB_INT32, 7, 7);\n",
+       "GrB_mxm(M_29, M_28, NULL, GxB_ANY_FIRST_INT32, A, M_27, GrB_DESC_S);\n",
+       "GrB_Vector_new(&v_75, GrB_INT32, 7);\n",
+       "GxB_Vector_diag(v_75, M_29, 0, NULL);\n",
+       "GrB_Vector_assign(rowwise, NULL, NULL, v_75, GrB_ALL, 7, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_73, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_73, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_74, GrB_INT32, 7);\n", + "GrB_mxv(v_74, NULL, NULL, GxB_MAX_SECONDI_INT32, A, v_73, NULL);\n", + "GrB_Vector_wait(v_74, GrB_MATERIALIZE);\n", + "GrB_Vector_extractTuples_INT32(&index_array, &values_array, &s_nvals, v_74);\n", + "GrB_Matrix_new(&M_26, GrB_BOOL, 0, 0);\n", + "GrB_Matrix_new(&M_27, GrB_INT64, 6, 7);\n", + "GrB_Scalar_new(&s_temp, GrB_INT64);\n", + "GrB_Scalar_setElement_INT64(s_temp, 1);\n", + "GxB_Matrix_build_Scalar(M_27, (GrB_Index[]){3, 4, 5, 2, 5, 4}, (GrB_Index[]){0, 1, 2, 3, 5, 6}, s_temp, 6);\n", + "GrB_Matrix_diag(&M_28, v_74, 0);\n", + "GrB_Matrix_new(&M_29, GrB_INT32, 7, 7);\n", + "GrB_mxm(M_29, M_28, NULL, GxB_ANY_FIRST_INT32, A, M_27, GrB_DESC_S);\n", + "GrB_Vector_new(&v_75, GrB_INT32, 7);\n", + "GxB_Vector_diag(v_75, M_29, 0, NULL);\n", + "GrB_Vector_assign(rowwise, NULL, NULL, v_75, GrB_ALL, 7, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_73, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_73, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_74, GrB_INT32, 7);\n", + " GrB_mxv(v_74, NULL, NULL, GxB_MAX_SECONDI_INT32, A, v_73, NULL);\n", + " GrB_Vector_wait(v_74, GrB_MATERIALIZE);\n", + " GrB_Vector_extractTuples_INT32(&index_array, &values_array, &s_nvals, v_74);\n", + " GrB_Matrix_new(&M_26, GrB_BOOL, 0, 0);\n", + " GrB_Matrix_new(&M_27, GrB_INT64, 6, 7);\n", + " GrB_Scalar_new(&s_temp, GrB_INT64);\n", + " GrB_Scalar_setElement_INT64(s_temp, 1);\n", + " GxB_Matrix_build_Scalar(M_27, (GrB_Index[]){3, 4, 5, 2, 5, 4}, (GrB_Index[]){0, 1, 2, 3, 5, 6}, s_temp, 6);\n", + " GrB_Matrix_diag(&M_28, v_74, 0);\n", + " GrB_Matrix_new(&M_29, GrB_INT32, 7, 7);\n", + " GrB_mxm(M_29, M_28, NULL, GxB_ANY_FIRST_INT32, A, M_27, GrB_DESC_S);\n", + " GrB_Vector_new(&v_75, GrB_INT32, 7);\n", + " GxB_Vector_diag(v_75, M_29, 0, NULL);\n", + " GrB_Vector_assign(rowwise, NULL, NULL, v_75, GrB_ALL, 7, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
3INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Matrix_new(&M_30, GrB_BOOL, 6, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_30, NULL, NULL, False, GrB_ALL, 6, GrB_ALL, 1, NULL);\n",
+       "GrB_Matrix_new(&M_31, GrB_INT32, 7, 1);\n",
+       "GrB_mxm(M_31, NULL, NULL, GxB_MAX_SECONDI_INT32, A, M_30, NULL);\n",
+       "GrB_Vector_new(&v_76, GrB_BOOL, 7);\n",
+       "GrB_Vector_assign_BOOL(v_76, NULL, NULL, False, GrB_ALL, 7, NULL);\n",
+       "GrB_Vector_new(&v_77, GrB_INT32, 1);\n",
+       "GrB_mxv(v_77, NULL, NULL, GxB_MAX_SECONDI_INT32, M_31, v_76, GrB_DESC_T0);\n",
+       "GrB_Scalar_new(&s_6, GrB_INT32);\n",
+       "GrB_Vector_extractElement_Scalar(s_6, v_77, 0);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, s_6);\n",
+       "GrB_Scalar_new(&s_7, GrB_INT32);\n",
+       "GrB_Matrix_extractElement_Scalar(s_7, M_31, 6, 0);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, s_7);\n",
+       "GrB_Matrix_extractElement_Scalar(scalar, A, 6, 4);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Matrix_new(&M_30, GrB_BOOL, 6, 1);\n", + "GrB_Matrix_assign_BOOL(M_30, NULL, NULL, False, GrB_ALL, 6, GrB_ALL, 1, NULL);\n", + "GrB_Matrix_new(&M_31, GrB_INT32, 7, 1);\n", + "GrB_mxm(M_31, NULL, NULL, GxB_MAX_SECONDI_INT32, A, M_30, NULL);\n", + "GrB_Vector_new(&v_76, GrB_BOOL, 7);\n", + "GrB_Vector_assign_BOOL(v_76, NULL, NULL, False, GrB_ALL, 7, NULL);\n", + "GrB_Vector_new(&v_77, GrB_INT32, 1);\n", + "GrB_mxv(v_77, NULL, NULL, GxB_MAX_SECONDI_INT32, M_31, v_76, GrB_DESC_T0);\n", + "GrB_Scalar_new(&s_6, GrB_INT32);\n", + "GrB_Vector_extractElement_Scalar(s_6, v_77, 0);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, s_6);\n", + "GrB_Scalar_new(&s_7, GrB_INT32);\n", + "GrB_Matrix_extractElement_Scalar(s_7, M_31, 6, 0);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, s_7);\n", + "GrB_Matrix_extractElement_Scalar(scalar, A, 6, 4);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Matrix_new(&M_30, GrB_BOOL, 6, 1);\n", + " GrB_Matrix_assign_BOOL(M_30, NULL, NULL, False, GrB_ALL, 6, GrB_ALL, 1, NULL);\n", + " GrB_Matrix_new(&M_31, GrB_INT32, 7, 1);\n", + " GrB_mxm(M_31, NULL, NULL, GxB_MAX_SECONDI_INT32, A, M_30, NULL);\n", + " GrB_Vector_new(&v_76, GrB_BOOL, 7);\n", + " GrB_Vector_assign_BOOL(v_76, NULL, NULL, False, GrB_ALL, 7, NULL);\n", + " GrB_Vector_new(&v_77, GrB_INT32, 1);\n", + " GrB_mxv(v_77, NULL, NULL, GxB_MAX_SECONDI_INT32, M_31, v_76, GrB_DESC_T0);\n", + " GrB_Scalar_new(&s_6, GrB_INT32);\n", + " GrB_Vector_extractElement_Scalar(s_6, v_77, 0);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, s_6);\n", + " GrB_Scalar_new(&s_7, GrB_INT32);\n", + " GrB_Matrix_extractElement_Scalar(s_7, M_31, 6, 0);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, s_7);\n", + " GrB_Matrix_extractElement_Scalar(scalar, A, 6, 4);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# last_index" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
345254
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_78, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_78, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(rowwise, NULL, NULL, GxB_MAX_SECONDI_INT32, A, v_78, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_78, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_78, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(rowwise, NULL, NULL, GxB_MAX_SECONDI_INT32, A, v_78, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_78, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_78, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(rowwise, NULL, NULL, GxB_MAX_SECONDI_INT32, A, v_78, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# logaddexp" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67FP64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
3.3132628.01.03.6931477.0024767.142932
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_79, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_80, GrB_FP64, 6);\n",
+       "GrB_Vector_assign_FP64(v_80, NULL, NULL, 2.718281828459045, GrB_ALL, 6, NULL);\n",
+       "GrB_vxm(v_79, NULL, NULL, plus_pow_FP64, v_80, A, GrB_DESC_T1);\n",
+       "GrB_Vector_apply(rowwise, NULL, NULL, GxB_LOG_FP64, v_79, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_79, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_80, GrB_FP64, 6);\n", + "GrB_Vector_assign_FP64(v_80, NULL, NULL, 2.718281828459045, GrB_ALL, 6, NULL);\n", + "GrB_vxm(v_79, NULL, NULL, plus_pow_FP64, v_80, A, GrB_DESC_T1);\n", + "GrB_Vector_apply(rowwise, NULL, NULL, GxB_LOG_FP64, v_79, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_79, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_80, GrB_FP64, 6);\n", + " GrB_Vector_assign_FP64(v_80, NULL, NULL, 2.718281828459045, GrB_ALL, 6, NULL);\n", + " GrB_vxm(v_79, NULL, NULL, plus_pow_FP64, v_80, A, GrB_DESC_T1);\n", + " GrB_Vector_apply(rowwise, NULL, NULL, GxB_LOG_FP64, v_79, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
8.59707685206397FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_FP64);\n",
+       "GrB_Vector_new(&v_81, GrB_FP64, 6);\n",
+       "GrB_Vector_assign_FP64(v_81, NULL, NULL, 2.718281828459045, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_82, GrB_FP64, 7);\n",
+       "GrB_vxm(v_82, NULL, NULL, plus_pow_FP64, v_81, A, GrB_DESC_T1);\n",
+       "GrB_Matrix_new(&M_32, GrB_FP64, 7, 1);\n",
+       "GrB_Matrix_assign_FP64(M_32, NULL, NULL, 2.718281828459045, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_83, GrB_FP64, 1);\n",
+       "GrB_vxm(v_83, NULL, NULL, GxB_PLUS_FIRST_FP64, v_82, M_32, NULL);\n",
+       "GrB_Vector_apply(v_83, NULL, NULL, GxB_LOG_FP64, v_83, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_83, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_FP64);\n", + "GrB_Vector_new(&v_81, GrB_FP64, 6);\n", + "GrB_Vector_assign_FP64(v_81, NULL, NULL, 2.718281828459045, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_82, GrB_FP64, 7);\n", + "GrB_vxm(v_82, NULL, NULL, plus_pow_FP64, v_81, A, GrB_DESC_T1);\n", + "GrB_Matrix_new(&M_32, GrB_FP64, 7, 1);\n", + "GrB_Matrix_assign_FP64(M_32, NULL, NULL, 2.718281828459045, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_83, GrB_FP64, 1);\n", + "GrB_vxm(v_83, NULL, NULL, GxB_PLUS_FIRST_FP64, v_82, M_32, NULL);\n", + "GrB_Vector_apply(v_83, NULL, NULL, GxB_LOG_FP64, v_83, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_83, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_FP64);\n", + " GrB_Vector_new(&v_81, GrB_FP64, 6);\n", + " GrB_Vector_assign_FP64(v_81, NULL, NULL, 2.718281828459045, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_82, GrB_FP64, 7);\n", + " GrB_vxm(v_82, NULL, NULL, plus_pow_FP64, v_81, A, GrB_DESC_T1);\n", + " GrB_Matrix_new(&M_32, GrB_FP64, 7, 1);\n", + " GrB_Matrix_assign_FP64(M_32, NULL, NULL, 2.718281828459045, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_83, GrB_FP64, 1);\n", + " GrB_vxm(v_83, NULL, NULL, GxB_PLUS_FIRST_FP64, v_82, M_32, NULL);\n", + " GrB_Vector_apply(v_83, NULL, NULL, GxB_LOG_FP64, v_83, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_83, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# logaddexp2" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67FP64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
3.5849638.01.04.07.0223687.392317
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_84, GrB_INT64, 7);\n",
+       "GrB_Vector_new(&v_85, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_85, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_vxm(v_84, NULL, NULL, plus_pow_INT64, v_85, A, GrB_DESC_T1);\n",
+       "GrB_Vector_apply(rowwise, NULL, NULL, GxB_LOG2_FP64, v_84, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_84, GrB_INT64, 7);\n", + "GrB_Vector_new(&v_85, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_85, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_vxm(v_84, NULL, NULL, plus_pow_INT64, v_85, A, GrB_DESC_T1);\n", + "GrB_Vector_apply(rowwise, NULL, NULL, GxB_LOG2_FP64, v_84, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_84, GrB_INT64, 7);\n", + " GrB_Vector_new(&v_85, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_85, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_vxm(v_84, NULL, NULL, plus_pow_INT64, v_85, A, GrB_DESC_T1);\n", + " GrB_Vector_apply(rowwise, NULL, NULL, GxB_LOG2_FP64, v_84, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
9.189824558880018FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_FP64);\n",
+       "GrB_Vector_new(&v_86, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_86, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_87, GrB_INT64, 7);\n",
+       "GrB_vxm(v_87, NULL, NULL, plus_pow_INT64, v_86, A, GrB_DESC_T1);\n",
+       "GrB_Matrix_new(&M_33, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_33, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_88, GrB_INT64, 1);\n",
+       "GrB_vxm(v_88, NULL, NULL, GxB_PLUS_FIRST_INT64, v_87, M_33, NULL);\n",
+       "GrB_Vector_new(&v_89, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_89, NULL, NULL, GxB_LOG2_FP64, v_88, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_89, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_FP64);\n", + "GrB_Vector_new(&v_86, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_86, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_87, GrB_INT64, 7);\n", + "GrB_vxm(v_87, NULL, NULL, plus_pow_INT64, v_86, A, GrB_DESC_T1);\n", + "GrB_Matrix_new(&M_33, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_33, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_88, GrB_INT64, 1);\n", + "GrB_vxm(v_88, NULL, NULL, GxB_PLUS_FIRST_INT64, v_87, M_33, NULL);\n", + "GrB_Vector_new(&v_89, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_89, NULL, NULL, GxB_LOG2_FP64, v_88, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_89, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_FP64);\n", + " GrB_Vector_new(&v_86, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_86, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_87, GrB_INT64, 7);\n", + " GrB_vxm(v_87, NULL, NULL, plus_pow_INT64, v_86, A, GrB_DESC_T1);\n", + " GrB_Matrix_new(&M_33, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_33, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_88, GrB_INT64, 1);\n", + " GrB_vxm(v_88, NULL, NULL, GxB_PLUS_FIRST_INT64, v_87, M_33, NULL);\n", + " GrB_Vector_new(&v_89, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_89, NULL, NULL, GxB_LOG2_FP64, v_88, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_89, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# max" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
381377
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_MAX_MONOID_INT32, A, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
8INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# mean" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67FP64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
2.58.01.03.04.05.0
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_90, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_91, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_91, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_90, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_91, NULL);\n",
+       "GrB_Vector_new(&v_92, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(v_92, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_DIV_FP64, v_92, v_90, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_90, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_91, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_91, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_90, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_91, NULL);\n", + "GrB_Vector_new(&v_92, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(v_92, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + "GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_DIV_FP64, v_92, v_90, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_90, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_91, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_91, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_90, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_91, NULL);\n", + " GrB_Vector_new(&v_92, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(v_92, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + " GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_DIV_FP64, v_92, v_90, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
3.909090909090909FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_8, GrB_INT32);\n",
+       "GrB_Vector_new(&v_93, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_93, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_94, GrB_INT64, 7);\n",
+       "GrB_mxv(v_94, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_93, NULL);\n",
+       "GrB_Matrix_new(&M_34, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_34, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_95, GrB_INT64, 1);\n",
+       "GrB_vxm(v_95, NULL, NULL, GxB_PLUS_FIRST_INT64, v_94, M_34, NULL);\n",
+       "GrB_Scalar_new(&s_9, GrB_INT32);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(s_9, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n",
+       "GrB_Vector_new(&v_96, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_96, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_9, v_95, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_96, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_FP64);\n", + "GrB_Scalar_new(&s_8, GrB_INT32);\n", + "GrB_Vector_new(&v_93, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_93, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_94, GrB_INT64, 7);\n", + "GrB_mxv(v_94, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_93, NULL);\n", + "GrB_Matrix_new(&M_34, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_34, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_95, GrB_INT64, 1);\n", + "GrB_vxm(v_95, NULL, NULL, GxB_PLUS_FIRST_INT64, v_94, M_34, NULL);\n", + "GrB_Scalar_new(&s_9, GrB_INT32);\n", + "GrB_Matrix_reduce_Monoid_Scalar(s_9, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + "GrB_Vector_new(&v_96, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_96, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_9, v_95, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_96, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_FP64);\n", + " GrB_Scalar_new(&s_8, GrB_INT32);\n", + " GrB_Vector_new(&v_93, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_93, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_94, GrB_INT64, 7);\n", + " GrB_mxv(v_94, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_93, NULL);\n", + " GrB_Matrix_new(&M_34, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_34, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_95, GrB_INT64, 1);\n", + " GrB_vxm(v_95, NULL, NULL, GxB_PLUS_FIRST_INT64, v_94, M_34, NULL);\n", + " GrB_Scalar_new(&s_9, GrB_INT32);\n", + " GrB_Matrix_reduce_Monoid_Scalar(s_9, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + " GrB_Vector_new(&v_96, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_96, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_9, v_95, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_96, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# min" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
281313
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_MIN_MONOID_INT32, A, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
1INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# peak_to_peak" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
100064
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_97, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(v_97, NULL, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n",
+       "GrB_Vector_new(&v_98, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(v_98, NULL, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_MINUS_INT32, v_97, v_98, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_97, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(v_97, NULL, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n", + "GrB_Vector_new(&v_98, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(v_98, NULL, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n", + "GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_MINUS_INT32, v_97, v_98, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_97, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(v_97, NULL, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n", + " GrB_Vector_new(&v_98, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(v_98, NULL, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n", + " GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_MINUS_INT32, v_97, v_98, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
7INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Scalar_new(&s_10, GrB_INT32);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(s_10, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n",
+       "GrB_Scalar_new(&s_11, GrB_INT32);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(s_11, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n",
+       "GrB_Vector_new(&v_99, GrB_INT32, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_99, NULL, NULL, GrB_MINUS_INT32, (GrB_Vector)s_10, (GrB_Vector)s_11, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_99, 0);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Scalar_new(&s_10, GrB_INT32);\n", + "GrB_Matrix_reduce_Monoid_Scalar(s_10, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n", + "GrB_Scalar_new(&s_11, GrB_INT32);\n", + "GrB_Matrix_reduce_Monoid_Scalar(s_11, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n", + "GrB_Vector_new(&v_99, GrB_INT32, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_99, NULL, NULL, GrB_MINUS_INT32, (GrB_Vector)s_10, (GrB_Vector)s_11, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_99, 0);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Scalar_new(&s_10, GrB_INT32);\n", + " GrB_Matrix_reduce_Monoid_Scalar(s_10, NULL, GrB_MAX_MONOID_INT32, A, NULL);\n", + " GrB_Scalar_new(&s_11, GrB_INT32);\n", + " GrB_Matrix_reduce_Monoid_Scalar(s_11, NULL, GrB_MIN_MONOID_INT32, A, NULL);\n", + " GrB_Vector_new(&v_99, GrB_INT32, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_99, NULL, NULL, GrB_MINUS_INT32, (GrB_Vector)s_10, (GrB_Vector)s_11, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_99, 0);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# prod" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
68197105
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_TIMES_MONOID_INT32, A, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_TIMES_MONOID_INT32, A, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_TIMES_MONOID_INT32, A, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
317520INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_TIMES_MONOID_INT32, A, NULL);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_TIMES_MONOID_INT32, A, NULL);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_TIMES_MONOID_INT32, A, NULL);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# root_mean_square" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67FP64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
2.549518.01.03.05.05.259911
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_100, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_101, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_101, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_100, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_101, NULL);\n",
+       "GrB_Vector_new(&v_102, GrB_INT64, 7);\n",
+       "GrB_Vector_new(&v_103, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_103, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_102, NULL, NULL, plus_pow_INT64, A, v_103, NULL);\n",
+       "GrB_Vector_new(&v_104, GrB_FP64, 7);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_104, NULL, NULL, GrB_DIV_FP64, v_102, v_100, NULL);\n",
+       "GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_104, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_100, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_101, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_101, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_100, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_101, NULL);\n", + "GrB_Vector_new(&v_102, GrB_INT64, 7);\n", + "GrB_Vector_new(&v_103, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_103, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_102, NULL, NULL, plus_pow_INT64, A, v_103, NULL);\n", + "GrB_Vector_new(&v_104, GrB_FP64, 7);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_104, NULL, NULL, GrB_DIV_FP64, v_102, v_100, NULL);\n", + "GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_104, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_100, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_101, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_101, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_100, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_101, NULL);\n", + " GrB_Vector_new(&v_102, GrB_INT64, 7);\n", + " GrB_Vector_new(&v_103, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_103, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_102, NULL, NULL, plus_pow_INT64, A, v_103, NULL);\n", + " GrB_Vector_new(&v_104, GrB_FP64, 7);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_104, NULL, NULL, GrB_DIV_FP64, v_102, v_100, NULL);\n", + " GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_104, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
4.562694578665311FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_12, GrB_INT32);\n",
+       "GrB_Vector_new(&v_105, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_105, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_106, GrB_INT64, 7);\n",
+       "GrB_mxv(v_106, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_105, NULL);\n",
+       "GrB_Matrix_new(&M_35, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_35, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_107, GrB_INT64, 1);\n",
+       "GrB_vxm(v_107, NULL, NULL, GxB_PLUS_FIRST_INT64, v_106, M_35, NULL);\n",
+       "GrB_Scalar_new(&s_13, GrB_INT64);\n",
+       "GrB_Vector_new(&v_108, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_108, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_109, GrB_INT64, 7);\n",
+       "GrB_mxv(v_109, NULL, NULL, plus_pow_INT64, A, v_108, NULL);\n",
+       "GrB_Matrix_new(&M_36, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_36, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_110, GrB_INT64, 1);\n",
+       "GrB_vxm(v_110, NULL, NULL, GxB_PLUS_FIRST_INT64, v_109, M_36, NULL);\n",
+       "GrB_Vector_new(&v_111, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_111, NULL, NULL, GrB_DIV_FP64, v_110, v_107, NULL);\n",
+       "GrB_Vector_new(&v_112, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_112, NULL, NULL, GxB_SQRT_FP64, v_111, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_112, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_FP64);\n", + "GrB_Scalar_new(&s_12, GrB_INT32);\n", + "GrB_Vector_new(&v_105, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_105, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_106, GrB_INT64, 7);\n", + "GrB_mxv(v_106, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_105, NULL);\n", + "GrB_Matrix_new(&M_35, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_35, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_107, GrB_INT64, 1);\n", + "GrB_vxm(v_107, NULL, NULL, GxB_PLUS_FIRST_INT64, v_106, M_35, NULL);\n", + "GrB_Scalar_new(&s_13, GrB_INT64);\n", + "GrB_Vector_new(&v_108, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_108, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_109, GrB_INT64, 7);\n", + "GrB_mxv(v_109, NULL, NULL, plus_pow_INT64, A, v_108, NULL);\n", + "GrB_Matrix_new(&M_36, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_36, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_110, GrB_INT64, 1);\n", + "GrB_vxm(v_110, NULL, NULL, GxB_PLUS_FIRST_INT64, v_109, M_36, NULL);\n", + "GrB_Vector_new(&v_111, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_111, NULL, NULL, GrB_DIV_FP64, v_110, v_107, NULL);\n", + "GrB_Vector_new(&v_112, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_112, NULL, NULL, GxB_SQRT_FP64, v_111, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_112, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_FP64);\n", + " GrB_Scalar_new(&s_12, GrB_INT32);\n", + " GrB_Vector_new(&v_105, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_105, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_106, GrB_INT64, 7);\n", + " GrB_mxv(v_106, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_105, NULL);\n", + " GrB_Matrix_new(&M_35, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_35, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_107, GrB_INT64, 1);\n", + " GrB_vxm(v_107, NULL, NULL, GxB_PLUS_FIRST_INT64, v_106, M_35, NULL);\n", + " GrB_Scalar_new(&s_13, GrB_INT64);\n", + " GrB_Vector_new(&v_108, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_108, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_109, GrB_INT64, 7);\n", + " GrB_mxv(v_109, NULL, NULL, plus_pow_INT64, A, v_108, NULL);\n", + " GrB_Matrix_new(&M_36, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_36, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_110, GrB_INT64, 1);\n", + " GrB_vxm(v_110, NULL, NULL, GxB_PLUS_FIRST_INT64, v_109, M_36, NULL);\n", + " GrB_Vector_new(&v_111, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_111, NULL, NULL, GrB_DIV_FP64, v_110, v_107, NULL);\n", + " GrB_Vector_new(&v_112, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_112, NULL, NULL, GxB_SQRT_FP64, v_111, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_112, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# stdp" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67FP64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
0.50.00.00.03.01.632993
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_113, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_114, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_114, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_113, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_114, NULL);\n",
+       "GrB_Vector_new(&v_115, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(v_115, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n",
+       "GrB_Vector_new(&v_116, GrB_INT64, 7);\n",
+       "GrB_Vector_new(&v_117, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_117, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_116, NULL, NULL, plus_pow_INT64, A, v_117, NULL);\n",
+       "GrB_Vector_new(&v_118, GrB_FP64, 7);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_118, NULL, NULL, GrB_DIV_FP64, v_116, v_113, NULL);\n",
+       "GrB_Vector_new(&v_119, GrB_FP64, 7);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_119, NULL, NULL, GrB_DIV_FP64, v_115, v_113, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_119, NULL, NULL, GxB_POW_FP64, v_119, 2, NULL);\n",
+       "GrB_Vector_new(&v_120, GrB_FP64, 7);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_120, NULL, NULL, GrB_MINUS_FP64, v_118, v_119, NULL);\n",
+       "GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_120, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_113, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_114, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_114, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_113, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_114, NULL);\n", + "GrB_Vector_new(&v_115, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(v_115, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + "GrB_Vector_new(&v_116, GrB_INT64, 7);\n", + "GrB_Vector_new(&v_117, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_117, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_116, NULL, NULL, plus_pow_INT64, A, v_117, NULL);\n", + "GrB_Vector_new(&v_118, GrB_FP64, 7);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_118, NULL, NULL, GrB_DIV_FP64, v_116, v_113, NULL);\n", + "GrB_Vector_new(&v_119, GrB_FP64, 7);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_119, NULL, NULL, GrB_DIV_FP64, v_115, v_113, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_119, NULL, NULL, GxB_POW_FP64, v_119, 2, NULL);\n", + "GrB_Vector_new(&v_120, GrB_FP64, 7);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_120, NULL, NULL, GrB_MINUS_FP64, v_118, v_119, NULL);\n", + "GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_120, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_113, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_114, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_114, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_113, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_114, NULL);\n", + " GrB_Vector_new(&v_115, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(v_115, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + " GrB_Vector_new(&v_116, GrB_INT64, 7);\n", + " GrB_Vector_new(&v_117, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_117, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_116, NULL, NULL, plus_pow_INT64, A, v_117, NULL);\n", + " GrB_Vector_new(&v_118, GrB_FP64, 7);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_118, NULL, NULL, GrB_DIV_FP64, v_116, v_113, NULL);\n", + " GrB_Vector_new(&v_119, GrB_FP64, 7);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_119, NULL, NULL, GrB_DIV_FP64, v_115, v_113, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_119, NULL, NULL, GxB_POW_FP64, v_119, 2, NULL);\n", + " GrB_Vector_new(&v_120, GrB_FP64, 7);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_120, NULL, NULL, GrB_MINUS_FP64, v_118, v_119, NULL);\n", + " GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_120, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
2.353123473735415FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_14, GrB_INT32);\n",
+       "GrB_Vector_new(&v_121, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_121, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_122, GrB_INT64, 7);\n",
+       "GrB_mxv(v_122, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_121, NULL);\n",
+       "GrB_Matrix_new(&M_37, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_37, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_123, GrB_INT64, 1);\n",
+       "GrB_vxm(v_123, NULL, NULL, GxB_PLUS_FIRST_INT64, v_122, M_37, NULL);\n",
+       "GrB_Scalar_new(&s_15, GrB_INT32);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(s_15, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n",
+       "GrB_Scalar_new(&s_16, GrB_INT64);\n",
+       "GrB_Vector_new(&v_124, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_124, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_125, GrB_INT64, 7);\n",
+       "GrB_mxv(v_125, NULL, NULL, plus_pow_INT64, A, v_124, NULL);\n",
+       "GrB_Matrix_new(&M_38, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_38, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_126, GrB_INT64, 1);\n",
+       "GrB_vxm(v_126, NULL, NULL, GxB_PLUS_FIRST_INT64, v_125, M_38, NULL);\n",
+       "GrB_Vector_new(&v_127, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_127, NULL, NULL, GrB_DIV_FP64, v_126, v_123, NULL);\n",
+       "GrB_Vector_new(&v_128, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_128, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_15, v_123, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_128, NULL, NULL, GxB_POW_FP64, v_128, 2, NULL);\n",
+       "GrB_Vector_new(&v_129, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_129, NULL, NULL, GrB_MINUS_FP64, v_127, v_128, NULL);\n",
+       "GrB_Vector_new(&v_130, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_130, NULL, NULL, GxB_SQRT_FP64, v_129, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_130, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_FP64);\n", + "GrB_Scalar_new(&s_14, GrB_INT32);\n", + "GrB_Vector_new(&v_121, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_121, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_122, GrB_INT64, 7);\n", + "GrB_mxv(v_122, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_121, NULL);\n", + "GrB_Matrix_new(&M_37, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_37, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_123, GrB_INT64, 1);\n", + "GrB_vxm(v_123, NULL, NULL, GxB_PLUS_FIRST_INT64, v_122, M_37, NULL);\n", + "GrB_Scalar_new(&s_15, GrB_INT32);\n", + "GrB_Matrix_reduce_Monoid_Scalar(s_15, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + "GrB_Scalar_new(&s_16, GrB_INT64);\n", + "GrB_Vector_new(&v_124, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_124, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_125, GrB_INT64, 7);\n", + "GrB_mxv(v_125, NULL, NULL, plus_pow_INT64, A, v_124, NULL);\n", + "GrB_Matrix_new(&M_38, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_38, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_126, GrB_INT64, 1);\n", + "GrB_vxm(v_126, NULL, NULL, GxB_PLUS_FIRST_INT64, v_125, M_38, NULL);\n", + "GrB_Vector_new(&v_127, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_127, NULL, NULL, GrB_DIV_FP64, v_126, v_123, NULL);\n", + "GrB_Vector_new(&v_128, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_128, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_15, v_123, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_128, NULL, NULL, GxB_POW_FP64, v_128, 2, NULL);\n", + "GrB_Vector_new(&v_129, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_129, NULL, NULL, GrB_MINUS_FP64, v_127, v_128, NULL);\n", + "GrB_Vector_new(&v_130, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_130, NULL, NULL, GxB_SQRT_FP64, v_129, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_130, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_FP64);\n", + " GrB_Scalar_new(&s_14, GrB_INT32);\n", + " GrB_Vector_new(&v_121, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_121, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_122, GrB_INT64, 7);\n", + " GrB_mxv(v_122, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_121, NULL);\n", + " GrB_Matrix_new(&M_37, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_37, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_123, GrB_INT64, 1);\n", + " GrB_vxm(v_123, NULL, NULL, GxB_PLUS_FIRST_INT64, v_122, M_37, NULL);\n", + " GrB_Scalar_new(&s_15, GrB_INT32);\n", + " GrB_Matrix_reduce_Monoid_Scalar(s_15, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + " GrB_Scalar_new(&s_16, GrB_INT64);\n", + " GrB_Vector_new(&v_124, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_124, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_125, GrB_INT64, 7);\n", + " GrB_mxv(v_125, NULL, NULL, plus_pow_INT64, A, v_124, NULL);\n", + " GrB_Matrix_new(&M_38, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_38, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_126, GrB_INT64, 1);\n", + " GrB_vxm(v_126, NULL, NULL, GxB_PLUS_FIRST_INT64, v_125, M_38, NULL);\n", + " GrB_Vector_new(&v_127, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_127, NULL, NULL, GrB_DIV_FP64, v_126, v_123, NULL);\n", + " GrB_Vector_new(&v_128, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_128, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_15, v_123, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_128, NULL, NULL, GxB_POW_FP64, v_128, 2, NULL);\n", + " GrB_Vector_new(&v_129, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_129, NULL, NULL, GrB_MINUS_FP64, v_127, v_128, NULL);\n", + " GrB_Vector_new(&v_130, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_130, NULL, NULL, GxB_SQRT_FP64, v_129, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_130, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# stds" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67FP64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
0.707107nannan0.04.2426412.0
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_131, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_132, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_132, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_131, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_132, NULL);\n",
+       "GrB_Vector_new(&v_133, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(v_133, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n",
+       "GrB_Vector_new(&v_134, GrB_INT64, 7);\n",
+       "GrB_Vector_new(&v_135, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_135, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_134, NULL, NULL, plus_pow_INT64, A, v_135, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_133, NULL, NULL, GxB_POW_INT32, v_133, 2, NULL);\n",
+       "GrB_Vector_new(&v_136, GrB_FP64, 7);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_136, NULL, NULL, GrB_DIV_FP64, v_133, v_131, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_131, NULL, NULL, GrB_MINUS_INT32, v_131, 1, NULL);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_136, NULL, NULL, GrB_DIV_FP64, v_136, v_131, NULL);\n",
+       "GrB_Vector_new(&v_137, GrB_FP64, 7);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_137, NULL, NULL, GrB_DIV_FP64, v_134, v_131, NULL);\n",
+       "GrB_Vector_new(&v_138, GrB_FP64, 7);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_138, NULL, NULL, GrB_MINUS_FP64, v_137, v_136, NULL);\n",
+       "GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_138, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_131, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_132, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_132, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_131, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_132, NULL);\n", + "GrB_Vector_new(&v_133, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(v_133, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + "GrB_Vector_new(&v_134, GrB_INT64, 7);\n", + "GrB_Vector_new(&v_135, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_135, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_134, NULL, NULL, plus_pow_INT64, A, v_135, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_133, NULL, NULL, GxB_POW_INT32, v_133, 2, NULL);\n", + "GrB_Vector_new(&v_136, GrB_FP64, 7);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_136, NULL, NULL, GrB_DIV_FP64, v_133, v_131, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_131, NULL, NULL, GrB_MINUS_INT32, v_131, 1, NULL);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_136, NULL, NULL, GrB_DIV_FP64, v_136, v_131, NULL);\n", + "GrB_Vector_new(&v_137, GrB_FP64, 7);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_137, NULL, NULL, GrB_DIV_FP64, v_134, v_131, NULL);\n", + "GrB_Vector_new(&v_138, GrB_FP64, 7);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_138, NULL, NULL, GrB_MINUS_FP64, v_137, v_136, NULL);\n", + "GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_138, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_131, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_132, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_132, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_131, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_132, NULL);\n", + " GrB_Vector_new(&v_133, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(v_133, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + " GrB_Vector_new(&v_134, GrB_INT64, 7);\n", + " GrB_Vector_new(&v_135, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_135, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_134, NULL, NULL, plus_pow_INT64, A, v_135, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_133, NULL, NULL, GxB_POW_INT32, v_133, 2, NULL);\n", + " GrB_Vector_new(&v_136, GrB_FP64, 7);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_136, NULL, NULL, GrB_DIV_FP64, v_133, v_131, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_131, NULL, NULL, GrB_MINUS_INT32, v_131, 1, NULL);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_136, NULL, NULL, GrB_DIV_FP64, v_136, v_131, NULL);\n", + " GrB_Vector_new(&v_137, GrB_FP64, 7);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_137, NULL, NULL, GrB_DIV_FP64, v_134, v_131, NULL);\n", + " GrB_Vector_new(&v_138, GrB_FP64, 7);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_138, NULL, NULL, GrB_MINUS_FP64, v_137, v_136, NULL);\n", + " GrB_Vector_apply(rowwise, NULL, NULL, GxB_SQRT_FP64, v_138, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
2.4679767200905864FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_17, GrB_INT32);\n",
+       "GrB_Vector_new(&v_139, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_139, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_140, GrB_INT64, 7);\n",
+       "GrB_mxv(v_140, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_139, NULL);\n",
+       "GrB_Matrix_new(&M_39, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_39, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_141, GrB_INT64, 1);\n",
+       "GrB_vxm(v_141, NULL, NULL, GxB_PLUS_FIRST_INT64, v_140, M_39, NULL);\n",
+       "GrB_Scalar_new(&s_18, GrB_INT32);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(s_18, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n",
+       "GrB_Scalar_new(&s_19, GrB_INT64);\n",
+       "GrB_Vector_new(&v_142, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_142, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_143, GrB_INT64, 7);\n",
+       "GrB_mxv(v_143, NULL, NULL, plus_pow_INT64, A, v_142, NULL);\n",
+       "GrB_Matrix_new(&M_40, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_40, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_144, GrB_INT64, 1);\n",
+       "GrB_vxm(v_144, NULL, NULL, GxB_PLUS_FIRST_INT64, v_143, M_40, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64((GrB_Vector)s_18, NULL, NULL, GxB_POW_INT32, (GrB_Vector)s_18, 2, NULL);\n",
+       "GrB_Vector_new(&v_145, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_145, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_18, v_141, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_141, NULL, NULL, GrB_MINUS_INT64, v_141, 1, NULL);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_145, NULL, NULL, GrB_DIV_FP64, v_145, v_141, NULL);\n",
+       "GrB_Vector_new(&v_146, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_146, NULL, NULL, GrB_DIV_FP64, v_144, v_141, NULL);\n",
+       "GrB_Vector_new(&v_147, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_147, NULL, NULL, GrB_MINUS_FP64, v_146, v_145, NULL);\n",
+       "GrB_Vector_new(&v_148, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_148, NULL, NULL, GxB_SQRT_FP64, v_147, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_148, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_FP64);\n", + "GrB_Scalar_new(&s_17, GrB_INT32);\n", + "GrB_Vector_new(&v_139, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_139, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_140, GrB_INT64, 7);\n", + "GrB_mxv(v_140, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_139, NULL);\n", + "GrB_Matrix_new(&M_39, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_39, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_141, GrB_INT64, 1);\n", + "GrB_vxm(v_141, NULL, NULL, GxB_PLUS_FIRST_INT64, v_140, M_39, NULL);\n", + "GrB_Scalar_new(&s_18, GrB_INT32);\n", + "GrB_Matrix_reduce_Monoid_Scalar(s_18, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + "GrB_Scalar_new(&s_19, GrB_INT64);\n", + "GrB_Vector_new(&v_142, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_142, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_143, GrB_INT64, 7);\n", + "GrB_mxv(v_143, NULL, NULL, plus_pow_INT64, A, v_142, NULL);\n", + "GrB_Matrix_new(&M_40, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_40, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_144, GrB_INT64, 1);\n", + "GrB_vxm(v_144, NULL, NULL, GxB_PLUS_FIRST_INT64, v_143, M_40, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64((GrB_Vector)s_18, NULL, NULL, GxB_POW_INT32, (GrB_Vector)s_18, 2, NULL);\n", + "GrB_Vector_new(&v_145, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_145, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_18, v_141, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_141, NULL, NULL, GrB_MINUS_INT64, v_141, 1, NULL);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_145, NULL, NULL, GrB_DIV_FP64, v_145, v_141, NULL);\n", + "GrB_Vector_new(&v_146, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_146, NULL, NULL, GrB_DIV_FP64, v_144, v_141, NULL);\n", + "GrB_Vector_new(&v_147, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_147, NULL, NULL, GrB_MINUS_FP64, v_146, v_145, NULL);\n", + "GrB_Vector_new(&v_148, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_148, NULL, NULL, GxB_SQRT_FP64, v_147, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_148, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_FP64);\n", + " GrB_Scalar_new(&s_17, GrB_INT32);\n", + " GrB_Vector_new(&v_139, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_139, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_140, GrB_INT64, 7);\n", + " GrB_mxv(v_140, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_139, NULL);\n", + " GrB_Matrix_new(&M_39, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_39, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_141, GrB_INT64, 1);\n", + " GrB_vxm(v_141, NULL, NULL, GxB_PLUS_FIRST_INT64, v_140, M_39, NULL);\n", + " GrB_Scalar_new(&s_18, GrB_INT32);\n", + " GrB_Matrix_reduce_Monoid_Scalar(s_18, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + " GrB_Scalar_new(&s_19, GrB_INT64);\n", + " GrB_Vector_new(&v_142, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_142, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_143, GrB_INT64, 7);\n", + " GrB_mxv(v_143, NULL, NULL, plus_pow_INT64, A, v_142, NULL);\n", + " GrB_Matrix_new(&M_40, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_40, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_144, GrB_INT64, 1);\n", + " GrB_vxm(v_144, NULL, NULL, GxB_PLUS_FIRST_INT64, v_143, M_40, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64((GrB_Vector)s_18, NULL, NULL, GxB_POW_INT32, (GrB_Vector)s_18, 2, NULL);\n", + " GrB_Vector_new(&v_145, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_145, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_18, v_141, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_141, NULL, NULL, GrB_MINUS_INT64, v_141, 1, NULL);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_145, NULL, NULL, GrB_DIV_FP64, v_145, v_141, NULL);\n", + " GrB_Vector_new(&v_146, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_146, NULL, NULL, GrB_DIV_FP64, v_144, v_141, NULL);\n", + " GrB_Vector_new(&v_147, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_147, NULL, NULL, GrB_MINUS_FP64, v_146, v_145, NULL);\n", + " GrB_Vector_new(&v_148, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_148, NULL, NULL, GxB_SQRT_FP64, v_147, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_148, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# sum" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT32bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
5816815
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(rowwise, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
43INT32
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT32);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n",
+       "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT32);\n", + "GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + "GrB_Scalar_extractElement_INT32(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT32);\n", + " GrB_Matrix_reduce_Monoid_Scalar(scalar, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + " GrB_Scalar_extractElement_INT32(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# sum_of_inverses" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67FP64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
0.8333330.1251.00.6666671.1428570.67619
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_149, GrB_FP64, 6);\n",
+       "GrB_Vector_assign_FP64(v_149, NULL, NULL, -1.0, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(rowwise, NULL, NULL, plus_pow_FP64, A, v_149, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_149, GrB_FP64, 6);\n", + "GrB_Vector_assign_FP64(v_149, NULL, NULL, -1.0, GrB_ALL, 6, NULL);\n", + "GrB_mxv(rowwise, NULL, NULL, plus_pow_FP64, A, v_149, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_149, GrB_FP64, 6);\n", + " GrB_Vector_assign_FP64(v_149, NULL, NULL, -1.0, GrB_ALL, 6, NULL);\n", + " GrB_mxv(rowwise, NULL, NULL, plus_pow_FP64, A, v_149, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
4.444047619047619FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_FP64);\n",
+       "GrB_Vector_new(&v_150, GrB_FP64, 6);\n",
+       "GrB_Vector_assign_FP64(v_150, NULL, NULL, -1.0, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_151, GrB_FP64, 7);\n",
+       "GrB_mxv(v_151, NULL, NULL, plus_pow_FP64, A, v_150, NULL);\n",
+       "GrB_Matrix_new(&M_41, GrB_FP64, 7, 1);\n",
+       "GrB_Matrix_assign_FP64(M_41, NULL, NULL, -1.0, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_152, GrB_FP64, 1);\n",
+       "GrB_vxm(v_152, NULL, NULL, GxB_PLUS_FIRST_FP64, v_151, M_41, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_152, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_FP64);\n", + "GrB_Vector_new(&v_150, GrB_FP64, 6);\n", + "GrB_Vector_assign_FP64(v_150, NULL, NULL, -1.0, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_151, GrB_FP64, 7);\n", + "GrB_mxv(v_151, NULL, NULL, plus_pow_FP64, A, v_150, NULL);\n", + "GrB_Matrix_new(&M_41, GrB_FP64, 7, 1);\n", + "GrB_Matrix_assign_FP64(M_41, NULL, NULL, -1.0, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_152, GrB_FP64, 1);\n", + "GrB_vxm(v_152, NULL, NULL, GxB_PLUS_FIRST_FP64, v_151, M_41, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_152, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_FP64);\n", + " GrB_Vector_new(&v_150, GrB_FP64, 6);\n", + " GrB_Vector_assign_FP64(v_150, NULL, NULL, -1.0, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_151, GrB_FP64, 7);\n", + " GrB_mxv(v_151, NULL, NULL, plus_pow_FP64, A, v_150, NULL);\n", + " GrB_Matrix_new(&M_41, GrB_FP64, 7, 1);\n", + " GrB_Matrix_assign_FP64(M_41, NULL, NULL, -1.0, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_152, GrB_FP64, 1);\n", + " GrB_vxm(v_152, NULL, NULL, GxB_PLUS_FIRST_FP64, v_151, M_41, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_152, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# sum_of_squares" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67INT64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
13641185083
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_INT64, 7);\n",
+       "GrB_Vector_new(&v_153, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_153, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(rowwise, NULL, NULL, plus_pow_INT64, A, v_153, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_INT64, 7);\n", + "GrB_Vector_new(&v_153, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_153, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_mxv(rowwise, NULL, NULL, plus_pow_INT64, A, v_153, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_INT64, 7);\n", + " GrB_Vector_new(&v_153, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_153, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_mxv(rowwise, NULL, NULL, plus_pow_INT64, A, v_153, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
229INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_INT64);\n",
+       "GrB_Vector_new(&v_154, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_154, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_155, GrB_INT64, 7);\n",
+       "GrB_mxv(v_155, NULL, NULL, plus_pow_INT64, A, v_154, NULL);\n",
+       "GrB_Matrix_new(&M_42, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_42, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_156, GrB_INT64, 1);\n",
+       "GrB_vxm(v_156, NULL, NULL, GxB_PLUS_FIRST_INT64, v_155, M_42, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_156, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_INT64);\n", + "GrB_Vector_new(&v_154, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_154, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_155, GrB_INT64, 7);\n", + "GrB_mxv(v_155, NULL, NULL, plus_pow_INT64, A, v_154, NULL);\n", + "GrB_Matrix_new(&M_42, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_42, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_156, GrB_INT64, 1);\n", + "GrB_vxm(v_156, NULL, NULL, GxB_PLUS_FIRST_INT64, v_155, M_42, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_156, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_INT64);\n", + " GrB_Vector_new(&v_154, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_154, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_155, GrB_INT64, 7);\n", + " GrB_mxv(v_155, NULL, NULL, plus_pow_INT64, A, v_154, NULL);\n", + " GrB_Matrix_new(&M_42, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_42, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_156, GrB_INT64, 1);\n", + " GrB_vxm(v_156, NULL, NULL, GxB_PLUS_FIRST_INT64, v_155, M_42, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_156, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# varp" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67FP64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
0.250.00.00.09.02.666667
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_157, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_158, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_158, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_157, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_158, NULL);\n",
+       "GrB_Vector_new(&v_159, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(v_159, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n",
+       "GrB_Vector_new(&v_160, GrB_INT64, 7);\n",
+       "GrB_Vector_new(&v_161, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_161, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_160, NULL, NULL, plus_pow_INT64, A, v_161, NULL);\n",
+       "GrB_Vector_new(&v_162, GrB_FP64, 7);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_162, NULL, NULL, GrB_DIV_FP64, v_160, v_157, NULL);\n",
+       "GrB_Vector_new(&v_163, GrB_FP64, 7);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_163, NULL, NULL, GrB_DIV_FP64, v_159, v_157, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_163, NULL, NULL, GxB_POW_FP64, v_163, 2, NULL);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_MINUS_FP64, v_162, v_163, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_157, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_158, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_158, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_157, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_158, NULL);\n", + "GrB_Vector_new(&v_159, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(v_159, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + "GrB_Vector_new(&v_160, GrB_INT64, 7);\n", + "GrB_Vector_new(&v_161, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_161, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_160, NULL, NULL, plus_pow_INT64, A, v_161, NULL);\n", + "GrB_Vector_new(&v_162, GrB_FP64, 7);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_162, NULL, NULL, GrB_DIV_FP64, v_160, v_157, NULL);\n", + "GrB_Vector_new(&v_163, GrB_FP64, 7);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_163, NULL, NULL, GrB_DIV_FP64, v_159, v_157, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_163, NULL, NULL, GxB_POW_FP64, v_163, 2, NULL);\n", + "GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_MINUS_FP64, v_162, v_163, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_157, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_158, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_158, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_157, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_158, NULL);\n", + " GrB_Vector_new(&v_159, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(v_159, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + " GrB_Vector_new(&v_160, GrB_INT64, 7);\n", + " GrB_Vector_new(&v_161, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_161, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_160, NULL, NULL, plus_pow_INT64, A, v_161, NULL);\n", + " GrB_Vector_new(&v_162, GrB_FP64, 7);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_162, NULL, NULL, GrB_DIV_FP64, v_160, v_157, NULL);\n", + " GrB_Vector_new(&v_163, GrB_FP64, 7);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_163, NULL, NULL, GrB_DIV_FP64, v_159, v_157, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_163, NULL, NULL, GxB_POW_FP64, v_163, 2, NULL);\n", + " GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_MINUS_FP64, v_162, v_163, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
5.537190082644626FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_20, GrB_INT32);\n",
+       "GrB_Vector_new(&v_164, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_164, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_165, GrB_INT64, 7);\n",
+       "GrB_mxv(v_165, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_164, NULL);\n",
+       "GrB_Matrix_new(&M_43, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_43, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_166, GrB_INT64, 1);\n",
+       "GrB_vxm(v_166, NULL, NULL, GxB_PLUS_FIRST_INT64, v_165, M_43, NULL);\n",
+       "GrB_Scalar_new(&s_21, GrB_INT32);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(s_21, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n",
+       "GrB_Scalar_new(&s_22, GrB_INT64);\n",
+       "GrB_Vector_new(&v_167, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_167, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_168, GrB_INT64, 7);\n",
+       "GrB_mxv(v_168, NULL, NULL, plus_pow_INT64, A, v_167, NULL);\n",
+       "GrB_Matrix_new(&M_44, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_44, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_169, GrB_INT64, 1);\n",
+       "GrB_vxm(v_169, NULL, NULL, GxB_PLUS_FIRST_INT64, v_168, M_44, NULL);\n",
+       "GrB_Vector_new(&v_170, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_170, NULL, NULL, GrB_DIV_FP64, v_169, v_166, NULL);\n",
+       "GrB_Vector_new(&v_171, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_171, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_21, v_166, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_171, NULL, NULL, GxB_POW_FP64, v_171, 2, NULL);\n",
+       "GrB_Vector_new(&v_172, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_172, NULL, NULL, GrB_MINUS_FP64, v_170, v_171, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_172, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_FP64);\n", + "GrB_Scalar_new(&s_20, GrB_INT32);\n", + "GrB_Vector_new(&v_164, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_164, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_165, GrB_INT64, 7);\n", + "GrB_mxv(v_165, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_164, NULL);\n", + "GrB_Matrix_new(&M_43, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_43, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_166, GrB_INT64, 1);\n", + "GrB_vxm(v_166, NULL, NULL, GxB_PLUS_FIRST_INT64, v_165, M_43, NULL);\n", + "GrB_Scalar_new(&s_21, GrB_INT32);\n", + "GrB_Matrix_reduce_Monoid_Scalar(s_21, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + "GrB_Scalar_new(&s_22, GrB_INT64);\n", + "GrB_Vector_new(&v_167, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_167, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_168, GrB_INT64, 7);\n", + "GrB_mxv(v_168, NULL, NULL, plus_pow_INT64, A, v_167, NULL);\n", + "GrB_Matrix_new(&M_44, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_44, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_169, GrB_INT64, 1);\n", + "GrB_vxm(v_169, NULL, NULL, GxB_PLUS_FIRST_INT64, v_168, M_44, NULL);\n", + "GrB_Vector_new(&v_170, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_170, NULL, NULL, GrB_DIV_FP64, v_169, v_166, NULL);\n", + "GrB_Vector_new(&v_171, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_171, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_21, v_166, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_171, NULL, NULL, GxB_POW_FP64, v_171, 2, NULL);\n", + "GrB_Vector_new(&v_172, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_172, NULL, NULL, GrB_MINUS_FP64, v_170, v_171, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_172, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_FP64);\n", + " GrB_Scalar_new(&s_20, GrB_INT32);\n", + " GrB_Vector_new(&v_164, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_164, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_165, GrB_INT64, 7);\n", + " GrB_mxv(v_165, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_164, NULL);\n", + " GrB_Matrix_new(&M_43, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_43, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_166, GrB_INT64, 1);\n", + " GrB_vxm(v_166, NULL, NULL, GxB_PLUS_FIRST_INT64, v_165, M_43, NULL);\n", + " GrB_Scalar_new(&s_21, GrB_INT32);\n", + " GrB_Matrix_reduce_Monoid_Scalar(s_21, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + " GrB_Scalar_new(&s_22, GrB_INT64);\n", + " GrB_Vector_new(&v_167, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_167, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_168, GrB_INT64, 7);\n", + " GrB_mxv(v_168, NULL, NULL, plus_pow_INT64, A, v_167, NULL);\n", + " GrB_Matrix_new(&M_44, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_44, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_169, GrB_INT64, 1);\n", + " GrB_vxm(v_169, NULL, NULL, GxB_PLUS_FIRST_INT64, v_168, M_44, NULL);\n", + " GrB_Vector_new(&v_170, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_170, NULL, NULL, GrB_DIV_FP64, v_169, v_166, NULL);\n", + " GrB_Vector_new(&v_171, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_171, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_21, v_166, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_171, NULL, NULL, GxB_POW_FP64, v_171, 2, NULL);\n", + " GrB_Vector_new(&v_172, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_172, NULL, NULL, GrB_MINUS_FP64, v_170, v_171, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_172, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# vars" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "
rowwise
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
67FP64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
0.5nannan0.018.04.0
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Vector_new(&rowwise, GrB_FP64, 7);\n",
+       "GrB_Vector_new(&v_173, GrB_INT32, 7);\n",
+       "GrB_Vector_new(&v_174, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_174, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_173, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_174, NULL);\n",
+       "GrB_Vector_new(&v_175, GrB_INT32, 7);\n",
+       "GrB_Matrix_reduce_Monoid(v_175, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n",
+       "GrB_Vector_new(&v_176, GrB_INT64, 7);\n",
+       "GrB_Vector_new(&v_177, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_177, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_mxv(v_176, NULL, NULL, plus_pow_INT64, A, v_177, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_175, NULL, NULL, GxB_POW_INT32, v_175, 2, NULL);\n",
+       "GrB_Vector_new(&v_178, GrB_FP64, 7);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_178, NULL, NULL, GrB_DIV_FP64, v_175, v_173, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_173, NULL, NULL, GrB_MINUS_INT32, v_173, 1, NULL);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_178, NULL, NULL, GrB_DIV_FP64, v_178, v_173, NULL);\n",
+       "GrB_Vector_new(&v_179, GrB_FP64, 7);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_179, NULL, NULL, GrB_DIV_FP64, v_176, v_173, NULL);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_MINUS_FP64, v_179, v_178, NULL);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + "GrB_Vector_new(&v_173, GrB_INT32, 7);\n", + "GrB_Vector_new(&v_174, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_174, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_173, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_174, NULL);\n", + "GrB_Vector_new(&v_175, GrB_INT32, 7);\n", + "GrB_Matrix_reduce_Monoid(v_175, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + "GrB_Vector_new(&v_176, GrB_INT64, 7);\n", + "GrB_Vector_new(&v_177, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_177, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_mxv(v_176, NULL, NULL, plus_pow_INT64, A, v_177, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_175, NULL, NULL, GxB_POW_INT32, v_175, 2, NULL);\n", + "GrB_Vector_new(&v_178, GrB_FP64, 7);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_178, NULL, NULL, GrB_DIV_FP64, v_175, v_173, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_173, NULL, NULL, GrB_MINUS_INT32, v_173, 1, NULL);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_178, NULL, NULL, GrB_DIV_FP64, v_178, v_173, NULL);\n", + "GrB_Vector_new(&v_179, GrB_FP64, 7);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_179, NULL, NULL, GrB_DIV_FP64, v_176, v_173, NULL);\n", + "GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_MINUS_FP64, v_179, v_178, NULL);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Vector_new(&rowwise, GrB_FP64, 7);\n", + " GrB_Vector_new(&v_173, GrB_INT32, 7);\n", + " GrB_Vector_new(&v_174, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_174, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_173, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_174, NULL);\n", + " GrB_Vector_new(&v_175, GrB_INT32, 7);\n", + " GrB_Matrix_reduce_Monoid(v_175, NULL, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + " GrB_Vector_new(&v_176, GrB_INT64, 7);\n", + " GrB_Vector_new(&v_177, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_177, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_mxv(v_176, NULL, NULL, plus_pow_INT64, A, v_177, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_175, NULL, NULL, GxB_POW_INT32, v_175, 2, NULL);\n", + " GrB_Vector_new(&v_178, GrB_FP64, 7);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_178, NULL, NULL, GrB_DIV_FP64, v_175, v_173, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_173, NULL, NULL, GrB_MINUS_INT32, v_173, 1, NULL);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_178, NULL, NULL, GrB_DIV_FP64, v_178, v_173, NULL);\n", + " GrB_Vector_new(&v_179, GrB_FP64, 7);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_179, NULL, NULL, GrB_DIV_FP64, v_176, v_173, NULL);\n", + " GrB_Vector_eWiseMult_BinaryOp(rowwise, NULL, NULL, GrB_MINUS_FP64, v_179, v_178, NULL);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
scalar
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
6.09090909090909FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&scalar, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_23, GrB_INT32);\n",
+       "GrB_Vector_new(&v_180, GrB_BOOL, 6);\n",
+       "GrB_Vector_assign_BOOL(v_180, NULL, NULL, False, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_181, GrB_INT64, 7);\n",
+       "GrB_mxv(v_181, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_180, NULL);\n",
+       "GrB_Matrix_new(&M_45, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_45, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_182, GrB_INT64, 1);\n",
+       "GrB_vxm(v_182, NULL, NULL, GxB_PLUS_FIRST_INT64, v_181, M_45, NULL);\n",
+       "GrB_Scalar_new(&s_24, GrB_INT32);\n",
+       "GrB_Matrix_reduce_Monoid_Scalar(s_24, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n",
+       "GrB_Scalar_new(&s_25, GrB_INT64);\n",
+       "GrB_Vector_new(&v_183, GrB_INT64, 6);\n",
+       "GrB_Vector_assign_INT64(v_183, NULL, NULL, 2, GrB_ALL, 6, NULL);\n",
+       "GrB_Vector_new(&v_184, GrB_INT64, 7);\n",
+       "GrB_mxv(v_184, NULL, NULL, plus_pow_INT64, A, v_183, NULL);\n",
+       "GrB_Matrix_new(&M_46, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_46, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_185, GrB_INT64, 1);\n",
+       "GrB_vxm(v_185, NULL, NULL, GxB_PLUS_FIRST_INT64, v_184, M_46, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64((GrB_Vector)s_24, NULL, NULL, GxB_POW_INT32, (GrB_Vector)s_24, 2, NULL);\n",
+       "GrB_Vector_new(&v_186, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_186, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_24, v_182, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_182, NULL, NULL, GrB_MINUS_INT64, v_182, 1, NULL);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_186, NULL, NULL, GrB_DIV_FP64, v_186, v_182, NULL);\n",
+       "GrB_Vector_new(&v_187, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_187, NULL, NULL, GrB_DIV_FP64, v_185, v_182, NULL);\n",
+       "GrB_Vector_new(&v_188, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_188, NULL, NULL, GrB_MINUS_FP64, v_187, v_186, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(scalar, v_188, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&scalar, GrB_FP64);\n", + "GrB_Scalar_new(&s_23, GrB_INT32);\n", + "GrB_Vector_new(&v_180, GrB_BOOL, 6);\n", + "GrB_Vector_assign_BOOL(v_180, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_181, GrB_INT64, 7);\n", + "GrB_mxv(v_181, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_180, NULL);\n", + "GrB_Matrix_new(&M_45, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_45, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_182, GrB_INT64, 1);\n", + "GrB_vxm(v_182, NULL, NULL, GxB_PLUS_FIRST_INT64, v_181, M_45, NULL);\n", + "GrB_Scalar_new(&s_24, GrB_INT32);\n", + "GrB_Matrix_reduce_Monoid_Scalar(s_24, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + "GrB_Scalar_new(&s_25, GrB_INT64);\n", + "GrB_Vector_new(&v_183, GrB_INT64, 6);\n", + "GrB_Vector_assign_INT64(v_183, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + "GrB_Vector_new(&v_184, GrB_INT64, 7);\n", + "GrB_mxv(v_184, NULL, NULL, plus_pow_INT64, A, v_183, NULL);\n", + "GrB_Matrix_new(&M_46, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_46, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_185, GrB_INT64, 1);\n", + "GrB_vxm(v_185, NULL, NULL, GxB_PLUS_FIRST_INT64, v_184, M_46, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64((GrB_Vector)s_24, NULL, NULL, GxB_POW_INT32, (GrB_Vector)s_24, 2, NULL);\n", + "GrB_Vector_new(&v_186, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_186, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_24, v_182, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_182, NULL, NULL, GrB_MINUS_INT64, v_182, 1, NULL);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_186, NULL, NULL, GrB_DIV_FP64, v_186, v_182, NULL);\n", + "GrB_Vector_new(&v_187, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_187, NULL, NULL, GrB_DIV_FP64, v_185, v_182, NULL);\n", + "GrB_Vector_new(&v_188, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_188, NULL, NULL, GrB_MINUS_FP64, v_187, v_186, NULL);\n", + "GrB_Vector_extractElement_Scalar(scalar, v_188, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, scalar);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&scalar, GrB_FP64);\n", + " GrB_Scalar_new(&s_23, GrB_INT32);\n", + " GrB_Vector_new(&v_180, GrB_BOOL, 6);\n", + " GrB_Vector_assign_BOOL(v_180, NULL, NULL, False, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_181, GrB_INT64, 7);\n", + " GrB_mxv(v_181, NULL, NULL, GxB_PLUS_PAIR_INT64, A, v_180, NULL);\n", + " GrB_Matrix_new(&M_45, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_45, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_182, GrB_INT64, 1);\n", + " GrB_vxm(v_182, NULL, NULL, GxB_PLUS_FIRST_INT64, v_181, M_45, NULL);\n", + " GrB_Scalar_new(&s_24, GrB_INT32);\n", + " GrB_Matrix_reduce_Monoid_Scalar(s_24, NULL, GrB_PLUS_MONOID_INT32, A, NULL);\n", + " GrB_Scalar_new(&s_25, GrB_INT64);\n", + " GrB_Vector_new(&v_183, GrB_INT64, 6);\n", + " GrB_Vector_assign_INT64(v_183, NULL, NULL, 2, GrB_ALL, 6, NULL);\n", + " GrB_Vector_new(&v_184, GrB_INT64, 7);\n", + " GrB_mxv(v_184, NULL, NULL, plus_pow_INT64, A, v_183, NULL);\n", + " GrB_Matrix_new(&M_46, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_46, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_185, GrB_INT64, 1);\n", + " GrB_vxm(v_185, NULL, NULL, GxB_PLUS_FIRST_INT64, v_184, M_46, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64((GrB_Vector)s_24, NULL, NULL, GxB_POW_INT32, (GrB_Vector)s_24, 2, NULL);\n", + " GrB_Vector_new(&v_186, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_186, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_24, v_182, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_182, NULL, NULL, GrB_MINUS_INT64, v_182, 1, NULL);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_186, NULL, NULL, GrB_DIV_FP64, v_186, v_182, NULL);\n", + " GrB_Vector_new(&v_187, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_187, NULL, NULL, GrB_DIV_FP64, v_185, v_182, NULL);\n", + " GrB_Vector_new(&v_188, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_188, NULL, NULL, GrB_MINUS_FP64, v_187, v_186, NULL);\n", + " GrB_Vector_extractElement_Scalar(scalar, v_188, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, scalar);" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], "source": [ "skipped = set()\n", "for aggname in sorted(dir(agg)):\n", @@ -120,43 +28284,70 @@ " if not isinstance(aggregator, agg.Aggregator):\n", " continue\n", " try:\n", - " with Recorder() as r:\n", - " # The type-handing of aggregators still needs work, so hack it for now\n", - " if aggname in {\"all\", \"any\"}:\n", - " B = A.dup(dtype=bool)\n", - " elif aggname in {\"bitwise_all\", \"bitwise_any\"}:\n", - " B = A.dup(dtype=\"UINT64\")\n", - " else:\n", - " B = A\n", - " result = B.reduce_rowwise(aggregator).new()\n", - " # result = B.reduce_columnwise(aggregator).new()\n", - " # result = B.reduce_scalar(aggregator).new()\n", - " # result = B.T.reduce_rowwise(aggregator).new()\n", - " # result = B.T.reduce_columnwise(aggregator).new()\n", - " # result = B.T.reduce_scalar(aggregator).new()\n", - " display(Markdown(f\"# {aggname}\"))\n", + " # The type-handing of aggregators still needs work, so hack it for now\n", + " if aggname in {\"all\", \"any\"}:\n", + " B = A.dup(dtype=bool)\n", + " elif aggname in {\"bitwise_all\", \"bitwise_any\"}:\n", + " B = A.dup(dtype=\"UINT64\")\n", + " else:\n", + " B = A\n", + " # result = B.reduce_columnwise(aggregator).new()\n", + " # result = B.reduce_scalar(aggregator).new()\n", + " # result = B.T.reduce_rowwise(aggregator).new()\n", + " # result = B.T.reduce_columnwise(aggregator).new()\n", + " # result = B.T.reduce_scalar(aggregator).new()\n", + " # display(Markdown(r._repr_html_()))\n", + " display(Markdown(f\"# {aggname}\"))\n", + " with Recorder(max_rows=None) as r:\n", + " result = B.reduce_rowwise(aggregator).new(name=\"rowwise\")\n", + " display(HTML(result._repr_html_()))\n", + " display(r)\n", + " with Recorder(max_rows=None) as r:\n", + " result = B.reduce_scalar(aggregator).new(name=\"scalar\")\n", " display(HTML(result._repr_html_()))\n", - " display(Markdown(r._repr_markdown_()))\n", + " display(r)\n", " except Exception:\n", " skipped.add(aggname)" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "id": "dba8866f", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "{'argmax', 'argmin', 'first_index', 'last_index'}" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "skipped" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "id": "75726b2c", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "ValueError('Aggregator argmin may not be used with Matrix.reduce_scalar.')" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "try:\n", " A.reduce_scalar(agg.argmin).new()\n", @@ -167,10 +28358,157 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 11, "id": "4a91af86", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "
v189
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Vector
nvals
size
dtype
format
47INT64bitmap
\n", + "
\n", + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
0123456
1120
\n", + "
" + ], + "text/plain": [ + "\"v_189\" nvals size dtype format\n", + "gb.Vector 4 7 INT64 bitmap\n", + "-------------------------------------\n", + "index 0 1 2 3 4 5 6\n", + "value 1 1 2 0" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "v = Vector.from_values([1, 3, 4, 6], [1, 1, 2, 0])\n", "v" @@ -178,10 +28516,12219 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 12, "id": "db234a39", - "metadata": {}, - "outputs": [], + "metadata": { + "scrolled": false + }, + "outputs": [ + { + "data": { + "text/markdown": [ + "# L0norm" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s26
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
3INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_26, GrB_INT64);\n",
+       "GrB_Vector_new(&v_190, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_47, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_47, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_190, NULL, NULL, GxB_PLUS_ISNE_INT64, v_189, M_47, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_26, v_190, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_26);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_26, GrB_INT64);\n", + "GrB_Vector_new(&v_190, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_47, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_47, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_190, NULL, NULL, GxB_PLUS_ISNE_INT64, v_189, M_47, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_26, v_190, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_26);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_26, GrB_INT64);\n", + " GrB_Vector_new(&v_190, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_47, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_47, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_190, NULL, NULL, GxB_PLUS_ISNE_INT64, v_189, M_47, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_26, v_190, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_26);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# L1norm" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s27
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
4INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_27, GrB_INT64);\n",
+       "GrB_Vector_new(&v_191, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_48, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_48, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_191, NULL, NULL, plus_absfirst_INT64, v_189, M_48, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_27, v_191, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_27);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_27, GrB_INT64);\n", + "GrB_Vector_new(&v_191, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_48, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_48, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_191, NULL, NULL, plus_absfirst_INT64, v_189, M_48, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_27, v_191, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_27);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_27, GrB_INT64);\n", + " GrB_Vector_new(&v_191, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_48, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_48, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_191, NULL, NULL, plus_absfirst_INT64, v_189, M_48, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_27, v_191, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_27);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# L2norm" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s28
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
2.449489742783178FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_28, GrB_FP64);\n",
+       "GrB_Vector_new(&v_192, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_49, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_49, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_192, NULL, NULL, plus_pow_INT64, v_189, M_49, NULL);\n",
+       "GrB_Vector_new(&v_193, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_193, NULL, NULL, GxB_SQRT_FP64, v_192, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_28, v_193, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, s_28);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_28, GrB_FP64);\n", + "GrB_Vector_new(&v_192, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_49, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_49, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_192, NULL, NULL, plus_pow_INT64, v_189, M_49, NULL);\n", + "GrB_Vector_new(&v_193, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_193, NULL, NULL, GxB_SQRT_FP64, v_192, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_28, v_193, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, s_28);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_28, GrB_FP64);\n", + " GrB_Vector_new(&v_192, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_49, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_49, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_192, NULL, NULL, plus_pow_INT64, v_189, M_49, NULL);\n", + " GrB_Vector_new(&v_193, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_193, NULL, NULL, GxB_SQRT_FP64, v_192, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_28, v_193, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, s_28);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# Linfnorm" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s29
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
2INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_29, GrB_INT64);\n",
+       "GrB_Vector_new(&v_194, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_50, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_50, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_194, NULL, NULL, max_absfirst_INT64, v_189, M_50, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_29, v_194, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_29);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_29, GrB_INT64);\n", + "GrB_Vector_new(&v_194, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_50, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_50, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_194, NULL, NULL, max_absfirst_INT64, v_189, M_50, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_29, v_194, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_29);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_29, GrB_INT64);\n", + " GrB_Vector_new(&v_194, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_50, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_50, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_194, NULL, NULL, max_absfirst_INT64, v_189, M_50, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_29, v_194, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_29);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# all" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s30
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
FalseBOOL
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_30, GrB_BOOL);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_30, NULL, GrB_LAND_MONOID_BOOL, v_195, NULL);\n",
+       "GrB_Scalar_extractElement_BOOL(&s_temp, s_30);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_30, GrB_BOOL);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_30, NULL, GrB_LAND_MONOID_BOOL, v_195, NULL);\n", + "GrB_Scalar_extractElement_BOOL(&s_temp, s_30);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_30, GrB_BOOL);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_30, NULL, GrB_LAND_MONOID_BOOL, v_195, NULL);\n", + " GrB_Scalar_extractElement_BOOL(&s_temp, s_30);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# any" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s31
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
TrueBOOL
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_31, GrB_BOOL);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_31, NULL, GrB_LOR_MONOID_BOOL, v_196, NULL);\n",
+       "GrB_Scalar_extractElement_BOOL(&s_temp, s_31);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_31, GrB_BOOL);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_31, NULL, GrB_LOR_MONOID_BOOL, v_196, NULL);\n", + "GrB_Scalar_extractElement_BOOL(&s_temp, s_31);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_31, GrB_BOOL);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_31, NULL, GrB_LOR_MONOID_BOOL, v_196, NULL);\n", + " GrB_Scalar_extractElement_BOOL(&s_temp, s_31);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# any_value" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s32
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
1INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_32, GrB_INT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_32, NULL, GxB_ANY_INT64_MONOID, v_189, NULL);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_32);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_32, GrB_INT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_32, NULL, GxB_ANY_INT64_MONOID, v_189, NULL);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_32);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_32, GrB_INT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_32, NULL, GxB_ANY_INT64_MONOID, v_189, NULL);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_32);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# argmax" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s33
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
4INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_33, GrB_INT64);\n",
+       "GrB_Vector_reduce_INT64(&s_34, NULL, GrB_MAX_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Vector_new(&v_197, GrB_BOOL, 7);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_197, NULL, NULL, GrB_EQ_INT64, v_189, s_34, NULL);\n",
+       "GrB_Vector_assign(v_197, v_197, NULL, v_197, GrB_ALL, 7, GrB_DESC_R);\n",
+       "GrB_Matrix_new(&M_51, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_51, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_198, GrB_INT64, 1);\n",
+       "GrB_vxm(v_198, NULL, NULL, GxB_MIN_SECONDI_INT64, v_197, M_51, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_33, v_198, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_33);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_33, GrB_INT64);\n", + "GrB_Vector_reduce_INT64(&s_34, NULL, GrB_MAX_MONOID_INT64, v_189, NULL);\n", + "GrB_Vector_new(&v_197, GrB_BOOL, 7);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_197, NULL, NULL, GrB_EQ_INT64, v_189, s_34, NULL);\n", + "GrB_Vector_assign(v_197, v_197, NULL, v_197, GrB_ALL, 7, GrB_DESC_R);\n", + "GrB_Matrix_new(&M_51, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_51, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_198, GrB_INT64, 1);\n", + "GrB_vxm(v_198, NULL, NULL, GxB_MIN_SECONDI_INT64, v_197, M_51, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_33, v_198, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_33);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_33, GrB_INT64);\n", + " GrB_Vector_reduce_INT64(&s_34, NULL, GrB_MAX_MONOID_INT64, v_189, NULL);\n", + " GrB_Vector_new(&v_197, GrB_BOOL, 7);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_197, NULL, NULL, GrB_EQ_INT64, v_189, s_34, NULL);\n", + " GrB_Vector_assign(v_197, v_197, NULL, v_197, GrB_ALL, 7, GrB_DESC_R);\n", + " GrB_Matrix_new(&M_51, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_51, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_198, GrB_INT64, 1);\n", + " GrB_vxm(v_198, NULL, NULL, GxB_MIN_SECONDI_INT64, v_197, M_51, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_33, v_198, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_33);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# argmin" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s35
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
6INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_35, GrB_INT64);\n",
+       "GrB_Vector_reduce_INT64(&s_36, NULL, GrB_MIN_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Vector_new(&v_199, GrB_BOOL, 7);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_199, NULL, NULL, GrB_EQ_INT64, v_189, s_36, NULL);\n",
+       "GrB_Vector_assign(v_199, v_199, NULL, v_199, GrB_ALL, 7, GrB_DESC_R);\n",
+       "GrB_Matrix_new(&M_52, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_52, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_200, GrB_INT64, 1);\n",
+       "GrB_vxm(v_200, NULL, NULL, GxB_MIN_SECONDI_INT64, v_199, M_52, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_35, v_200, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_35);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_35, GrB_INT64);\n", + "GrB_Vector_reduce_INT64(&s_36, NULL, GrB_MIN_MONOID_INT64, v_189, NULL);\n", + "GrB_Vector_new(&v_199, GrB_BOOL, 7);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_199, NULL, NULL, GrB_EQ_INT64, v_189, s_36, NULL);\n", + "GrB_Vector_assign(v_199, v_199, NULL, v_199, GrB_ALL, 7, GrB_DESC_R);\n", + "GrB_Matrix_new(&M_52, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_52, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_200, GrB_INT64, 1);\n", + "GrB_vxm(v_200, NULL, NULL, GxB_MIN_SECONDI_INT64, v_199, M_52, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_35, v_200, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_35);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_35, GrB_INT64);\n", + " GrB_Vector_reduce_INT64(&s_36, NULL, GrB_MIN_MONOID_INT64, v_189, NULL);\n", + " GrB_Vector_new(&v_199, GrB_BOOL, 7);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_199, NULL, NULL, GrB_EQ_INT64, v_189, s_36, NULL);\n", + " GrB_Vector_assign(v_199, v_199, NULL, v_199, GrB_ALL, 7, GrB_DESC_R);\n", + " GrB_Matrix_new(&M_52, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_52, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_200, GrB_INT64, 1);\n", + " GrB_vxm(v_200, NULL, NULL, GxB_MIN_SECONDI_INT64, v_199, M_52, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_35, v_200, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_35);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# bitwise_all" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s37
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
0UINT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_37, GrB_UINT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_37, NULL, GxB_BAND_UINT64_MONOID, v_201, NULL);\n",
+       "GrB_Scalar_extractElement_UINT64(&s_temp, s_37);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_37, GrB_UINT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_37, NULL, GxB_BAND_UINT64_MONOID, v_201, NULL);\n", + "GrB_Scalar_extractElement_UINT64(&s_temp, s_37);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_37, GrB_UINT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_37, NULL, GxB_BAND_UINT64_MONOID, v_201, NULL);\n", + " GrB_Scalar_extractElement_UINT64(&s_temp, s_37);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# bitwise_any" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s38
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
3UINT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_38, GrB_UINT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_38, NULL, GxB_BOR_UINT64_MONOID, v_202, NULL);\n",
+       "GrB_Scalar_extractElement_UINT64(&s_temp, s_38);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_38, GrB_UINT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_38, NULL, GxB_BOR_UINT64_MONOID, v_202, NULL);\n", + "GrB_Scalar_extractElement_UINT64(&s_temp, s_38);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_38, GrB_UINT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_38, NULL, GxB_BOR_UINT64_MONOID, v_202, NULL);\n", + " GrB_Scalar_extractElement_UINT64(&s_temp, s_38);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# count" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s39
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
4INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_39, GrB_INT64);\n",
+       "GrB_Vector_new(&v_203, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_53, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_53, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_203, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_53, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_39, v_203, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_39);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_39, GrB_INT64);\n", + "GrB_Vector_new(&v_203, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_53, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_53, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_203, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_53, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_39, v_203, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_39);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_39, GrB_INT64);\n", + " GrB_Vector_new(&v_203, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_53, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_53, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_203, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_53, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_39, v_203, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_39);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# count_nonzero" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s40
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
3INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_40, GrB_INT64);\n",
+       "GrB_Vector_new(&v_204, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_54, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_54, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_204, NULL, NULL, GxB_PLUS_ISNE_INT64, v_189, M_54, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_40, v_204, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_40);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_40, GrB_INT64);\n", + "GrB_Vector_new(&v_204, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_54, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_54, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_204, NULL, NULL, GxB_PLUS_ISNE_INT64, v_189, M_54, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_40, v_204, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_40);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_40, GrB_INT64);\n", + " GrB_Vector_new(&v_204, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_54, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_54, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_204, NULL, NULL, GxB_PLUS_ISNE_INT64, v_189, M_54, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_40, v_204, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_40);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# count_zero" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s41
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
1INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_41, GrB_INT64);\n",
+       "GrB_Vector_new(&v_205, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_55, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_55, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_205, NULL, NULL, GxB_PLUS_ISEQ_INT64, v_189, M_55, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_41, v_205, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_41);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_41, GrB_INT64);\n", + "GrB_Vector_new(&v_205, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_55, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_55, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_205, NULL, NULL, GxB_PLUS_ISEQ_INT64, v_189, M_55, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_41, v_205, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_41);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_41, GrB_INT64);\n", + " GrB_Vector_new(&v_205, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_55, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_55, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_205, NULL, NULL, GxB_PLUS_ISEQ_INT64, v_189, M_55, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_41, v_205, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_41);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# exists" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s42
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
1INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_42, GrB_INT64);\n",
+       "GrB_Vector_new(&v_206, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_56, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_56, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_206, NULL, NULL, GxB_ANY_PAIR_INT64, v_189, M_56, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_42, v_206, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_42);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_42, GrB_INT64);\n", + "GrB_Vector_new(&v_206, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_56, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_56, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_206, NULL, NULL, GxB_ANY_PAIR_INT64, v_189, M_56, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_42, v_206, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_42);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_42, GrB_INT64);\n", + " GrB_Vector_new(&v_206, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_56, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_56, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_206, NULL, NULL, GxB_ANY_PAIR_INT64, v_189, M_56, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_42, v_206, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_42);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# first" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s43
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
1INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_43, GrB_INT64);\n",
+       "GrB_Matrix_new(&M_57, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_57, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_207, GrB_INT64, 1);\n",
+       "GrB_vxm(v_207, NULL, NULL, GxB_MIN_SECONDI_INT64, v_189, M_57, NULL);\n",
+       "GrB_Scalar_new(&s_44, GrB_INT64);\n",
+       "GrB_Vector_extractElement_Scalar(s_44, v_207, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_44);\n",
+       "GrB_Vector_extractElement_Scalar(s_43, v_189, 1);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_43);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_43, GrB_INT64);\n", + "GrB_Matrix_new(&M_57, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_57, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_207, GrB_INT64, 1);\n", + "GrB_vxm(v_207, NULL, NULL, GxB_MIN_SECONDI_INT64, v_189, M_57, NULL);\n", + "GrB_Scalar_new(&s_44, GrB_INT64);\n", + "GrB_Vector_extractElement_Scalar(s_44, v_207, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_44);\n", + "GrB_Vector_extractElement_Scalar(s_43, v_189, 1);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_43);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_43, GrB_INT64);\n", + " GrB_Matrix_new(&M_57, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_57, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_207, GrB_INT64, 1);\n", + " GrB_vxm(v_207, NULL, NULL, GxB_MIN_SECONDI_INT64, v_189, M_57, NULL);\n", + " GrB_Scalar_new(&s_44, GrB_INT64);\n", + " GrB_Vector_extractElement_Scalar(s_44, v_207, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_44);\n", + " GrB_Vector_extractElement_Scalar(s_43, v_189, 1);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_43);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# first_index" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s45
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
1INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_45, GrB_INT64);\n",
+       "GrB_Matrix_new(&M_58, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_58, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_208, GrB_INT64, 1);\n",
+       "GrB_vxm(v_208, NULL, NULL, GxB_MIN_SECONDI_INT64, v_189, M_58, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_45, v_208, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_45);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_45, GrB_INT64);\n", + "GrB_Matrix_new(&M_58, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_58, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_208, GrB_INT64, 1);\n", + "GrB_vxm(v_208, NULL, NULL, GxB_MIN_SECONDI_INT64, v_189, M_58, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_45, v_208, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_45);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_45, GrB_INT64);\n", + " GrB_Matrix_new(&M_58, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_58, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_208, GrB_INT64, 1);\n", + " GrB_vxm(v_208, NULL, NULL, GxB_MIN_SECONDI_INT64, v_189, M_58, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_45, v_208, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_45);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# geometric_mean" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s46
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
0.0FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_46, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_47, GrB_INT64);\n",
+       "GrB_Vector_new(&v_209, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_59, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_59, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_209, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_59, NULL);\n",
+       "GrB_Scalar_new(&s_48, GrB_INT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_48, NULL, GrB_TIMES_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Vector_new(&v_210, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_210, NULL, NULL, GrB_MINV_FP64, v_209, NULL);\n",
+       "GrB_Vector_new(&v_211, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_211, NULL, NULL, GxB_POW_FP64, (GrB_Vector)s_48, v_210, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_46, v_211, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, s_46);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_46, GrB_FP64);\n", + "GrB_Scalar_new(&s_47, GrB_INT64);\n", + "GrB_Vector_new(&v_209, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_59, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_59, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_209, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_59, NULL);\n", + "GrB_Scalar_new(&s_48, GrB_INT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_48, NULL, GrB_TIMES_MONOID_INT64, v_189, NULL);\n", + "GrB_Vector_new(&v_210, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_210, NULL, NULL, GrB_MINV_FP64, v_209, NULL);\n", + "GrB_Vector_new(&v_211, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_211, NULL, NULL, GxB_POW_FP64, (GrB_Vector)s_48, v_210, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_46, v_211, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, s_46);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_46, GrB_FP64);\n", + " GrB_Scalar_new(&s_47, GrB_INT64);\n", + " GrB_Vector_new(&v_209, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_59, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_59, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_209, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_59, NULL);\n", + " GrB_Scalar_new(&s_48, GrB_INT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_48, NULL, GrB_TIMES_MONOID_INT64, v_189, NULL);\n", + " GrB_Vector_new(&v_210, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_210, NULL, NULL, GrB_MINV_FP64, v_209, NULL);\n", + " GrB_Vector_new(&v_211, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_211, NULL, NULL, GxB_POW_FP64, (GrB_Vector)s_48, v_210, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_46, v_211, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, s_46);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# harmonic_mean" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s49
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
0.0FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_49, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_50, GrB_INT64);\n",
+       "GrB_Vector_new(&v_212, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_60, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_60, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_212, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_60, NULL);\n",
+       "GrB_Scalar_new(&s_51, GrB_FP64);\n",
+       "GrB_Vector_new(&v_213, GrB_FP64, 1);\n",
+       "GrB_Matrix_new(&M_61, GrB_FP64, 7, 1);\n",
+       "GrB_Matrix_assign_FP64(M_61, NULL, NULL, -1.0, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_213, NULL, NULL, plus_pow_FP64, v_189, M_61, NULL);\n",
+       "GrB_Vector_new(&v_214, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_214, NULL, NULL, GrB_DIV_FP64, v_212, v_213, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_49, v_214, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, s_49);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_49, GrB_FP64);\n", + "GrB_Scalar_new(&s_50, GrB_INT64);\n", + "GrB_Vector_new(&v_212, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_60, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_60, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_212, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_60, NULL);\n", + "GrB_Scalar_new(&s_51, GrB_FP64);\n", + "GrB_Vector_new(&v_213, GrB_FP64, 1);\n", + "GrB_Matrix_new(&M_61, GrB_FP64, 7, 1);\n", + "GrB_Matrix_assign_FP64(M_61, NULL, NULL, -1.0, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_213, NULL, NULL, plus_pow_FP64, v_189, M_61, NULL);\n", + "GrB_Vector_new(&v_214, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_214, NULL, NULL, GrB_DIV_FP64, v_212, v_213, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_49, v_214, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, s_49);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_49, GrB_FP64);\n", + " GrB_Scalar_new(&s_50, GrB_INT64);\n", + " GrB_Vector_new(&v_212, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_60, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_60, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_212, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_60, NULL);\n", + " GrB_Scalar_new(&s_51, GrB_FP64);\n", + " GrB_Vector_new(&v_213, GrB_FP64, 1);\n", + " GrB_Matrix_new(&M_61, GrB_FP64, 7, 1);\n", + " GrB_Matrix_assign_FP64(M_61, NULL, NULL, -1.0, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_213, NULL, NULL, plus_pow_FP64, v_189, M_61, NULL);\n", + " GrB_Vector_new(&v_214, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_214, NULL, NULL, GrB_DIV_FP64, v_212, v_213, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_49, v_214, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, s_49);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# hypot" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s52
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
2.449489742783178FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_52, GrB_FP64);\n",
+       "GrB_Vector_new(&v_215, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_62, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_62, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_215, NULL, NULL, plus_pow_INT64, v_189, M_62, NULL);\n",
+       "GrB_Vector_new(&v_216, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_216, NULL, NULL, GxB_SQRT_FP64, v_215, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_52, v_216, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, s_52);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_52, GrB_FP64);\n", + "GrB_Vector_new(&v_215, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_62, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_62, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_215, NULL, NULL, plus_pow_INT64, v_189, M_62, NULL);\n", + "GrB_Vector_new(&v_216, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_216, NULL, NULL, GxB_SQRT_FP64, v_215, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_52, v_216, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, s_52);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_52, GrB_FP64);\n", + " GrB_Vector_new(&v_215, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_62, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_62, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_215, NULL, NULL, plus_pow_INT64, v_189, M_62, NULL);\n", + " GrB_Vector_new(&v_216, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_216, NULL, NULL, GxB_SQRT_FP64, v_215, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_52, v_216, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, s_52);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# last" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s53
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
0INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_53, GrB_INT64);\n",
+       "GrB_Matrix_new(&M_63, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_63, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_217, GrB_INT64, 1);\n",
+       "GrB_vxm(v_217, NULL, NULL, GxB_MAX_SECONDI_INT64, v_189, M_63, NULL);\n",
+       "GrB_Scalar_new(&s_54, GrB_INT64);\n",
+       "GrB_Vector_extractElement_Scalar(s_54, v_217, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_54);\n",
+       "GrB_Vector_extractElement_Scalar(s_53, v_189, 6);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_53);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_53, GrB_INT64);\n", + "GrB_Matrix_new(&M_63, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_63, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_217, GrB_INT64, 1);\n", + "GrB_vxm(v_217, NULL, NULL, GxB_MAX_SECONDI_INT64, v_189, M_63, NULL);\n", + "GrB_Scalar_new(&s_54, GrB_INT64);\n", + "GrB_Vector_extractElement_Scalar(s_54, v_217, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_54);\n", + "GrB_Vector_extractElement_Scalar(s_53, v_189, 6);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_53);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_53, GrB_INT64);\n", + " GrB_Matrix_new(&M_63, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_63, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_217, GrB_INT64, 1);\n", + " GrB_vxm(v_217, NULL, NULL, GxB_MAX_SECONDI_INT64, v_189, M_63, NULL);\n", + " GrB_Scalar_new(&s_54, GrB_INT64);\n", + " GrB_Vector_extractElement_Scalar(s_54, v_217, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_54);\n", + " GrB_Vector_extractElement_Scalar(s_53, v_189, 6);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_53);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# last_index" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s55
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
6INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_55, GrB_INT64);\n",
+       "GrB_Matrix_new(&M_64, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_64, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_Vector_new(&v_218, GrB_INT64, 1);\n",
+       "GrB_vxm(v_218, NULL, NULL, GxB_MAX_SECONDI_INT64, v_189, M_64, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_55, v_218, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_55);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_55, GrB_INT64);\n", + "GrB_Matrix_new(&M_64, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_64, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_Vector_new(&v_218, GrB_INT64, 1);\n", + "GrB_vxm(v_218, NULL, NULL, GxB_MAX_SECONDI_INT64, v_189, M_64, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_55, v_218, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_55);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_55, GrB_INT64);\n", + " GrB_Matrix_new(&M_64, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_64, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_Vector_new(&v_218, GrB_INT64, 1);\n", + " GrB_vxm(v_218, NULL, NULL, GxB_MAX_SECONDI_INT64, v_189, M_64, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_55, v_218, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_55);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# logaddexp" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s56
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
2.6265233750364456FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_56, GrB_FP64);\n",
+       "GrB_Vector_new(&v_219, GrB_FP64, 1);\n",
+       "GrB_Matrix_new(&M_65, GrB_FP64, 7, 1);\n",
+       "GrB_Matrix_assign_FP64(M_65, NULL, NULL, 2.718281828459045, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_mxv(v_219, NULL, NULL, plus_pow_FP64, M_65, v_189, GrB_DESC_T0);\n",
+       "GrB_Vector_apply(v_219, NULL, NULL, GxB_LOG_FP64, v_219, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_56, v_219, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, s_56);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_56, GrB_FP64);\n", + "GrB_Vector_new(&v_219, GrB_FP64, 1);\n", + "GrB_Matrix_new(&M_65, GrB_FP64, 7, 1);\n", + "GrB_Matrix_assign_FP64(M_65, NULL, NULL, 2.718281828459045, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_mxv(v_219, NULL, NULL, plus_pow_FP64, M_65, v_189, GrB_DESC_T0);\n", + "GrB_Vector_apply(v_219, NULL, NULL, GxB_LOG_FP64, v_219, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_56, v_219, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, s_56);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_56, GrB_FP64);\n", + " GrB_Vector_new(&v_219, GrB_FP64, 1);\n", + " GrB_Matrix_new(&M_65, GrB_FP64, 7, 1);\n", + " GrB_Matrix_assign_FP64(M_65, NULL, NULL, 2.718281828459045, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_mxv(v_219, NULL, NULL, plus_pow_FP64, M_65, v_189, GrB_DESC_T0);\n", + " GrB_Vector_apply(v_219, NULL, NULL, GxB_LOG_FP64, v_219, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_56, v_219, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, s_56);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# logaddexp2" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s57
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
3.169925001442312FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_57, GrB_FP64);\n",
+       "GrB_Vector_new(&v_220, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_66, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_66, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_mxv(v_220, NULL, NULL, plus_pow_INT64, M_66, v_189, GrB_DESC_T0);\n",
+       "GrB_Vector_new(&v_221, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_221, NULL, NULL, GxB_LOG2_FP64, v_220, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_57, v_221, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, s_57);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_57, GrB_FP64);\n", + "GrB_Vector_new(&v_220, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_66, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_66, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_mxv(v_220, NULL, NULL, plus_pow_INT64, M_66, v_189, GrB_DESC_T0);\n", + "GrB_Vector_new(&v_221, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_221, NULL, NULL, GxB_LOG2_FP64, v_220, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_57, v_221, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, s_57);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_57, GrB_FP64);\n", + " GrB_Vector_new(&v_220, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_66, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_66, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_mxv(v_220, NULL, NULL, plus_pow_INT64, M_66, v_189, GrB_DESC_T0);\n", + " GrB_Vector_new(&v_221, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_221, NULL, NULL, GxB_LOG2_FP64, v_220, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_57, v_221, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, s_57);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# max" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s58
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
2INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_58, GrB_INT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_58, NULL, GrB_MAX_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_58);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_58, GrB_INT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_58, NULL, GrB_MAX_MONOID_INT64, v_189, NULL);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_58);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_58, GrB_INT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_58, NULL, GrB_MAX_MONOID_INT64, v_189, NULL);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_58);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# mean" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s59
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
1.0FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_59, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_60, GrB_INT64);\n",
+       "GrB_Vector_new(&v_222, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_67, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_67, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_222, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_67, NULL);\n",
+       "GrB_Scalar_new(&s_61, GrB_INT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_61, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Vector_new(&v_223, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_223, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_61, v_222, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_59, v_223, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, s_59);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_59, GrB_FP64);\n", + "GrB_Scalar_new(&s_60, GrB_INT64);\n", + "GrB_Vector_new(&v_222, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_67, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_67, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_222, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_67, NULL);\n", + "GrB_Scalar_new(&s_61, GrB_INT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_61, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n", + "GrB_Vector_new(&v_223, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_223, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_61, v_222, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_59, v_223, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, s_59);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_59, GrB_FP64);\n", + " GrB_Scalar_new(&s_60, GrB_INT64);\n", + " GrB_Vector_new(&v_222, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_67, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_67, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_222, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_67, NULL);\n", + " GrB_Scalar_new(&s_61, GrB_INT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_61, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n", + " GrB_Vector_new(&v_223, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_223, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_61, v_222, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_59, v_223, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, s_59);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# min" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s62
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
0INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_62, GrB_INT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_62, NULL, GrB_MIN_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_62);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_62, GrB_INT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_62, NULL, GrB_MIN_MONOID_INT64, v_189, NULL);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_62);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_62, GrB_INT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_62, NULL, GrB_MIN_MONOID_INT64, v_189, NULL);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_62);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# peak_to_peak" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s63
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
2INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_63, GrB_INT64);\n",
+       "GrB_Scalar_new(&s_64, GrB_INT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_64, NULL, GrB_MAX_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Scalar_new(&s_65, GrB_INT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_65, NULL, GrB_MIN_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Vector_new(&v_224, GrB_INT64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_224, NULL, NULL, GrB_MINUS_INT64, (GrB_Vector)s_64, (GrB_Vector)s_65, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_63, v_224, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_63);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_63, GrB_INT64);\n", + "GrB_Scalar_new(&s_64, GrB_INT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_64, NULL, GrB_MAX_MONOID_INT64, v_189, NULL);\n", + "GrB_Scalar_new(&s_65, GrB_INT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_65, NULL, GrB_MIN_MONOID_INT64, v_189, NULL);\n", + "GrB_Vector_new(&v_224, GrB_INT64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_224, NULL, NULL, GrB_MINUS_INT64, (GrB_Vector)s_64, (GrB_Vector)s_65, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_63, v_224, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_63);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_63, GrB_INT64);\n", + " GrB_Scalar_new(&s_64, GrB_INT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_64, NULL, GrB_MAX_MONOID_INT64, v_189, NULL);\n", + " GrB_Scalar_new(&s_65, GrB_INT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_65, NULL, GrB_MIN_MONOID_INT64, v_189, NULL);\n", + " GrB_Vector_new(&v_224, GrB_INT64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_224, NULL, NULL, GrB_MINUS_INT64, (GrB_Vector)s_64, (GrB_Vector)s_65, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_63, v_224, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_63);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# prod" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s66
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
0INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_66, GrB_INT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_66, NULL, GrB_TIMES_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_66);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_66, GrB_INT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_66, NULL, GrB_TIMES_MONOID_INT64, v_189, NULL);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_66);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_66, GrB_INT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_66, NULL, GrB_TIMES_MONOID_INT64, v_189, NULL);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_66);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# root_mean_square" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s67
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
1.224744871391589FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_67, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_68, GrB_INT64);\n",
+       "GrB_Vector_new(&v_225, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_68, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_68, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_225, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_68, NULL);\n",
+       "GrB_Scalar_new(&s_69, GrB_INT64);\n",
+       "GrB_Vector_new(&v_226, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_69, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_69, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_226, NULL, NULL, plus_pow_INT64, v_189, M_69, NULL);\n",
+       "GrB_Vector_new(&v_227, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_227, NULL, NULL, GrB_DIV_FP64, v_226, v_225, NULL);\n",
+       "GrB_Vector_new(&v_228, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_228, NULL, NULL, GxB_SQRT_FP64, v_227, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_67, v_228, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, s_67);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_67, GrB_FP64);\n", + "GrB_Scalar_new(&s_68, GrB_INT64);\n", + "GrB_Vector_new(&v_225, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_68, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_68, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_225, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_68, NULL);\n", + "GrB_Scalar_new(&s_69, GrB_INT64);\n", + "GrB_Vector_new(&v_226, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_69, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_69, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_226, NULL, NULL, plus_pow_INT64, v_189, M_69, NULL);\n", + "GrB_Vector_new(&v_227, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_227, NULL, NULL, GrB_DIV_FP64, v_226, v_225, NULL);\n", + "GrB_Vector_new(&v_228, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_228, NULL, NULL, GxB_SQRT_FP64, v_227, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_67, v_228, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, s_67);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_67, GrB_FP64);\n", + " GrB_Scalar_new(&s_68, GrB_INT64);\n", + " GrB_Vector_new(&v_225, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_68, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_68, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_225, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_68, NULL);\n", + " GrB_Scalar_new(&s_69, GrB_INT64);\n", + " GrB_Vector_new(&v_226, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_69, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_69, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_226, NULL, NULL, plus_pow_INT64, v_189, M_69, NULL);\n", + " GrB_Vector_new(&v_227, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_227, NULL, NULL, GrB_DIV_FP64, v_226, v_225, NULL);\n", + " GrB_Vector_new(&v_228, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_228, NULL, NULL, GxB_SQRT_FP64, v_227, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_67, v_228, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, s_67);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# stdp" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s70
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
0.7071067811865476FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_70, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_71, GrB_INT64);\n",
+       "GrB_Vector_new(&v_229, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_70, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_70, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_229, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_70, NULL);\n",
+       "GrB_Scalar_new(&s_72, GrB_INT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_72, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Scalar_new(&s_73, GrB_INT64);\n",
+       "GrB_Vector_new(&v_230, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_71, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_71, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_230, NULL, NULL, plus_pow_INT64, v_189, M_71, NULL);\n",
+       "GrB_Vector_new(&v_231, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_231, NULL, NULL, GrB_DIV_FP64, v_230, v_229, NULL);\n",
+       "GrB_Vector_new(&v_232, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_232, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_72, v_229, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_232, NULL, NULL, GxB_POW_FP64, v_232, 2, NULL);\n",
+       "GrB_Vector_new(&v_233, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_233, NULL, NULL, GrB_MINUS_FP64, v_231, v_232, NULL);\n",
+       "GrB_Vector_new(&v_234, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_234, NULL, NULL, GxB_SQRT_FP64, v_233, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_70, v_234, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, s_70);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_70, GrB_FP64);\n", + "GrB_Scalar_new(&s_71, GrB_INT64);\n", + "GrB_Vector_new(&v_229, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_70, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_70, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_229, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_70, NULL);\n", + "GrB_Scalar_new(&s_72, GrB_INT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_72, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n", + "GrB_Scalar_new(&s_73, GrB_INT64);\n", + "GrB_Vector_new(&v_230, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_71, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_71, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_230, NULL, NULL, plus_pow_INT64, v_189, M_71, NULL);\n", + "GrB_Vector_new(&v_231, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_231, NULL, NULL, GrB_DIV_FP64, v_230, v_229, NULL);\n", + "GrB_Vector_new(&v_232, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_232, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_72, v_229, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_232, NULL, NULL, GxB_POW_FP64, v_232, 2, NULL);\n", + "GrB_Vector_new(&v_233, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_233, NULL, NULL, GrB_MINUS_FP64, v_231, v_232, NULL);\n", + "GrB_Vector_new(&v_234, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_234, NULL, NULL, GxB_SQRT_FP64, v_233, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_70, v_234, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, s_70);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_70, GrB_FP64);\n", + " GrB_Scalar_new(&s_71, GrB_INT64);\n", + " GrB_Vector_new(&v_229, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_70, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_70, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_229, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_70, NULL);\n", + " GrB_Scalar_new(&s_72, GrB_INT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_72, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n", + " GrB_Scalar_new(&s_73, GrB_INT64);\n", + " GrB_Vector_new(&v_230, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_71, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_71, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_230, NULL, NULL, plus_pow_INT64, v_189, M_71, NULL);\n", + " GrB_Vector_new(&v_231, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_231, NULL, NULL, GrB_DIV_FP64, v_230, v_229, NULL);\n", + " GrB_Vector_new(&v_232, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_232, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_72, v_229, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_232, NULL, NULL, GxB_POW_FP64, v_232, 2, NULL);\n", + " GrB_Vector_new(&v_233, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_233, NULL, NULL, GrB_MINUS_FP64, v_231, v_232, NULL);\n", + " GrB_Vector_new(&v_234, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_234, NULL, NULL, GxB_SQRT_FP64, v_233, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_70, v_234, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, s_70);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# stds" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s74
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
0.816496580927726FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_74, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_75, GrB_INT64);\n",
+       "GrB_Vector_new(&v_235, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_72, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_72, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_235, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_72, NULL);\n",
+       "GrB_Scalar_new(&s_76, GrB_INT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_76, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Scalar_new(&s_77, GrB_INT64);\n",
+       "GrB_Vector_new(&v_236, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_73, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_73, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_236, NULL, NULL, plus_pow_INT64, v_189, M_73, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64((GrB_Vector)s_76, NULL, NULL, GxB_POW_INT64, (GrB_Vector)s_76, 2, NULL);\n",
+       "GrB_Vector_new(&v_237, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_237, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_76, v_235, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_235, NULL, NULL, GrB_MINUS_INT64, v_235, 1, NULL);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_237, NULL, NULL, GrB_DIV_FP64, v_237, v_235, NULL);\n",
+       "GrB_Vector_new(&v_238, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_238, NULL, NULL, GrB_DIV_FP64, v_236, v_235, NULL);\n",
+       "GrB_Vector_new(&v_239, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_239, NULL, NULL, GrB_MINUS_FP64, v_238, v_237, NULL);\n",
+       "GrB_Vector_new(&v_240, GrB_FP64, 1);\n",
+       "GrB_Vector_apply(v_240, NULL, NULL, GxB_SQRT_FP64, v_239, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_74, v_240, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, s_74);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_74, GrB_FP64);\n", + "GrB_Scalar_new(&s_75, GrB_INT64);\n", + "GrB_Vector_new(&v_235, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_72, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_72, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_235, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_72, NULL);\n", + "GrB_Scalar_new(&s_76, GrB_INT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_76, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n", + "GrB_Scalar_new(&s_77, GrB_INT64);\n", + "GrB_Vector_new(&v_236, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_73, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_73, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_236, NULL, NULL, plus_pow_INT64, v_189, M_73, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64((GrB_Vector)s_76, NULL, NULL, GxB_POW_INT64, (GrB_Vector)s_76, 2, NULL);\n", + "GrB_Vector_new(&v_237, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_237, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_76, v_235, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_235, NULL, NULL, GrB_MINUS_INT64, v_235, 1, NULL);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_237, NULL, NULL, GrB_DIV_FP64, v_237, v_235, NULL);\n", + "GrB_Vector_new(&v_238, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_238, NULL, NULL, GrB_DIV_FP64, v_236, v_235, NULL);\n", + "GrB_Vector_new(&v_239, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_239, NULL, NULL, GrB_MINUS_FP64, v_238, v_237, NULL);\n", + "GrB_Vector_new(&v_240, GrB_FP64, 1);\n", + "GrB_Vector_apply(v_240, NULL, NULL, GxB_SQRT_FP64, v_239, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_74, v_240, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, s_74);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_74, GrB_FP64);\n", + " GrB_Scalar_new(&s_75, GrB_INT64);\n", + " GrB_Vector_new(&v_235, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_72, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_72, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_235, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_72, NULL);\n", + " GrB_Scalar_new(&s_76, GrB_INT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_76, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n", + " GrB_Scalar_new(&s_77, GrB_INT64);\n", + " GrB_Vector_new(&v_236, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_73, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_73, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_236, NULL, NULL, plus_pow_INT64, v_189, M_73, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64((GrB_Vector)s_76, NULL, NULL, GxB_POW_INT64, (GrB_Vector)s_76, 2, NULL);\n", + " GrB_Vector_new(&v_237, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_237, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_76, v_235, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_235, NULL, NULL, GrB_MINUS_INT64, v_235, 1, NULL);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_237, NULL, NULL, GrB_DIV_FP64, v_237, v_235, NULL);\n", + " GrB_Vector_new(&v_238, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_238, NULL, NULL, GrB_DIV_FP64, v_236, v_235, NULL);\n", + " GrB_Vector_new(&v_239, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_239, NULL, NULL, GrB_MINUS_FP64, v_238, v_237, NULL);\n", + " GrB_Vector_new(&v_240, GrB_FP64, 1);\n", + " GrB_Vector_apply(v_240, NULL, NULL, GxB_SQRT_FP64, v_239, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_74, v_240, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, s_74);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# sum" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s78
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
4INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_78, GrB_INT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_78, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_78);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_78, GrB_INT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_78, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_78);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_78, GrB_INT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_78, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_78);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# sum_of_inverses" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s79
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
infFP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_79, GrB_FP64);\n",
+       "GrB_Vector_new(&v_241, GrB_FP64, 1);\n",
+       "GrB_Matrix_new(&M_74, GrB_FP64, 7, 1);\n",
+       "GrB_Matrix_assign_FP64(M_74, NULL, NULL, -1.0, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_241, NULL, NULL, plus_pow_FP64, v_189, M_74, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_79, v_241, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, s_79);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_79, GrB_FP64);\n", + "GrB_Vector_new(&v_241, GrB_FP64, 1);\n", + "GrB_Matrix_new(&M_74, GrB_FP64, 7, 1);\n", + "GrB_Matrix_assign_FP64(M_74, NULL, NULL, -1.0, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_241, NULL, NULL, plus_pow_FP64, v_189, M_74, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_79, v_241, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, s_79);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_79, GrB_FP64);\n", + " GrB_Vector_new(&v_241, GrB_FP64, 1);\n", + " GrB_Matrix_new(&M_74, GrB_FP64, 7, 1);\n", + " GrB_Matrix_assign_FP64(M_74, NULL, NULL, -1.0, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_241, NULL, NULL, plus_pow_FP64, v_189, M_74, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_79, v_241, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, s_79);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# sum_of_squares" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s80
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
6INT64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_80, GrB_INT64);\n",
+       "GrB_Vector_new(&v_242, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_75, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_75, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_242, NULL, NULL, plus_pow_INT64, v_189, M_75, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_80, v_242, 0);\n",
+       "GrB_Scalar_extractElement_INT64(&s_temp, s_80);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_80, GrB_INT64);\n", + "GrB_Vector_new(&v_242, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_75, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_75, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_242, NULL, NULL, plus_pow_INT64, v_189, M_75, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_80, v_242, 0);\n", + "GrB_Scalar_extractElement_INT64(&s_temp, s_80);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_80, GrB_INT64);\n", + " GrB_Vector_new(&v_242, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_75, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_75, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_242, NULL, NULL, plus_pow_INT64, v_189, M_75, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_80, v_242, 0);\n", + " GrB_Scalar_extractElement_INT64(&s_temp, s_80);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# varp" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s81
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
0.5FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_81, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_82, GrB_INT64);\n",
+       "GrB_Vector_new(&v_243, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_76, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_76, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_243, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_76, NULL);\n",
+       "GrB_Scalar_new(&s_83, GrB_INT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_83, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Scalar_new(&s_84, GrB_INT64);\n",
+       "GrB_Vector_new(&v_244, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_77, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_77, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_244, NULL, NULL, plus_pow_INT64, v_189, M_77, NULL);\n",
+       "GrB_Vector_new(&v_245, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_245, NULL, NULL, GrB_DIV_FP64, v_244, v_243, NULL);\n",
+       "GrB_Vector_new(&v_246, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_246, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_83, v_243, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_246, NULL, NULL, GxB_POW_FP64, v_246, 2, NULL);\n",
+       "GrB_Vector_new(&v_247, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_247, NULL, NULL, GrB_MINUS_FP64, v_245, v_246, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_81, v_247, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, s_81);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_81, GrB_FP64);\n", + "GrB_Scalar_new(&s_82, GrB_INT64);\n", + "GrB_Vector_new(&v_243, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_76, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_76, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_243, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_76, NULL);\n", + "GrB_Scalar_new(&s_83, GrB_INT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_83, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n", + "GrB_Scalar_new(&s_84, GrB_INT64);\n", + "GrB_Vector_new(&v_244, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_77, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_77, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_244, NULL, NULL, plus_pow_INT64, v_189, M_77, NULL);\n", + "GrB_Vector_new(&v_245, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_245, NULL, NULL, GrB_DIV_FP64, v_244, v_243, NULL);\n", + "GrB_Vector_new(&v_246, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_246, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_83, v_243, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_246, NULL, NULL, GxB_POW_FP64, v_246, 2, NULL);\n", + "GrB_Vector_new(&v_247, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_247, NULL, NULL, GrB_MINUS_FP64, v_245, v_246, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_81, v_247, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, s_81);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_81, GrB_FP64);\n", + " GrB_Scalar_new(&s_82, GrB_INT64);\n", + " GrB_Vector_new(&v_243, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_76, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_76, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_243, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_76, NULL);\n", + " GrB_Scalar_new(&s_83, GrB_INT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_83, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n", + " GrB_Scalar_new(&s_84, GrB_INT64);\n", + " GrB_Vector_new(&v_244, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_77, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_77, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_244, NULL, NULL, plus_pow_INT64, v_189, M_77, NULL);\n", + " GrB_Vector_new(&v_245, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_245, NULL, NULL, GrB_DIV_FP64, v_244, v_243, NULL);\n", + " GrB_Vector_new(&v_246, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_246, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_83, v_243, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_246, NULL, NULL, GxB_POW_FP64, v_246, 2, NULL);\n", + " GrB_Vector_new(&v_247, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_247, NULL, NULL, GrB_MINUS_FP64, v_245, v_246, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_81, v_247, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, s_81);" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/markdown": [ + "# vars" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
s85
\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gb.Scalar
value
dtype
0.6666666666666667FP64
\n", + "
\n", + "
" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
GrB_Scalar_new(&s_85, GrB_FP64);\n",
+       "GrB_Scalar_new(&s_86, GrB_INT64);\n",
+       "GrB_Vector_new(&v_248, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_78, GrB_BOOL, 7, 1);\n",
+       "GrB_Matrix_assign_BOOL(M_78, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_248, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_78, NULL);\n",
+       "GrB_Scalar_new(&s_87, GrB_INT64);\n",
+       "GrB_Vector_reduce_Monoid_Scalar(s_87, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n",
+       "GrB_Scalar_new(&s_88, GrB_INT64);\n",
+       "GrB_Vector_new(&v_249, GrB_INT64, 1);\n",
+       "GrB_Matrix_new(&M_79, GrB_INT64, 7, 1);\n",
+       "GrB_Matrix_assign_INT64(M_79, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n",
+       "GrB_vxm(v_249, NULL, NULL, plus_pow_INT64, v_189, M_79, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64((GrB_Vector)s_87, NULL, NULL, GxB_POW_INT64, (GrB_Vector)s_87, 2, NULL);\n",
+       "GrB_Vector_new(&v_250, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_250, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_87, v_248, NULL);\n",
+       "GrB_Vector_apply_BinaryOp2nd_INT64(v_248, NULL, NULL, GrB_MINUS_INT64, v_248, 1, NULL);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_250, NULL, NULL, GrB_DIV_FP64, v_250, v_248, NULL);\n",
+       "GrB_Vector_new(&v_251, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_251, NULL, NULL, GrB_DIV_FP64, v_249, v_248, NULL);\n",
+       "GrB_Vector_new(&v_252, GrB_FP64, 1);\n",
+       "GrB_Vector_eWiseMult_BinaryOp(v_252, NULL, NULL, GrB_MINUS_FP64, v_251, v_250, NULL);\n",
+       "GrB_Vector_extractElement_Scalar(s_85, v_252, 0);\n",
+       "GrB_Scalar_extractElement_FP64(&s_temp, s_85);\n",
+       "
\n", + "\n", + "
\n", + "
\n", + "
" + ], + "text/markdown": [ + "
\n", + "\n", + "\n", + "\n", + "
\n", + "\n", + "\n", + "\n", + "
\n", + "gb.Recorder\n", + "
\n", + "
\n", + "
\n", + "
\n", + "\n", + "```C\n", + "GrB_Scalar_new(&s_85, GrB_FP64);\n", + "GrB_Scalar_new(&s_86, GrB_INT64);\n", + "GrB_Vector_new(&v_248, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_78, GrB_BOOL, 7, 1);\n", + "GrB_Matrix_assign_BOOL(M_78, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_248, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_78, NULL);\n", + "GrB_Scalar_new(&s_87, GrB_INT64);\n", + "GrB_Vector_reduce_Monoid_Scalar(s_87, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n", + "GrB_Scalar_new(&s_88, GrB_INT64);\n", + "GrB_Vector_new(&v_249, GrB_INT64, 1);\n", + "GrB_Matrix_new(&M_79, GrB_INT64, 7, 1);\n", + "GrB_Matrix_assign_INT64(M_79, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + "GrB_vxm(v_249, NULL, NULL, plus_pow_INT64, v_189, M_79, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64((GrB_Vector)s_87, NULL, NULL, GxB_POW_INT64, (GrB_Vector)s_87, 2, NULL);\n", + "GrB_Vector_new(&v_250, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_250, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_87, v_248, NULL);\n", + "GrB_Vector_apply_BinaryOp2nd_INT64(v_248, NULL, NULL, GrB_MINUS_INT64, v_248, 1, NULL);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_250, NULL, NULL, GrB_DIV_FP64, v_250, v_248, NULL);\n", + "GrB_Vector_new(&v_251, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_251, NULL, NULL, GrB_DIV_FP64, v_249, v_248, NULL);\n", + "GrB_Vector_new(&v_252, GrB_FP64, 1);\n", + "GrB_Vector_eWiseMult_BinaryOp(v_252, NULL, NULL, GrB_MINUS_FP64, v_251, v_250, NULL);\n", + "GrB_Vector_extractElement_Scalar(s_85, v_252, 0);\n", + "GrB_Scalar_extractElement_FP64(&s_temp, s_85);\n", + "```\n", + "
\n", + "
\n", + "
" + ], + "text/plain": [ + "gb.Recorder (recording)\n", + "-----------------------\n", + " GrB_Scalar_new(&s_85, GrB_FP64);\n", + " GrB_Scalar_new(&s_86, GrB_INT64);\n", + " GrB_Vector_new(&v_248, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_78, GrB_BOOL, 7, 1);\n", + " GrB_Matrix_assign_BOOL(M_78, NULL, NULL, False, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_248, NULL, NULL, GxB_PLUS_PAIR_INT64, v_189, M_78, NULL);\n", + " GrB_Scalar_new(&s_87, GrB_INT64);\n", + " GrB_Vector_reduce_Monoid_Scalar(s_87, NULL, GrB_PLUS_MONOID_INT64, v_189, NULL);\n", + " GrB_Scalar_new(&s_88, GrB_INT64);\n", + " GrB_Vector_new(&v_249, GrB_INT64, 1);\n", + " GrB_Matrix_new(&M_79, GrB_INT64, 7, 1);\n", + " GrB_Matrix_assign_INT64(M_79, NULL, NULL, 2, GrB_ALL, 7, GrB_ALL, 1, NULL);\n", + " GrB_vxm(v_249, NULL, NULL, plus_pow_INT64, v_189, M_79, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64((GrB_Vector)s_87, NULL, NULL, GxB_POW_INT64, (GrB_Vector)s_87, 2, NULL);\n", + " GrB_Vector_new(&v_250, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_250, NULL, NULL, GrB_DIV_FP64, (GrB_Vector)s_87, v_248, NULL);\n", + " GrB_Vector_apply_BinaryOp2nd_INT64(v_248, NULL, NULL, GrB_MINUS_INT64, v_248, 1, NULL);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_250, NULL, NULL, GrB_DIV_FP64, v_250, v_248, NULL);\n", + " GrB_Vector_new(&v_251, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_251, NULL, NULL, GrB_DIV_FP64, v_249, v_248, NULL);\n", + " GrB_Vector_new(&v_252, GrB_FP64, 1);\n", + " GrB_Vector_eWiseMult_BinaryOp(v_252, NULL, NULL, GrB_MINUS_FP64, v_251, v_250, NULL);\n", + " GrB_Vector_extractElement_Scalar(s_85, v_252, 0);\n", + " GrB_Scalar_extractElement_FP64(&s_temp, s_85);" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], "source": [ "skipped = set()\n", "for aggname in sorted(dir(agg)):\n", @@ -189,39 +40736,42 @@ " if not isinstance(aggregator, agg.Aggregator):\n", " continue\n", " try:\n", - " with Recorder() as r:\n", - " # The type-handing of aggregators still needs work, so hack it for now\n", - " if aggname in {\"all\", \"any\"}:\n", - " w = v.dup(dtype=bool)\n", - " elif aggname in {\"bitwise_all\", \"bitwise_any\"}:\n", - " w = v.dup(dtype=\"UINT64\")\n", - " else:\n", - " w = v\n", + " # The type-handing of aggregators still needs work, so hack it for now\n", + " if aggname in {\"all\", \"any\"}:\n", + " w = v.dup(dtype=bool)\n", + " elif aggname in {\"bitwise_all\", \"bitwise_any\"}:\n", + " w = v.dup(dtype=\"UINT64\")\n", + " else:\n", + " w = v\n", + " display(Markdown(f\"# {aggname}\"))\n", + " with Recorder(max_rows=None) as r:\n", " result = w.reduce(aggregator).new()\n", - " display(Markdown(f\"# {aggname}\"))\n", " display(HTML(result._repr_html_()))\n", - " display(Markdown(r._repr_markdown_()))\n", + " display(r)\n", " except Exception:\n", " skipped.add(aggname)" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 13, "id": "51332382", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "set()" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "skipped" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "25b02dae", - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { @@ -240,7 +40790,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.6" + "version": "3.9.13" } }, "nbformat": 4,