atters
Christian Aichinger • IT
A-1220 Wien • Donau-City-Straße 11 • Tel +43 1 263 11 22 • Fax +43 1 263 11 22
219
caichin...@ubimet.com • www.ubimet.com
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
https://mail.scipy.org/mailman/li
customers.
Thanks for your help,
Christian
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential and/or
privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should
brain damage.``,
you're usually in trouble.
what a pity... do you have an alternative suggestion? Is there a good
alternative, e.g. using cmake, to distribute python modules?
Ciao
Christian
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
file.
... and concerning cmake, yes we tried this as well, but using cmake to
distribute the python code is also a pita ;-) ...
Christian
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
to adopt parts of the numpy setup, but these use
sub-modules, which I don't need... might this the the cause of my
problems?
Any help is highly appreciated ;-)
Cheers
Christian
int foo() { return 10; }
[meta]
Name=@foo@
Version=1.0
Description=dummy description
[default]
Cflags=-I@prefix@/include
for the derivative rather than the
gradient. Have a look at:
np.diff(a, n=1, axis=-1)
n is the order if the derivative.
Christian
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
Am 10.11.13 23:27, schrieb Charles R Harris:
On Sun, Nov 10, 2013 at 5:12 PM, Christian K. ckk...@hoc.net
mailto:ckk...@hoc.net wrote:
Am 10.11.13 21:06, schrieb Christian K.:
Am 03.11.13 13:42, schrieb Julian Taylor:
Hi all,
I'm happy to announce the release
installers are available. OS X installer will
follow soon.
On OSX compilation succeeds (with some errors though) but test() fails.
Attached is the full output.
Christian
Python 2.7.5 |Anaconda 1.6.1 (x86_64)| (default, Jun 28 2013, 22:20:13)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type
Am 10.11.13 21:06, schrieb Christian K.:
Am 03.11.13 13:42, schrieb Julian Taylor:
Hi all,
I'm happy to announce the release candidate of Numpy 1.7.2.
This is a bugfix only release supporting Python 2.4 - 2.7 and 3.1 - 3.3.
More than 37 issues were fixed, the most important issues
Fortran (GCC) 4.2.3
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
5658) (LLVM build 2336.11.00)
Should I use another compiler?
Regards, Christian
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http
(object_state)
def __setstate__(self,state):
nd_state, own_state = state
N.ndarray.__setstate__(self,nd_state)
cb, = own_state
self.cb = cb
Regards, Christian
___
NumPy-Discussion mailing list
NumPy-Discussion
of curiosity I would like to know for what type of problems/models
you need DE or why do you think it is superior to gradient based minimizers?
Btw., are you aware of ecspy (https://code.google.com/p/ecspy/)? I used
it same years ago and found it very powerful.
Regards, Christian
Robert Kern robert.kern at gmail.com writes:
On Thu, Jun 16, 2011 at 06:28, Christian K. ckkart at hoc.net wrote:
Hi,
I need to do fit a 3d surface to a point cloud. This sounds like a job for
3d
orthogonal distance regression. Does anybody know of an implementation?
As eat points
Hi,
I need to do fit a 3d surface to a point cloud. This sounds like a job for 3d
orthogonal distance regression. Does anybody know of an implementation?
Regards, Christian K.
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http
is in
the Mb range.
Regards, Christian
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
probably returns None. Show us your code and we will
able to help.
Regards, Christian
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
[66]: -1.0
In [67]: np.ceil(-0.734)
Out[67]: -0
In [68]: np.ceil(-0.256)
Out[68]: -0
In [69]: np.ceil(-0.0)
Out[69]: -0
In [70]: np.ceil(0.2)
Out[70]: 1.0
Best wishes
Christian
--
Dipl.-Ing. Christian Fischer
Institute of Engineering and Computational Mechanics
(name in German
the height field.
In [5]: import numpy as N
In [6]: x,y = N.mgrid[-N.pi/2.0:N.pi/2.0:100j,-N.pi/2.0:N.pi/2.0:100j]
In [7]: z = N.sin(N.sqrt(x**2+y**2))
Christian
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman
this in the numpy-Trac, but
registration didn't work (I was asked for another username/password at
scipy.org during the registration process) :-((
Thanks,
Christian.
diff -r -C5 numpy-1.4.0.orig/numpy/core/src/private/npy_config.h numpy-1.4.0/numpy/core/src/private/npy_config.h
*** numpy-1.4.0.orig
= linspace(0,1,101)
res = a*exp(-time[:,newaxis,newaxis])
Thanks in advance, Christian
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
. The PSF might (!) even donate some money but I'm not in the
position to discuss it.
I can get you in touch with the PSF if you like. I'm a PSF member and a
core developer.
Christian
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http
?
Possibly not the nicest way, but
np.float64 = np.float32
somewhere at the beginning should work.
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
Robert Kern schrieb:
On Fri, Jun 26, 2009 at 03:39, Christian K.ckk...@hoc.net wrote:
John Schulman joschu at caltech.edu writes:
I'm trying to reduce the memory used in a calculation, so I'd like to
switch my program to float32 instead of float64. Is it possible to
change the numpy default
extends over some adjacent
coordinates.
Currently I am using
tmp = N.ma.array(tmp, tmpthreshold)
data[tmp.mask] = tmp.mean()
which moves the voids closer to the mean value but which is still far from
beeing a smooth interpolation.
Regards, Christian
They are, also in v1..3.0rc1
Many thanks!
Christian
- Charles R Harris charlesr.har...@gmail.com wrote:
2009/3/27 Christian Marquardt christ...@marquardt.sc
Error messages? Sure;-)
python -c 'import numpy; numpy.test()'
Running unit tests for numpy
NumPy version
).
Hope this is useful,
Christian.
diff -r -C3 -N numpy-1.3.0rc1.orig/numpy/distutils/fcompiler/intel.py numpy-1.3.0rc1/numpy/distutils/fcompiler/intel.py
*** numpy-1.3.0rc1.orig/numpy/distutils/fcompiler/intel.py 2009-03-24 06:54:52.0 +0100
--- numpy-1.3.0rc1/numpy/distutils/fcompiler
Christian Marquardt christ...@marquardt.sc
Oh sorry - you are right (too late in the night here in Europe).
The output is similar in all four cases - it looks like
AssertionError:
Arrays are not almost equal
(mismatch 100.0%)
x: array([ 4.60555124+0.j, -2.60555124+0.j], dtype
Hi David,
I *guess* that the compiler command line does not work with your
changes, and that distutils got confused, and fails somewhere later
(or sooner, who knows). Without actually seeing the errors you got, it
is difficult to know more - but I would make sure the command line
arguments
come from the compiler...
I'm lost... What does it mean, and why are there source files named ...c.src?
Many thanks,
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
come from the compiler...
I'm lost... WHat does it mean, and why are there source files named ...c.src?
Many thanks,
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
other packages which are only available there (e.g., scipy or netCDF4 if
specified as a requirement for the install... strange. It also doesn't seem
to work for tables (2.1, so not the newest version)).
Any ideas on what might be going on?
Thanks a lot,
Christian.
- Christian Marquardt
:
2009/3/26 Christian Marquardt christ...@marquardt.sc
Hmm.
I downloaded the beta tar file and started from the untarred contents plus a
patch for the Intel compilers
(some changes of the command line arguments for the compiler and a added
setup.cfg file specifying the
paths
without much work and without complex
dependency analysis. Do you see a possible pit fall? I don't.
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
(probably Python.org) eventually.
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
does not work well
yet for 64 bits.
The offical Windows builds of Python 2.5 are created with Visual C 7.1
(also known as VS2003). You can compile an extension with VS 2005 but
that will cause trouble.
Christian
___
Numpy-discussion mailing list
Numpy
Hallo Nina,
ich huete gerade meinen kranken Sohn, wollte aber nicht versaeumen,
Platten zu reservieren:
Januar bis einschliesslich Juni 2009 haette ich gerne 2 Platten pro Monat
gruesse, Christian
___
Numpy-discussion mailing list
Numpy-discussion
darn! How could I be that stupid... Please ignore the last message.
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
APIs for floats.
Hope to shed some light on things
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
ending with '.0' where the point has not been replaced.
I guess this is a bug. In fact I do not like the idea that repr() of a
numpy float honours the locale settings.
Reagrds, Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http
Charles R Harris schrieb:
On Sun, Aug 31, 2008 at 1:14 PM, Christian K. [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Hi,
I just came across somethin I never noticed before. I cannot say whether
this is due to an update of numpy but it is possible - I am running
changes to the parser and tokenizer - perhaps to
the grammar, too. The code is rather complex and tricky - and not very
well documented.
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo
problem more elegant without breaking
other modules?
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
for with open(filename) as fh.
The ideas needs a good PEP. You are definitely up to something. You also
came up with a list of possible issues and corner cases. Are you
interested in pursuing the proposal? *wink*
Christian
___
Numpy-discussion mailing list
Andrew Dalke wrote:
Or write B \circledast C ? (Or \oast?) Try using Google to search
for that character.
unicodedata.lookup('CIRCLED ASTERISK OPERATOR')
'⊛'
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
and 3.0. We came to
the conclusion that we can't rely on the platform's math functions
(especially trigonometric and hyperbolic functions) for special values.
So Mark came up with the idea of lookup tables for special values. Read
my other mail for more informations.
Christian
on a 32bit OS or 8
bytes on a 64bit OS, aka sizeof(uintptr_t). An empty dict increases the
size of every object by ~30 byte.
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
. The allocation
and deallocation of dicts is cheap if you can stay below the threshold.
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
in the matter. :]
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
://svn.python.org/projects/python/trunk/Include/pymath.h
http://svn.python.org/projects/python/trunk/Python/pymath.c
HTH
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Stuart Brorson schrieb:
Hi --
Sorry to be a pest with corner cases, but I found another one.
[...]
Mark and I spent a *lot* of time in fixing those edge cases in Python
2.6 and 3.0. We used the C99 standard as template. I recommend that you
look at our code.
Christian
/obmalloc.c . For
integer and floats uses a separate block allocation schema.
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Matthieu Brucher schrieb:
Hi,
As I've said, you must start by compiling Python with VC++ 8, that means
using the 2.6 alpha.
Negative Houston
Python 2.6 and 3.0 are using VS 2008 aka VC 9.0
Christian
___
Numpy-discussion mailing list
Numpy
, float(nan))
nan
math.pow(0, -1)
Traceback (most recent call last):
File stdin, line 1, in module
ValueError: math domain error
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy
to the exception
part.
Also, what do these specs say about 0^complex?
See for yourself
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf The
interesting information are in Annex F.9 and Annex G.6.
So far we haven't dealt with complex powers and Python doesn't support
0.**1j yet.
Christian
DLLs. .NET assemblies as well as Side-by-Side
dlls (SxS) must be registered properly. You can install a SxS dll in
PATH but simple copying the DLL isn't enough. It also depends on the OS.
Have fun! The SxS issue has bitten us in the a.. when we delivered the
second beta of Python 3.0.
Christian
articles to get the big picture. The information is scattered
all over the place. :/
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
-- shorter repr of floats
http://bugs.python.org/issue1635 -- platform independent representation
and creation of +/-inf and nan
http://bugs.python.org/issue1640 -- additional functions for the math module
new: sys.maxsize, gone in 3.0: sys.maxint
Christian
Thank you all for your valuable input. Learned something 'bout Numeric
again. And my problem is solved ;-).
Thanks
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
: resize only works on contiguous arrays
The arrays 'a' and 'rotation' are identical.
Any ideas, what's going on or how to solve this?
Numeric version is: 24.2
TIA
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http
not to tell you nonsense. So go ahead and
do so, too.
So there is not way to get a sub-array based on coordinates in an array?
It's just a guess, but probably you can't use an ndarray as index because
indices like this
[[2],[3,4]]
aren't valid input for a ndarray.
Christian
) out of range (0=index=2) in
dimension 0
so you have to convert it to a list before:
In [122]: c[ind.tolist()]
Out[122]: array([[ 55., 56., 57., 58., 59.]])
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http
it)
NOT having any experience on Macs, but doesn't the above error message
suggest that your netCDF library has been build for a i386 instead of
a ppc? Could that be the problem? Can you run the ncdump and ncgen
executables from the same netCDF distribution?
Just a thought,
Christian
be something like:
~/lib/python2.X/site-packages
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Restore the invariant, and follow python.
This
-5 // 6
-1
and
array([-5])[0] // 6
0
simply doesn't make sense - in any language, you would expect that
all basic operators provide you with the same same answer when
applied to the same number, no?
Christian.
On Tue, April 24
should give the same, really... (Python 2.5, numpy 1.0.3dev3725,
Linux, Intel compilers...)
Many thanks for any ideas / advice,
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy
Actually,
it happens for normal integers as well:
n = np.array([-5, -100, -150])
n // 100
array([ 0, -1, -1])
-5//100, -100//100, -150//100
(-1, -1, -2)
On Mon, April 23, 2007 22:20, Christian Marquardt wrote:
Dear all,
this is odd:
import numpy as np
fact
Hmmm,
On Mon, April 23, 2007 22:29, Christian Marquardt wrote:
Actually,
it happens for normal integers as well:
n = np.array([-5, -100, -150])
n // 100
array([ 0, -1, -1])
-5//100, -100//100, -150//100
(-1, -1, -2)
and finally:
n % 100
array([95, 0, 50
'
Thanks,
Christian.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
('name of file').readlines()
data = N.array([[float(x) for x in row.split(' ')[1:]] for row in data[1:]])
(the above expression should be one line)
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman
where to try to fix it -
does anyone on this list know?
Many thanks,
Christian.
diff -r -C3 numpy-1.0.2.orig/numpy/distutils/fcompiler/ibm.py numpy-1.0.2/numpy/distutils/fcompiler/ibm.py
*** numpy-1.0.2.orig/numpy/distutils/fcompiler/ibm.py Fri Mar 2 20:52:50 2007
--- numpy-1.0.2/numpy/distutils
for
commercial use.
Just a thought...
Christian.
On Wed, April 18, 2007 22:27, rex wrote:
Andrew Straw [EMAIL PROTECTED] [2007-04-18 13:22]:
rex wrote:
If your use is entirely non-commercial you can use Intel's MKL with
built-in optimized BLAS and LAPACK and avoid the need for ATLAS.
Just
Robert Kern wrote:
Christian K wrote:
Hi,
I'm trying to build numpy from svn on ubuntu edgy with atlas provided by
ubuntu
package atlas3-sse2-dev which contains:
/usr
/usr/lib
/usr/lib/sse2
/usr/lib/sse2/libatlas.a
/usr/lib/sse2/libcblas.a
/usr/lib/sse2/libf77blas.a
/usr/lib/sse2
Hi,
could someone please provide example code for how to make a subclassed ndarray
pickable? I don't quite understand the docs of ndarray.__reduce__.
My subclassed ndarray has just one additional attribute.
Thanks, Christian
___
Numpy-discussion
Confusingly lapack_atlas resides in /usr/lib but even though setup.py looks for
it in that place it reports 'not found'.
What should I try next?
Thanks, Christian
___
Numpy-discussion mailing list
[EMAIL PROTECTED]
http://projects.scipy.org/mailman/listinfo/numpy
Christian K wrote:
Hi,
I'm trying to build numpy from svn on ubuntu edgy with atlas provided by
ubuntu
package atlas3-sse2-dev which contains:
[...]
I tried both with and without a site.cfg:
[DEFAULT]
library_dirs = /usr/lib/sse2
include_dirs = /usr/include
[blas_opt
2.6.3.3, twisted 2.4.
Any ideas how to solve that?
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Bill Baxter wrote:
On 3/20/07, Christian K. [EMAIL PROTECTED] wrote:
Hi Bill,
I just tried ezplot and encountered some problems:
In [1]: import ezplot
In [2]: p = ezplot.Plotter()
In [3]: p.plot([1,2,3],[1,4,9],marker='o')
At this point a window pops up for a second, closes again
is only that large because it replicates much
of already existing code...
I have been using this port for many weeks now without any problems or
difficulties. I hope it's useful for others as well;-)
Christian.
On Fri, February 9, 2007 15:31, Daran L. Rife wrote:
Hi Travis,
If you're still
/include/hdf), so it it almost certainly needs to be
adapted to the location of the actual HDF libraries and headers.
Regards,
Christian.
On Fri, February 9, 2007 22:00, Christian Marquardt wrote:
Dear list,
attached is a patch for the original pycdf-0.6.2-rc1 distribution as
available through
Hi
Thanks for all your suggestions.
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
question.
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
any 'if'.
However using the subclassed array class which was proposed by Stefan is pretty
elegant.
Thanks to everybody, Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Christian Meesters meesters at uni-mainz.de writes:
Since searchsorted returns the index of the first item in a that is = or
the key, it can't make the distinction between 0.1 and 0.2 as I would like to
Then how about a.searchsorted(val+0.5)
Christian
Sven Schreiber svetosch at gmx.net writes:
So I think what's needed is:
b = array(yourlist)
b.reshape(b.shape[0], -1)
Yes! That is it.
Thanks, Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org
- Beautiful! Look at all the tripple digits!
Works as expected with python2.4/numpy1.0
Christian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
as --prefix), and
set PYTHONPATH accordingly. It's not a good idea to overwrite the system
wide installations, but again - that's purely a convention, nothing more.
Hope this helps a bit... Good luck!
Christian.
Did you change the distutils installation location? See this page for
the
various
On Wed, 2007-01-10 at 17:53 -0600, Robert Kern wrote:
How are you viewing the docstrings that wouldn't associate the docstring with
the function?
print function.__doc__
Like so:
Python 2.4 (#1, Mar 22 2005, 21:42:42)
[GCC 3.3.5 20050117 (prerelease) (SUSE Linux)] on linux2
Type
87 matches
Mail list logo