in
different position so it's inconvenient to identify them. Is there anyway to
get dimension along axis? (In this case should be axis0)
--
Cheers,
Grissiom
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo
This is exactly what I want. Thanks ;)
--
Cheers,
Grissiom
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
://git-scm.com/
and a tutorial:
http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html
What really lacks is a little bit learning and using.
--
Cheers,
Grissiom
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org
this should be part of unittest.py
The test i
...
Thanks really~ It helped a lot. ;)
--
Cheers,
Grissiom
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
()
--
Ran 2 tests in 0.003s
FAILED (errors=1)
I know I should use array_equal to test two arrays but it will be more
convenient to implement it as __eq__. Any hints? Thanks in advance.
--
Cheers,
Grissiom
here.
Thanks very much~;)
--
Cheers,
Grissiom
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
Hi all,
Is there any possibility to calculate norm along axis? For example:
a = np.array((
(3,4),
(6,8)))
And I want to get:
array([5.0, 10.0])
I currently use a for loop to achieve this, Is there any more elegant way to
do this?
--
Cheers,
Grissiom
On Thu, Feb 19, 2009 at 12:12, Nicolas Pinto pi...@mit.edu wrote:
Grissiom,
Using the following doesn't require any loop:
In [9]: sqrt((a**2.).sum(1))
Out[9]: array([ 5., 10.])
Best,
Got it~ Thanks really ;)
--
Cheers,
Grissiom
___
Numpy
://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.fill.html
Cheers,
Scott
Is fill function has any advantage over ones(size)*x ?
--
Cheers,
Grissiom
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman
On Fri, Jan 30, 2009 at 22:16, Sturla Molden stu...@molden.no wrote:
On 1/30/2009 3:07 PM, Grissiom wrote:
Is fill function has any advantage over ones(size)*x ?
You avoid filling with ones, all the multiplications and creating an
temporary array. It can be done like this:
a = empty(size
think the testcase is a matter of python loop vs matlab
loop rather than python vs matlab.
--
Cheers,
Grissiom
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
) with -ff2c option passed to
gfortran.
--
Cheers,
Grissiom
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
On Thu, Dec 11, 2008 at 15:13, David Cournapeau
[EMAIL PROTECTED] wrote:
Grissiom wrote:
I have encountered with such problem before. My solution is recompile
the problem package(maybe atlas in your case) with -ff2c option passed
to gfortran.
This is a bad idea: it won't work
Hi all,
Nice to neet you all. I am a newbie in numpy. Is there any function that
could unitize a array?
Thanks in advance.
--
Cheers,
Grissiom
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo
On Wed, Dec 10, 2008 at 10:36, Robert Kern [EMAIL PROTECTED] wrote:
On Tue, Dec 9, 2008 at 20:24, Grissiom [EMAIL PROTECTED] wrote:
Hi all,
Nice to neet you all. I am a newbie in numpy. Is there any function that
could unitize a array?
If you mean like the Mathematica function Unitize
On Wed, Dec 10, 2008 at 11:04, Robert Kern [EMAIL PROTECTED] wrote:
v / numpy.linalg.norm(v)
Thanks a lot ~;)
--
Cheers,
Grissiom
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy
16 matches
Mail list logo