Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: fast replace for matrix minor

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69540] Re: fast replace for matrix minor
  • From: "astanoff" <astanoff at gmail.com>
  • Date: Fri, 15 Sep 2006 06:44:55 -0400 (EDT)
  • References: <200609130803.EAA18423@smc.vnet.net><eebfap$31c$1@smc.vnet.net>

Carl K. Woll wrote:
> Something like this?
> m=Array[Plus,{5,5}];
> Replace minor block with rows 2,3,4 and columns 4 and 5:
> m[[Range[2,4],Range[4,5]]] = {{a,b},{c,d},{e,f}};
> Now, the matrix m has had a minor block replaced with the above matrix.
> Carl Woll
> Wolfram Research

Hi Carl,
I wish I could delete my ridiculous post cause
your solution is more than 100 times faster
and simpler than mine!

Best regards,
V.Astanoff


  • Prev by Date: Re: Re: Re: solve and Abs
  • Next by Date: Re: Result changing
  • Previous by thread: Re: fast replace for matrix minor
  • Next by thread: Re: fast replace for matrix minor