row slice benchmark

This commit is contained in:
rasbt 2014-04-26 14:48:28 -04:00
parent 43171df6ed
commit c561c92eea
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:08918c81301f699d85bfad155946f6e0102ce07bb31796cb9bdda23ffb2e22a6"
"signature": "sha256:ab74fdc9e8ae58388d1fc428599abc86a3d03938d0f51769cef38ab4028d516a"
},
"nbformat": 3,
"nbformat_minor": 0,
@ -1472,6 +1472,8 @@
"input": [
"import numpy as np\n",
"\n",
"# 1st column, e.g., A[:,0,np.newaxis]\n",
"\n",
"def colvec_method1(A):\n",
" for col in A.T:\n",
" colvec = row[:,np.newaxis]\n",

View File

@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:08918c81301f699d85bfad155946f6e0102ce07bb31796cb9bdda23ffb2e22a6"
"signature": "sha256:ab74fdc9e8ae58388d1fc428599abc86a3d03938d0f51769cef38ab4028d516a"
},
"nbformat": 3,
"nbformat_minor": 0,
@ -1472,6 +1472,8 @@
"input": [
"import numpy as np\n",
"\n",
"# 1st column, e.g., A[:,0,np.newaxis]\n",
"\n",
"def colvec_method1(A):\n",
" for col in A.T:\n",
" colvec = row[:,np.newaxis]\n",