More questions and a documentation bug
Keir Mierle <[email protected]>
| Newsgroups | gmane.lisp.lush.devel |
|---|---|
| Message-ID | <20021112034757.D9266@nova> |
Thanks for the help Yann! Ok, I found the source of my lunar problems: On the web, the @@ characters aren't displayed. I was reading the tutorial from the framed version of the documentation. I just checked, and the @@ characters are even missing inside the HTML source code. This may be a strange Phoenix bug. (I'm using 0.4. Excellent browser. See http://mozilla.org/projects/phoenix/) I'd be willing to give the HTML docs a CSS makeover if the Lush crew are interested. See keir.mierle.com for a bit of my CSS work if you're curious. Now, I've been trying to get the matrix stuff to work properly, with mixed results. The documentation mentions a 'scalar' function to aid in creating idx0's, but it's location eludes me. I rgrepped through the lsh, packages, and sys directories and didn't see anything. Although I didn't look quite as hard, I didn't see the constant function either. And finally, is there a 'slice' function hidden away somewhere that can give me slicing similar to, say, Python's or Matlab's matrix manipulation? I am aware of select, but it only gets half-way there, not being nearly as expressive. Am I missing something? For instance, say i wanted to take a matrix, and rotate around all the rows, having the last one wrap to the first. With slicing, this is easy: (Numeric Python code example) rotated_cols = concat(m[1:], m[:1]) where m[1:] all the rows excluding the first, and m[:1] is the first row. (See http://www.pfdubois.com/numpy/html2/numpy-6.html#marker-59620 for more details) With select, I would have to loop on a range from 1->n, accumulating the 'slices' into another matrix, then copy the first row to the last row of the accumulation matrix. So, is there a better way? Thanks, 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf