![]() |
[Announce] NumPy 1.9.1 for MeeGo Harmattan
NumPy is a Python module for numerical calculations, using C/C++, Fortran, BLAS and LAPACK. Numpy contains a powerful N-dimensional array object, sophisticated (broadcasting) functions, tools for integrating C/C++ and Fortran code, and useful linear algebra, Fourier transform, and random number capabilities.
Many softwares use NumPy. For example, MatPlotLib is commonly employed with NumPy, and the PyLab mode is NumPy + MatPlotLib. There are 2 versions of NumPy to choose to install on MeeGo Harmattan : - NumPy 1.9.1 was released in 02/11/2014, and ported to MeeGo Harmattan in the same day; - NumPy 1.4.1 (version released in 22/04/2010) provided by Nokia repositories. Version history : - NumPy 1.9.1 (02/11/2014) ported to MeeGo Harmattan in 02/11/2014; - NumPy 1.9.0 (07/09/2014) ported to MeeGo Harmattan in 26/09/2014; - NumPy 1.8.2 (08/09/2014) second release for MeeGo Harmattan (25/09/2014). NumPy is visible in MeeGo Harmattan Application Manager and is installed easier using Warehouse; - NumPy 1.8.2 (08/09/2014) ported to MeeGo Harmattan in 18/09/2014, first release; - NumPy 1.7.1 (07/04/2013) ported to MeeGo Harmattan in 05/06/2013; - NumPy 1.7.0 (10/02/2013), and I've ported it to MeeGo Harmattan one day later. So, install NumPy 1.9.1 only if NumPy 1.4.1 doesn't satisfy your needs. For example, MatPlotLib <= 1.2.0 works with NumPy 1.4.1, but Scipy >= 0.9 needs NumPy >= 1.5.0. NumPy 1.9.1 Harmattan is based on Debian experimental version and NumPy 1.9.0 source code, but without Python 3 support, no documentation package, adapted dependencies to MeeGo Harmattan, etc. Installing NumPy 1.9.1 on MeeGo Harmattan NumPy has 2 repositories options, so it can be : - easily installed by using Warehouse / OpenRepos.net. Install Warehouse (OpenRepos.net client) for MeeGo Harmattan, then open Warehouse, search for "NumPy", enable the repository and install; - installed by using my Harmattan repository. Warehouse showing NumPy 1.9.0 available to install : http://www.robertocolistete.net/Pyth...oHarmattan.png The installation of NumPy 1.9.1 and its dependencies (libgfortran3, libblas3gf e liblapack3gf) takes 25 MB, while NumPy 1.4.1 takes 22 MB. Using NumPy on MeeGo Harmattan It is strongly suggested to also install IPython for MeeGo Harmattan, so the interactive use of NumPy becomes a lot easier With the new IPython 0.13.2 Harmattan, there are 3 interfaces : IPython terminal, IPython Notebook and IPython Qt console. A simple example (just type the text after the "In [n]:" lines) in IPython terminal : http://www.robertocolistete.net/Pyth...n-terminal.png Note that "help(np)" (np is an alias to numpy) shows a long help about NumPy. Time to load NumPy : 0.4-0.5 s (v1.9.0), 0.6-0.7 s (v1.7.1, v1.8.2), 0.4-0.5 s (v1.4.1) by using 'from numpy import *' or 'import numpy'. Documentation for NumPy NumPy documentation is in the official NumPy site with NumPy User Guide and NumPy Reference Guide, both online as well as in PDF and other formats. NumPy help in interactive mode is available by typing : - "help(numpy)" (after an "import numpy"), see the above screenshot; - "help(pylab.np)", when using PyLab. Python for MeeGo Harmattan SciPy 0.14.0, which supplements NumPy 1.9.1, is also available for MeeGo Harmattan. See the SciPy for MeeGo Harmattan topic. More Python packages are listed in the Python Harmattan Wiki. See also OpenRepos.net. |
Re: [Announce] NumPy 1.7.1 for MeeGo Harmattan
Updated NumPy from version 1.7.0 to version 1.7.1 (an upstream bug fix version). See 1st post.
|
Re: [Announce] NumPy 1.7.1 for MeeGo Harmattan
I know this is resurrecting a dead thread but is there any chance you could compile numpy 1.7.2 for N9/harmattan?
|
Re: [Announce] NumPy 1.7.1 for MeeGo Harmattan
Quote:
|
Re: [Announce] NumPy 1.7.1 for MeeGo Harmattan
Quote:
|
Re: [Announce] NumPy 1.7.1 for MeeGo Harmattan
Quote:
MeeGo Harmattan has Python 2.6, compatible with last version of NumPy, v1.9.0, and possibly some further versions. I will soon try to package NumPy 1.7.2 and/or 1.8.2 and/or 1.9.0 for MeeGo Harmattan, depending on which is easier (with no extra dependencies). |
Re: [Announce] NumPy 1.7.1 for MeeGo Harmattan
Updated NumPy from version 1.7.1 to version 1.8.2 (08/09/2014) for MeeGo Harmattan, a very stable and new version. The versions 1.8.x of NumPy have many new features.
The first post also cites Warehouse/OpenRepos.net installation. By the way, NumPy v1.8.2 for MeeGo Harmattan was compiled and packaged in .deb using the Harmattan SDK on device (i.e., on Nokia N9, with chroot), it took 36m52s. :cool: |
[HELP]
How to use this one!? I had tried install it via apt n From wherehouse too... But I dont see the app icon launcher... Need help :) |
Re: [Announce] NumPy 1.8.2 for MeeGo Harmattan
Quote:
After installation (via "apt-get install python-numpy" in Terminal as root), still in Terminal (as user), just type "ipython" and run the example in the screenshot (1st post). It's recommended to install IPython, as said in 1st post, because the "python" interpreter is more limited than 'ipython". |
Re: [Announce] NumPy 1.8.2 for MeeGo Harmattan
Quote:
|
Re: [Announce] NumPy 1.8.2 for MeeGo Harmattan
Second release of NumPy 1.8.2 for MeeGo Harmattan, now you can install it using Warehouse by tapping the "Install" button (no need of Terminal and 'apt-get install'). And NumPy after installation is visible in MeeGo Harmattan Application Manager.
See 1st post. |
Quote:
But when i open Python Notebook. It says Not found runable browser ... ~ # HELLLPPP |
Re: [Announce] NumPy 1.8.2 for MeeGo Harmattan
Quote:
Please post IPython issues in IPython topic for MeeGo Harmattan. |
Re: [Announce] NumPy 1.9.0 for MeeGo Harmattan
NumPy latest version, 1.9.0 (07/09/2014), is released for MeeGo Harmattan. The version 1.9.0 of NumPy has many new features.
You can install NumPy 1.9.0 for MeeGo Harmattan using Warehouse by tapping the "Install" button (no need of Terminal and 'apt-get install'). And NumPy 1.9.0 after installation is visible in MeeGo Harmattan Application Manager. See first post updated. I've also packaged Cython 0.19.1 (11/05/2013) to make possible compile and package NumPy 1.9.0. It is available in OpenRepos.net and in my Harmattan repository. |
Re: [Announce] NumPy 1.9.0 for MeeGo Harmattan
|
Re: [Announce] NumPy 1.9.0 for MeeGo Harmattan
Benchmark of Python & NumPy on some mobile devices :
- XPS15 : Dell XPS 15 L502X, Core i7 2670QM 4 cores @ 2.2-3.1 GHz, 1+6 MB cache L2/L3, 8GB RAM DDR3 1,333 MHz, 1TB 5,400 RPM SATA hard drive. Ubuntu 12.04 64 bits, Python 2.7.3, NumPy 1.6.1; - A1215B : Asus 1215B, AMD C-50 2 cores @ 1.0GHz, 1 MB cache L2, 2GB RAM DDR3 1,066 MHz, 320 GB 5,400 RPM SATA hard drive. Ubuntu 14.04 64 bits, Python 2.7.6, NumPy 1.8.2; - A1005HA : Asus 1005HA, Atom N270 @ 1.6 GHz, 512 KB cache L2, 2GB RAM DDR2 667 MHz, 250 GB 5,400 RPM SATA hard drive. XUbuntu 14.04 32 bits, Python 2.7.6, NumPy 1.8.2; - TF101 : Asus Transformer TF101, Tegra 2, 2 cores Cortex A9 @ 1.0 GHz, 1 GB RAM LPDDR2 600 MHz, 1MB cache L2, Android 4.0.3. Python 2.7.2, NumPy 1.3.0 from QPython; - Nexus4 : LG Nexus 4, Qualcomm APQ8064 Snapdragon 4 cores Krait @ 1.5 GHz, 2GB RAM. Sailfish 1.0.8.19, Python 2.7.5, NumPy 1.9.0; - Jolla : Jolla smartphone, Qualcomm Snapdragon S4 Plus MSM8930 2 cores Krait @ 1.5 GHz, 1GB RAM. Sailfish 1.0.8.19, Python 2.7.5, NumPy 1.9.0; - N9 : Nokia N9, TI OMAP 3630 ARM Cortex A8 @ 1.0 GHz, 1GB RAM. MeeGo Harmattan, Python 2.6.6, Numpy 1.9.0; - N900 : Nokia N900, TI OMAP 3430 ARM Cortex A8 @ 600 MHz, 256 MB RAM. Maemo 5, Python 2.5.4, NumPy 1.4.0; - N810 : Nokia N810, TI OMAP 2420 ARM11 @ 400 MHz, 128 MB RAM. Maemo 4, Python 2.5.2. Easy Debian with Python 2.6.6, NumPy 1.4.1. 1) mu0.py (pure Python calculation of 10^3 mu0 used in SNe Ia cosmology) : XPS15 : 0.838 s A1215B : 4.17 s A1005HA : 5.15 s TF101 : 9.72 s Nexus4 : 7.26 s Jolla : 7.83 s N9 : 15.4 s N900 : 29.5 s N810 : 164 s / 132 s (Easy Debian) 2) mu0_NumPy.py (Python/NumPy calculation of 10^3 mu0 used in SNe Ia cosmology) : XPS15 : 0.0666 s A1215B : 0.322 s A1005HA : 0.515 s TF101 : 2.23 s Nexus4 : 0.463 s Jolla : 0.453 s N9 : 1.10 s N900 : 1.93 s N810 : 13.5 s (Easy Debian) 3) NumPy dot product of two 1000x1000 matrices : Code:
import time A1215B : 7.62 s A1005HA : 9.84 s TF101 : 138 s Nexus4 : 47.3 s Jolla : 45.1 s N9 : 77.8 s N900 : 115 s N810 : 508 s (Easy Debian) 4) NumPy FFT of a vector (10^6 elements) : Code:
import time A1215B : 0.682 s A1005HA : 1.03 s TF101 : 7.35 s Nexus4 : 0.896 s Jolla : 0.895 s N9 : 3.98 s N900 : 6.79 s N810 : 51.7 s (Easy Debian) Conclusions from the above Python & NumPy calculations : - mu0 using NumPy is 11-14x faster than mu0 with pure Python; - Nexus 4 and Jolla smartphones with Sailfish have almost the same calculation speed, using 1 CPU core; - Jolla is 0.7-3.5x faster than N9; - Jolla is 1.5-6.5x faster than N900; - Jolla is 10-57x faster than N810; - N9 @ 1.0 GHz is 48-91% faster than N900 @ 600 MHz, greater than 66.67% expected by clock only; - N9 is 5-12x faster than N810; - N900 is 3-6x faster than N810; - Asus Transformer TF101 (an Android tablet from 2011) has Python 19% slower than Jolla and NumPy 8%-16% slower than N900; - Asus 1005HA (a netbook released in October 2008) with Atom N270 @ 1.6 GHz CPU is -15% to 3.6x faster than Jolla, 1.1-6.9x faster than N9, 2.7-11x faster than N900, 25-51x faster than N810; - Asus 1215B (a low-end notebook in 2012) with AMD C-50AMD C-50 CPU is 31%-5x faster than Jolla, 2.4-9x faster than N9, 5-14x faster than N900, 31-75x faster than N810; - Dell XPS 15 L502X (a high-end notebook in 2012) with Core i7 2670QM CPU is 6-54x faster than Jolla, 16-94x faster than N9, 28-139x faster than N900, 157-616x faster than N810. See also benchmark of Python & SciPy on some mobile devices. |
Re: [Announce] NumPy 1.9.0 for MeeGo Harmattan
NumPy 1.9.1 (02/11/2014), a bugfix only release, is available in the same day for MeeGo Harmattan. Refresh the repositories in Warehouse to see this update.
|
All times are GMT. The time now is 01:08. |
vBulletin® Version 3.8.8