From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,32d9aa9d79729b31 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.190.104 with SMTP id gp8mr16288432pbc.4.1340704301189; Tue, 26 Jun 2012 02:51:41 -0700 (PDT) Path: l9ni21521pbj.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: Any easy/build-in construct to extract submatrices from larger matrix? Date: Tue, 26 Jun 2012 04:51:38 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <1xzo3825h9yt7$.45flobqwlel6.dlg@40tude.net> <878vfay25g.fsf@adaheads.sparre-andersen.dk> Reply-To: nma@12000.org NNTP-Posting-Host: KdJUrTuvv3Zv/s8pPxNluw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-06-26T04:51:38-05:00 List-Id: On 6/26/2012 2:15 AM, Jacob Sparre Andersen wrote: >> --------------------------- >> Table[ReplacePart[A,{{i},{i,_},{_,j}}:>Sequence[]],{i,nRow},{j,nCol}]; >> --------------------------- > > I'm not sure if Mathematica has sufficient syntax highlighting to make > it easy to keep track of the grouping of the various parentheses, Yes it does, when using the notebook interface, using menus one can tell it to find matching [] (I'll go crazy without this feature) > but as it appears here, I would definitely want to break it up a bit, to make > it more readable. But it is allready very readable ! ;) > - My Mathematica so rusty that even when I do that, > I'm still not quite certain that your function works correctly. > Sure it works. Please see http://alturl.com/jh4pj > > Greetings, > > Jacob > --Nasser