Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions labs/ex01/solution/taskB.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
" A naive solution for finding pairvise distances between poins in P and Q\n",
"\n",
" Args:\n",
" P: numpy array of shape=(p, 2)\n",
" Q: numpy array of shape=(q, 2)\n",
" P: numpy array of shape=(p, n)\n",
" Q: numpy array of shape=(q, n)\n",
" Returns:\n",
" D: numpy array of shape=(p, q)\n",
"\n",
Expand Down Expand Up @@ -247,8 +247,8 @@
" An optimized solution using matching indices\n",
"\n",
" Args:\n",
" P: numpy array of shape=(p, 2)\n",
" Q: numpy array of shape=(q, 2)\n",
" P: numpy array of shape=(p, n)\n",
" Q: numpy array of shape=(q, n)\n",
" Returns:\n",
" D: numpy array of shape=(p, q)\n",
"\n",
Expand Down Expand Up @@ -284,8 +284,8 @@
" An optimized solution using matching indices\n",
"\n",
" Args:\n",
" P: numpy array of shape=(p, 2)\n",
" Q: numpy array of shape=(q, 2)\n",
" P: numpy array of shape=(p, n)\n",
" Q: numpy array of shape=(q, n)\n",
" Returns:\n",
" D: numpy array of shape=(p, q)\n",
"\n",
Expand Down Expand Up @@ -324,8 +324,8 @@
" A solution using scipy\n",
"\n",
" Args:\n",
" P: numpy array of shape=(p, 2)\n",
" Q: numpy array of shape=(q, 2)\n",
" P: numpy array of shape=(p, n)\n",
" Q: numpy array of shape=(q, n)\n",
"\n",
" Returns:\n",
" D: numpy array of shape=(p, q)\n",
Expand Down Expand Up @@ -354,8 +354,8 @@
" A solution using tensor broadcasting\n",
"\n",
" Args:\n",
" P: numpy array of shape=(p, 2)\n",
" Q: numpy array of shape=(q, 2)\n",
" P: numpy array of shape=(p, n)\n",
" Q: numpy array of shape=(q, n)\n",
"\n",
" Returns:\n",
" D: numpy array of shape=(p, q)\n",
Expand Down
16 changes: 8 additions & 8 deletions labs/ex01/template/taskB.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
" A naive solution for finding pairvise distances between poins in P and Q\n",
"\n",
" Args:\n",
" P: numpy array of shape=(p, 2)\n",
" Q: numpy array of shape=(q, 2)\n",
" P: numpy array of shape=(p, n)\n",
" Q: numpy array of shape=(q, n)\n",
" Returns:\n",
" D: numpy array of shape=(p, q)\n",
"\n",
Expand Down Expand Up @@ -127,8 +127,8 @@
" An optimized solution using matching indices\n",
"\n",
" Args:\n",
" P: numpy array of shape=(p, 2)\n",
" Q: numpy array of shape=(q, 2)\n",
" P: numpy array of shape=(p, n)\n",
" Q: numpy array of shape=(q, n)\n",
" Returns:\n",
" D: numpy array of shape=(p, q)\n",
"\n",
Expand Down Expand Up @@ -176,8 +176,8 @@
" A solution using scipy\n",
"\n",
" Args:\n",
" P: numpy array of shape=(p, 2)\n",
" Q: numpy array of shape=(q, 2)\n",
" P: numpy array of shape=(p, n)\n",
" Q: numpy array of shape=(q, n)\n",
"\n",
" Returns:\n",
" D: numpy array of shape=(p, q)\n",
Expand Down Expand Up @@ -207,8 +207,8 @@
" A solution using tensor broadcasting\n",
"\n",
" Args:\n",
" P: numpy array of shape=(p, 2)\n",
" Q: numpy array of shape=(q, 2)\n",
" P: numpy array of shape=(p, n)\n",
" Q: numpy array of shape=(q, n)\n",
"\n",
" Returns:\n",
" D: numpy array of shape=(p, q)\n",
Expand Down