[SciPy-user] Structured matrices

Nils Wagner nwagner@iam.uni-stuttgart...
Wed Mar 14 03:05:32 CDT 2007


Anne Archibald wrote:
> On 12/03/07, Nils Wagner <nwagner@iam.uni-stuttgart.de> wrote:
>   
>> Hi all,
>>
>> I was wondering if the matrix family (see below) has a special name ?
>> And/or is there a way to construct this matrix via special matrices
>> (like Hankel, Toeplitz, etc.) ?
>>     
>
> Well, I've never come across them before, but they're easy to make directly:
>
> In [8]: minimum.outer(r_[7:-1:-2],r_[7:-1:-2])
> Out[8]:
> array([[7, 5, 3, 1],
>        [5, 5, 3, 1],
>        [3, 3, 3, 1],
>        [1, 1, 1, 1]])
>
> Anne
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>   
I like one-liners. Thank you very much !

Nils
 


More information about the SciPy-user mailing list