Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*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 1998

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

Search the Archive

Core Dump on Matrix Assignment

  • To: mathgroup at smc.vnet.net
  • Subject: [mg13474] Core Dump on Matrix Assignment
  • From: Kenny Hunt <hunt at iowasp.physics.uiowa.edu>
  • Date: Sun, 26 Jul 1998 02:33:35 -0400
  • Organization: The University of Iowa
  • Sender: owner-wri-mathgroup at wolfram.com

I'm running Mathematica 3.0 on an SGI 02 and get a core dump when I
execute the following code (or any variation thereof).

Clear[mat1,mat2];
mat1 = Array[a,{5,5}];
mat2 = Array[b,{3,3}];
mat1[[{1,3,5},{1,3,5}]] = mat2;


The following code works fine:

Clear[mat1,mat2];
mat1 = Array[a,{5,5}];
mat2 = Array[b,{3,3}];
mat1[[{1,2,3},{1,2,3}]] = mat2;

Could someone explain what is happening here?  Also, how should I
implement the first example without crashing the system?

Kenny Hunt
hunt at cs.uiowa.edu



  • Prev by Date: Re: Re: RE: Re: Re: Non-comm
  • Next by Date: Deconvolution of Experimental Observations
  • Previous by thread: Re: Any Help for Simulation
  • Next by thread: Deconvolution of Experimental Observations