MathGroup Archive 2007

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

Search the Archive

Re: How to use BlockMatrix


On Feb 1, 2007, at 3:59 AM, T.Sariyski wrote:

> Hi,
> I want to use BlockMatrix. Here is an example:
>
> a11={a0};
> a12={a1,a2};
> a21={a3,a4};
> a22={{i,j},{k,l}};
> BlockMatrix[{{a1,a12},{{a21},a22}}]//MatrixForm
>
> Out:
> AppendColumns[AppendRows[a1,{a1,a2}],AppendRows[{{a3,a4}},{{i,j}, 
> {k,l}}]]
>
> What I'm doing wrong here?

You submatrices have the wring dimensionality, and I suspect you want  
a11 not a1 in your BlockMatrix expression.

This works,

In[351]:=
a11={{a0}};
a12={{a1,a2}};
a21={{a3},{a4}};
a22={{i,j},{k,l}};
BlockMatrix[{{a11,a12},{a21,a22}}]//MatrixForm

Is that what you wanted?

Regards,

Ssezi


  • Prev by Date: Re: Root finding of multivariable nonlinear equations
  • Next by Date: Re: Re: rather complicated NonlinearFit
  • Previous by thread: How to use BlockMatrix
  • Next by thread: Re: How to use BlockMatrix