Commit c0af3f7d authored by Inigo Aldazabal's avatar Inigo Aldazabal

Add python3 matrix multiplication

parent 9cd7a610
...@@ -623,6 +623,15 @@ ...@@ -623,6 +623,15 @@
"outputs": [], "outputs": [],
"source": [] "source": []
}, },
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
},
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
...@@ -1219,7 +1228,7 @@ ...@@ -1219,7 +1228,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.5.1" "version": "3.6.0"
} }
}, },
"nbformat": 4, "nbformat": 4,
......
...@@ -685,7 +685,20 @@ ...@@ -685,7 +685,20 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"c.dot(c)" "# python 2 and 3\n",
"np.dot(c, c)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# python 3\n",
"c @ c"
] ]
}, },
{ {
...@@ -873,13 +886,6 @@ ...@@ -873,13 +886,6 @@
"\n" "\n"
] ]
}, },
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n"
]
},
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
...@@ -1367,7 +1373,7 @@ ...@@ -1367,7 +1373,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.5.1" "version": "3.6.0"
} }
}, },
"nbformat": 4, "nbformat": 4,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment