diff options
author | Puneeth Chaganti | 2009-11-05 13:44:46 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2009-11-05 13:44:46 +0530 |
commit | 368d010a53b1e9ac3b5a7d669ae15496486dba97 (patch) | |
tree | 4c14a1d4f6c034e47b3f5a826f05de5f8505f8fa /day1 | |
parent | 32089af016a0cdf42b394b6b5e55663af3b5c541 (diff) | |
download | workshops-368d010a53b1e9ac3b5a7d669ae15496486dba97.tar.gz workshops-368d010a53b1e9ac3b5a7d669ae15496486dba97.tar.bz2 workshops-368d010a53b1e9ac3b5a7d669ae15496486dba97.zip |
Added example for ones_like in session4.
Diffstat (limited to 'day1')
-rw-r--r-- | day1/session4.tex | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/day1/session4.tex b/day1/session4.tex index 22de88f..cf41dee 100644 --- a/day1/session4.tex +++ b/day1/session4.tex @@ -440,6 +440,22 @@ Out[]: array([-1., 8., -1.]) In []: A = array([L, ones_like(L)]) In []: A = A.T \end{lstlisting} +\begin{small} +\begin{block}{} + \begin{lstlisting} +In []: ones((3,5)) +Out[]: +array([[ 1., 1., 1., 1., 1.], + [ 1., 1., 1., 1., 1.], + [ 1., 1., 1., 1., 1.]]) + +In []: ones_like([1, 2, 3, 4, 5]) +Out[]: array([1, 1, 1, 1, 1]) + \end{lstlisting} +Also available \alert{\typ{zeros, zeros_like, empty, empty_like}} +\end{block} +\end{small} + %% \begin{itemize} %% \item A is also called a Van der Monde matrix %% \item It can also be generated using \typ{vander} @@ -489,11 +505,10 @@ In []: plot(L, Tline) \item Inverse of a matrix \item Determinant \item Eigenvalues and Eigen vector - \item Norms - \item Singular Value Decomposition + %% \item Norms + %% \item Singular Value Decomposition \end{itemize} \item Least Square Curve fitting - \item Solving linear equations \end{itemize} \end{frame} |