Re: More questions and a documentation bug
Keir Mierle <[email protected]>
| Newsgroups | gmane.lisp.lush.devel |
|---|---|
| Message-ID | <20021112221930.B21352@nova> |
> Hmm, I stayed away from CSS so far (relying on gtml macros), > but that might be a good idea if there are obvious benefits. I whipped up a quick demo page. Take a look at the code to see its underlying simplicity. I inlined the stylesheet, however for the real thing, I would link to the stylesheet rather than have it inlined. http://mierle.com/keir/lushdoctemplate.html > defconstant is defined in lsh/libc/constants.lsh Ah, cool. The documentation talks about a (constant ...) function rather than (defconstant ...). I prefer the name of the former ;) Also, it took me rather too much time to figure out how to multiply matrices by scalars. Maybe adding the following example to the docs for idx-addm0 would help? ? (setq m (double-matrix 3 4)) = [[ 0.00 0.00 0.00 0.00 ] [ 0.00 0.00 0.00 0.00 ] [ 0.00 0.00 0.00 0.00 ]] ? (setq s (double-matrix)) = ::INDEX0:<> ? (s 1) = ::INDEX0:<> ? (idx-addm0 m s) = [[ 1.00 1.00 1.00 1.00 ] [ 1.00 1.00 1.00 1.00 ] [ 1.00 1.00 1.00 1.00 ]] > Yup, here is a function that does in-place line rotation: > ... Thanks for the code! I think I figured out a neat hack to do this even faster. When I have it working I'll post it. Keir -- Keir Mierle [email protected] web....www.mierle.com blog...keir.mierle.com cell...647.222.keir home...705.645.1711 home2..416.323.0146 icq....7673934 aim....keirmierle yahoo..keir_mierle msn....keir_mierle ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd522.html