fixed indexing error in linalg.dot
This commit is contained in:
parent
b2c4749962
commit
dcd65feb21
4 changed files with 42 additions and 30 deletions
|
|
@ -203,7 +203,7 @@ mp_obj_t linalg_dot(mp_obj_t _m1, mp_obj_t _m2) {
|
|||
v2 = ndarray_get_float_value(m2->array->items, m2->array->typecode, k*m2->n+j);
|
||||
sum += v1 * v2;
|
||||
}
|
||||
outdata[i*m1->m+j] = sum;
|
||||
outdata[j*m1->m+i] = sum;
|
||||
}
|
||||
}
|
||||
return MP_OBJ_FROM_PTR(out);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
#include "fft.h"
|
||||
#include "numerical.h"
|
||||
|
||||
STATIC MP_DEFINE_STR_OBJ(ulab_version_obj, "0.26.5");
|
||||
STATIC MP_DEFINE_STR_OBJ(ulab_version_obj, "0.26.7");
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(ndarray_shape_obj, ndarray_shape);
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(ndarray_rawsize_obj, ndarray_rawsize);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
|
||||
Wed, 29 Jan 2020
|
||||
|
||||
version 0.26.7
|
||||
|
||||
fixed indexing error in linalg.dot
|
||||
|
||||
Mon, 20 Jan 2020
|
||||
|
||||
version 0.26.6
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@
|
|||
"execution_count": 1,
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2020-01-20T18:36:54.304659Z",
|
||||
"start_time": "2020-01-20T18:36:54.257847Z"
|
||||
"end_time": "2020-01-29T18:15:32.005275Z",
|
||||
"start_time": "2020-01-29T18:15:31.988773Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
|
|
@ -90,8 +90,8 @@
|
|||
"execution_count": 2,
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2020-01-20T18:36:57.355495Z",
|
||||
"start_time": "2020-01-20T18:36:57.351331Z"
|
||||
"end_time": "2020-01-29T18:15:34.067333Z",
|
||||
"start_time": "2020-01-29T18:15:34.064013Z"
|
||||
}
|
||||
},
|
||||
"outputs": [],
|
||||
|
|
@ -137,8 +137,8 @@
|
|||
"execution_count": 3,
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2020-01-20T18:37:04.913097Z",
|
||||
"start_time": "2020-01-20T18:37:04.898238Z"
|
||||
"end_time": "2020-01-29T18:15:36.804440Z",
|
||||
"start_time": "2020-01-29T18:15:36.789766Z"
|
||||
}
|
||||
},
|
||||
"outputs": [],
|
||||
|
|
@ -325,11 +325,11 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 26,
|
||||
"execution_count": 4,
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2020-01-20T18:51:56.393362Z",
|
||||
"start_time": "2020-01-20T18:51:56.386858Z"
|
||||
"end_time": "2020-01-29T18:15:39.226129Z",
|
||||
"start_time": "2020-01-29T18:15:39.212279Z"
|
||||
}
|
||||
},
|
||||
"outputs": [],
|
||||
|
|
@ -5118,11 +5118,11 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 29,
|
||||
"execution_count": 17,
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2020-01-20T18:53:07.507514Z",
|
||||
"start_time": "2020-01-20T18:53:07.487775Z"
|
||||
"end_time": "2020-01-29T18:23:50.642296Z",
|
||||
"start_time": "2020-01-29T18:23:50.630893Z"
|
||||
},
|
||||
"code_folding": []
|
||||
},
|
||||
|
|
@ -5333,7 +5333,7 @@
|
|||
" v2 = ndarray_get_float_value(m2->array->items, m2->array->typecode, k*m2->n+j);\n",
|
||||
" sum += v1 * v2;\n",
|
||||
" }\n",
|
||||
" outdata[i*m1->m+j] = sum;\n",
|
||||
" outdata[j*m1->m+i] = sum;\n",
|
||||
" }\n",
|
||||
" }\n",
|
||||
" return MP_OBJ_FROM_PTR(out);\n",
|
||||
|
|
@ -7878,19 +7878,19 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 19,
|
||||
"execution_count": 18,
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2020-01-20T18:44:48.100723Z",
|
||||
"start_time": "2020-01-20T18:44:48.090397Z"
|
||||
"end_time": "2020-01-29T18:26:03.498351Z",
|
||||
"start_time": "2020-01-29T18:26:03.492356Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"UsageError: Cell magic `%%ccode` not found.\n"
|
||||
"written 9625 bytes to ulab.c\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
@ -7913,7 +7913,7 @@
|
|||
"#include \"fft.h\"\n",
|
||||
"#include \"numerical.h\"\n",
|
||||
"\n",
|
||||
"STATIC MP_DEFINE_STR_OBJ(ulab_version_obj, \"0.26.6\");\n",
|
||||
"STATIC MP_DEFINE_STR_OBJ(ulab_version_obj, \"0.26.7\");\n",
|
||||
"\n",
|
||||
"MP_DEFINE_CONST_FUN_OBJ_1(ndarray_shape_obj, ndarray_shape);\n",
|
||||
"MP_DEFINE_CONST_FUN_OBJ_1(ndarray_rawsize_obj, ndarray_rawsize);\n",
|
||||
|
|
@ -8157,11 +8157,11 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 31,
|
||||
"execution_count": 6,
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2020-01-20T18:53:21.554754Z",
|
||||
"start_time": "2020-01-20T18:53:21.306361Z"
|
||||
"end_time": "2020-01-29T18:16:28.269304Z",
|
||||
"start_time": "2020-01-29T18:16:27.006057Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
|
|
@ -8185,10 +8185,10 @@
|
|||
"execution_count": null,
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2020-01-20T18:54:43.395493Z",
|
||||
"start_time": "2020-01-20T18:54:36.877328Z"
|
||||
"end_time": "2020-01-29T18:23:31.082564Z",
|
||||
"start_time": "2020-01-29T18:23:29.900215Z"
|
||||
},
|
||||
"scrolled": false
|
||||
"scrolled": true
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
|
|
@ -8248,11 +8248,11 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 25,
|
||||
"execution_count": 19,
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2020-01-20T18:49:06.907837Z",
|
||||
"start_time": "2020-01-20T18:49:06.903099Z"
|
||||
"end_time": "2020-01-29T18:26:58.382598Z",
|
||||
"start_time": "2020-01-29T18:26:58.374392Z"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
|
|
@ -8267,6 +8267,12 @@
|
|||
"source": [
|
||||
"%%writefile ../../../ulab/docs/ulab-change-log.md\n",
|
||||
"\n",
|
||||
"Wed, 29 Jan 2020\n",
|
||||
"\n",
|
||||
"version 0.26.7\n",
|
||||
"\n",
|
||||
" fixed indexing error in linalg.dot\n",
|
||||
"\n",
|
||||
"Mon, 20 Jan 2020\n",
|
||||
"\n",
|
||||
"version 0.26.6\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue