Are you familiar with J's Oblique? Your mention of diagonals suggest it to me.
http://jsoftware.com/help/dictionary/d421.htm -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
