The original JHS viewmat is a bit of a placeholder and needs work to be more complete.
I think it reasonable for you to make codebase changes like this. Just be very careful! If you are not set up with addon svn support, Chris or Bill Lam can probably help. On Fri, Aug 10, 2012 at 1:56 PM, Devon McCormick <[email protected]> wrote: > I'm running J7 under 64-bit Windows 7 Pro. The "viewmat" lab fails, > when demonstrating the dyadic form of viewmat, with a "domain error" > that leads to an "event handler error" under JHS. I see that the > definition of "viewmat" differs under JHS from what I see under > jconsole: it's defined in "~addons\ide\jhs\core.ijs" as opposed to > "~addons\graphics\viewmat\viewmat.ijs". > > It looks like it's a simple fix to make this dyadic since the > underlying routine that sets up the output matrix is already dyadic in > the proper fashion (with its "x" being the hue table): > > viewmat=: 3 : 0 > '' viewmat y > : > t=. (<6#16)#: each <"0>1{x getvm_jgcp_ y > t=. '#',each t{each <'0123456789abcdef' > a=. (<'<font ',LF,'style="background-color:'),each t > a=. a,each (<'; color:'),each t > a=. a,each <';">ww</font>' > jhtml ;a,.<'<br>' > ) > > Should I be able to add this back into the codebase myself? > > Regards, > > Devon > > -- > Devon McCormick, CFA > ^me^ at acm. > org is my > preferred e-mail > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
