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

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

Search the Archive

Re: Making rectangular matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27154] Re: Making rectangular matrix
  • From: Roland Franzius <Roland.Franzius at uos.de>
  • Date: Thu, 8 Feb 2001 04:40:42 -0500 (EST)
  • Organization: Universitaet Osnabrueck
  • References: <95qt5s$t2g@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

To multiply  matrix elements of a given matrix A by another matrix B use

Map[Times[B,#]&,A,{2}]

Use A[[i,k]]=B  for direct placement

To convert a block matrix into a normal matrix obeying matrix
multiplication use something like

tensorProduct[a_, b_] :=
  Partition[
    Flatten[Map[Transpose, Outer[Times, a, b]]],
    Length[a] Length[b]] 

jeevan wrote:
> 
> How  can I make a square or rectangle matrix(2-D) that can be placed
> at random locations of a bigger 2-D matrix.Thank you.


-- 
Roland Franzius

  +++ exactly <<n>> lines of this message have value <<FALSE>> +++


  • Prev by Date: Re: Making rectangular matrix
  • Next by Date: strange behavior
  • Previous by thread: Re: Making rectangular matrix
  • Next by thread: Re: Re: Factor[1+x^4]