From 3a875d9146514b8e1f5d8b0231c4325dcd74296d Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Wed, 21 Oct 2026 10:10:37 +1100 Subject: [PATCH] =?UTF-8?q?Apply=20the=20editor's=20ml#57=20answer=20to=20?= =?UTF-8?q?numpy:=20commas=20on=20case-marked=20-=E0=B4=89=E0=B4=82=20pair?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adisankar ruled on #57 (answer 1.2) that two items carrying a case ending as well as -ഉം always take a comma, as plain -ഉം pairs do. Two pairs on the reviewed numpy page were still bare: - line 840: `a`-യിലും, `b`-യിലും - line 902: speed-ന്റെയും, memory-യുടെയും Co-Authored-By: Claude Opus 5.5 --- lectures/numpy.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lectures/numpy.md b/lectures/numpy.md index 465346a..208f178 100644 --- a/lectures/numpy.md +++ b/lectures/numpy.md @@ -837,7 +837,7 @@ Higher dimensions-ലേക്ക് കടക്കുമ്പോൾ കാര * *Step 2:* രണ്ട് arrays-ന് ഒരേ dimension ഉണ്ടെങ്കിലും, shapes വ്യത്യസ്തമാണെങ്കിൽ, shape index 1 ആയിരിക്കുന്ന dimensions-നെ NumPy expand ചെയ്യാൻ ശ്രമിക്കും. - - For example, `a -> (1, 3)`, `b -> (3, 1)` ആണെങ്കിൽ, broadcasting `a`-യിലും `b`-യിലും shape 1 ആയിരിക്കുന്ന dimensions expand ചെയ്യും. അതിനാൽ `a -> (3, 3)`, `b -> (3, 3)` ആകും; + - For example, `a -> (1, 3)`, `b -> (3, 1)` ആണെങ്കിൽ, broadcasting `a`-യിലും, `b`-യിലും shape 1 ആയിരിക്കുന്ന dimensions expand ചെയ്യും. അതിനാൽ `a -> (3, 3)`, `b -> (3, 3)` ആകും; - `a -> (2, 2, 2)`, `b -> (1, 2, 2)` ആണെങ്കിൽ, broadcasting `b`-യുടെ ആദ്യത്തെ dimension expand ചെയ്യും. അതിനാൽ `b -> (2, 2, 2)` ആകും; - `a -> (3, 2, 2)`, `b -> (1, 1, 2)` ആണെങ്കിൽ, broadcasting, `b`-യിലെ shape 1 ആയിരിക്കുന്ന എല്ലാ dimensions-ഉം expand ചെയ്യും. അതിനാൽ `b -> (3, 2, 2)` ആകും. @@ -899,7 +899,7 @@ a ഇതിനർത്ഥം, copies ഉണ്ടാക്കുന്നതിന് പകരം, data-യിലേക്കുള്ള pointers മാത്രമാണ് നമ്മൾ pass ചെയ്യുന്നത് എന്നാണ്. -Copies ഉണ്ടാക്കുന്നത് speed-ന്റെയും memory-യുടെയും കാര്യത്തിൽ expensive ആണ്. +Copies ഉണ്ടാക്കുന്നത് speed-ന്റെയും, memory-യുടെയും കാര്യത്തിൽ expensive ആണ്. ### Making Copies