alex clemesha wrote:
> Hi David,
>
> I have been working on tut.tex too.
> All the docs pass except the Numeric ones.
>
> Should I send you a patch so you can see what
> I have done?
>
> -Alex
Ah ... you've done a lot of work. I just sent in a post to the group
explaining how little I did!
Here's the chunk I replaced the Numeric stuff with (it is an entire
subsection). Does that
look okay with you?
\subsection{Numerical Linear Algebra}
\index{matrix!numerical computations with}
\sage includes \code{Numpy}, which is a standard Python package for
numerical linear algebra. If you have the appropriate numerical
libraries installed on your computer when you built \sage, then
Numpy will use them for highly optimized matrix algorithms.
If $A$ is a \sage matrix, you can obtain the corresponding
Numeric array as follows.
\begin{verbatim}
sage: import Numeric
sage: A = Matrix(QQ,3,3,range(9))
sage: N = A.numpy(); N
array([[0, 1, 2],
[3, 4, 5],
[6, 7, 8]], dtype=object)
sage: N*N
array([[0, 1, 4],
[9, 16, 25],
[36, 49, 64]], dtype=object)
sage: A*A
[ 15 18 21]
[ 42 54 66]
[ 69 90 111]
\end{verbatim}
Notice how matrix multiplication does not agree with the \code{Numpy}
array product.
>
> >
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---