Bill Lam

Your  correction will be OK.

Thanks
Bill Szuch

-----Original Message-----
From: programming-boun...@jsoftware.com
[mailto:programming-boun...@jsoftware.com] On Behalf Of
programming-requ...@jsoftware.com
Sent: Sunday, 8 January 2012 3:00 PM
To: programming@jsoftware.com
Subject: Programming Digest, Vol 76, Issue 39

Send Programming mailing list submissions to
        programming@jsoftware.com

To subscribe or unsubscribe via the World Wide Web, visit
        http://jsoftware.com/cgi-bin/mailman/listinfo/programming
or, via email, send a message with subject or body 'help' to
        programming-requ...@jsoftware.com

You can reach the person managing the list at
        programming-ow...@jsoftware.com

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Programming digest..."


Today's Topics:

   1. Re: Getting the diagonal of a square matrix (Papp Erik Tam?s)
   2. Re: Indexed assignment must be slow? (Marc Simpson)
   3. Re: Getting the diagonal of a square matrix (Don Guinn)
   4. Re: Getting the diagonal of a square matrix (Alex Giannakopoulos)
   5. jfilesrc (William Szuch)
   6. Re: jfilesrc (bill lam)


----------------------------------------------------------------------

Message: 1
Date: Sat, 07 Jan 2012 11:36:01 +0100
From: "Papp Erik Tam?s" <papp.e...@ybl.szie.hu>
Subject: Re: [Jprogramming] Getting the diagonal of a square matrix
To: Programming forum <programming@jsoftware.com>
Message-ID: <f76f9cc7d193.4f082...@szie.hu>
Content-Type: text/plain; charset=iso-8859-2

Hi,

Some example of getting the main diagonal of square matrices:
    
   ]A=:2 2$1 2 3 4
1 2
3 4
   
   (<0 1)|:A NB. The main diagonal of a square matrix A
1 4
   
   ]B=:3 3$1 2 3 4 5 6
1 2 3
4 5 6
1 2 3
   
   (<0 1)|:B NB. The main diagonal of a square matrix B
1 5 3
   
   ]N=:4 4$i. 16
 0  1  2  3
 4  5  6  7
 8  9 10 11
12 13 14 15
   
   (<0 1)|:N NB. The main diagonal of a square matrix N
0 5 10 15
   
Regards,

Erik
 ----- Eredeti lev?l (Original Message) -----
Felad?: Alex Giannakopoulos <aeg...@blueyonder.co.uk>
D?tum: P?ntek, Janu?r 6, 2012 9:48 du
T?rgy: [Jprogramming] Getting the diagonal of a square matrix
C?mzett: Programming forum <programming@jsoftware.com>

> Hi
> 
> Is there a better (more efficient or whatever) way of getting the 
> diagonal of a matrix than the simple multiplication I use below?
> 
> Say,
> 
>    randmat=. [: ? 0 $~,~
>    idmat =. [:=i.
>    randiag =. randmat * idmat
> 
> Many Thanks
> -----------------------------------------------------------------
> -----
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


------------------------------

Message: 2
Date: Sat, 7 Jan 2012 12:19:27 +0000
From: Marc Simpson <m...@0branch.com>
Subject: Re: [Jprogramming] Indexed assignment must be slow?
To: Programming forum <programming@jsoftware.com>
Message-ID:
        <CAMbwm8_5D6Lhexqw3iDKHoCJZ_CufhiBfRaxuT-=uvx9j2v...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Jan 6, 2012 at 11:42 PM, Alexander Mikhailov <avm...@yahoo.com>
wrote:
>
> I'm not quite sure about this line -
>
> x=:55(3})(some verb returning a scalar)44(2})x
>
> If the verb returns a scalar - not a vector - then how 55 (3}) will work
on the result of that verb?..
>
> May be this time I'm missing something?

I gather that something like this

   v =: >:
   x =: 55 (3}) (v 44) (2}) x

was intended (at least, that's how I read it).

M


------------------------------

Message: 3
Date: Sat, 7 Jan 2012 06:28:18 -0700
From: Don Guinn <dongu...@gmail.com>
Subject: Re: [Jprogramming] Getting the diagonal of a square matrix
To: Programming forum <programming@jsoftware.com>
Message-ID:
        <caecakcmvwvv5ivmjjtsotek+pudizcuxzqvhrblee8yypu8...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

   i.3 3 3
 0  1  2
 3  4  5
 6  7  8

 9 10 11
12 13 14
15 16 17

18 19 20
21 22 23
24 25 26
   (<0 1 2)|:i.3 3 3
0 13 26
   (<0 1)|:i.3 3 3
0 12 24
1 13 25
2 14 26

2012/1/7 "Papp Erik Tam?s" <papp.e...@ybl.szie.hu>

> Hi,
>
> Some example of getting the main diagonal of square matrices:
>
>   ]A=:2 2$1 2 3 4
> 1 2
> 3 4
>
>   (<0 1)|:A NB. The main diagonal of a square matrix A
> 1 4
>
>   ]B=:3 3$1 2 3 4 5 6
> 1 2 3
> 4 5 6
> 1 2 3
>
>   (<0 1)|:B NB. The main diagonal of a square matrix B
> 1 5 3
>
>   ]N=:4 4$i. 16
>  0  1  2  3
>  4  5  6  7
>  8  9 10 11
> 12 13 14 15
>
>   (<0 1)|:N NB. The main diagonal of a square matrix N
> 0 5 10 15
>
> Regards,
>
> Erik
>  ----- Eredeti lev?l (Original Message) -----
> Felad?: Alex Giannakopoulos <aeg...@blueyonder.co.uk>
> D?tum: P?ntek, Janu?r 6, 2012 9:48 du
> T?rgy: [Jprogramming] Getting the diagonal of a square matrix
> C?mzett: Programming forum <programming@jsoftware.com>
>
> > Hi
> >
> > Is there a better (more efficient or whatever) way of getting the 
> > diagonal of a matrix than the simple multiplication I use below?
> >
> > Say,
> >
> >    randmat=. [: ? 0 $~,~
> >    idmat =. [:=i.
> >    randiag =. randmat * idmat
> >
> > Many Thanks
> > -----------------------------------------------------------------
> > -----
> > For information about J forums see 
> > http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


------------------------------

Message: 4
Date: Sat, 7 Jan 2012 21:37:32 +0000
From: Alex Giannakopoulos <aeg...@blueyonder.co.uk>
Subject: Re: [Jprogramming] Getting the diagonal of a square matrix
To: Programming forum <programming@jsoftware.com>
Message-ID:
        <CAD=r9jnavog4cmg+kljwyxieoe6pm0mtk7ygbc+25s0u+xy...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Yeah, great stuff that, Don, thanks.
Could do with a fuller tutorial, though.
Didn't find anything other than the 2 line description Might give it a go
myself when I fully understand it.

On 7 January 2012 13:28, Don Guinn <dongu...@gmail.com> wrote:

>   i.3 3 3
>  0  1  2
>  3  4  5
>  6  7  8
>
>  9 10 11
> 12 13 14
> 15 16 17
>
> 18 19 20
> 21 22 23
> 24 25 26
>   (<0 1 2)|:i.3 3 3
> 0 13 26
>   (<0 1)|:i.3 3 3
> 0 12 24
> 1 13 25
> 2 14 26
>
>


------------------------------

Message: 5
Date: Sun, 8 Jan 2012 10:27:39 +1100
From: "William Szuch" <bsz...@wsa-fincon.com.au>
Subject: [Jprogramming] jfilesrc
To: "J Programming Forum" <programming@jsoftware.com>
Message-ID: <000001cccd93$f2299600$d67cc200$@wsa-fincon.com.au>
Content-Type: text/plain;       charset="us-ascii"

Suggestion:

Include:

media/avi   avi

media/wmv wmv

 

 

 

Regards

 

Bill Szuch

 



------------------------------

Message: 6
Date: Sun, 8 Jan 2012 10:03:27 +0800
From: bill lam <bbill....@gmail.com>
Subject: Re: [Jprogramming] jfilesrc
To: programming@jsoftware.com
Message-ID: <20120108020327.GA2862@debian.b2j>
Content-Type: text/plain; charset=utf-8

I checked /etc/mime.types in my debian, there is no 'media' types.
it contains lines

video/x-ms-wmv          wmv

video/x-msvideo         avi

will these be ok?  Which browsers expect the mime.type you describe?

???, 08 ??? 2012, William Szuch ?????(?):
> Suggestion:
> 
> Include:
> 
> media/avi   avi
> 
> media/wmv wmv
> 
>  
> 
>  
> 
>  
> 
> Regards
> 
>  
> 
> Bill Szuch
> 
>  
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


------------------------------

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

End of Programming Digest, Vol 76, Issue 39
*******************************************


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to