techniques of which I am aware for building large scale programs with
manageable complexity.
I would take any Fortran hype with large grains of salt.
Regards,
Ravi
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman
platform-specific stuff in my CMake scripts).
Regards,
Ravi
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
On Saturday 07 November 2009 22:56:29 a...@ajackson.org wrote:
I want to build a 2D array of lists, and so I need to initialize the
array with empty lists :
myarray = array([[[],[],[]] ,[[],[],[]]])
In [1]: [[[]]*3]*2
Out[1]: [[[], [], []], [[], [], []]]
Hope this helps.
Ravi
finally get rid of lots of hacks
(specifically to work around MSVC 7.1 deficiencies) in my code. MSVC 9.0 (used
to build python 2.6) will, hopefully, be a little better.
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http
binary be available for python 2.6?
Or is my assumption -- that the scipy 0.7.0 binary available for python 2.5
will not work with python 2.6 -- incorrect?
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org
' and 'idx' have the same size.
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
, 21, 22, 23]])
In [3]: i = array( [1,3,4] )
In [4]: j = array( [1,3] )
In [5]: a[ ix_(i,j) ]
Out[5]:
array([[ 5, 7],
[13, 15],
[17, 19]])
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http
]: (1,)
Why does d3 field 'd' have an extra axis? And why does d4 field 'd' have only
one axis?
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
fixed in the
updated code. Does that still not work for you?
Regards,
Ravi
[1] http://mail.python.org/pipermail/cplusplus-sig/2008-October/013825.html
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman
at it.
Regards,
Ravi
--- numpyregister.hpp.old 2009-01-21 11:15:50.0 -0500
+++ numpyregister.hpp 2008-10-08 11:35:24.0 -0400
@@ -174,6 +174,7 @@
static void execute() {}
};
+// Structure to hold flags for creating arrays referencing existing data.
template typename T struct
some benchmarks on the relative speeds
of the two approaches?
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
, not of the actual array. This simplifies the code
quite a bit while maintaining the reference semantics that python programmers
use.
See dump_vec in decco.cc (the example module) for an example.
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion
]: y = zeros( (0,), dtype=int32 )
In [7]: y.shape
Out[7]: (0,)
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
, is this potentially a problem?
No. Once the seeding is done, the Mersenne twister generates the random
numbers. So long as you are using those, you are fine (except for
cryptographic applications). If you don't trust the seed, you could always
seed it yourself as well.
Regards,
Ravi
of dealing with numpy matrices vectors directly
as objects look at either of the following:
http://mail.python.org/pipermail/cplusplus-sig/2008-October/013825.html
http://mathema.tician.de/software/pyublas
Of course, I am biased towards the first approach.
Regards,
Ravi
Oops, please ignore my previous message. I just started using a new mail
client which marked some of my old messages (which I had tagged interesting)
the same as new messages and I just blindly replied to them without checking
the date. Sorry about the spam.
Ravi
:
http://mail.python.org/pipermail/cplusplus-sig/2008-October/013825.html
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
]) ) ]
Out[4]:
array([[ 6, 8, 9],
[11, 13, 14]])
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
it work.
Thank you very much for the pointer.
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
.
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
and
will likely be supported for decades to come.
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
to platform-specific issues.
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
, is there any chance we could get experimental
binaries of numpy 1.2.0 for python 2.6? I do understand that a negative answer
is very likely and the reasons therefor.
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http
,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
for taking on this arduous task.
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
- so check this out if you do plan to use
more than just numpy. There are sometimes drawbacks to using brand
new releases ;)
If I understand Ravi right, one problem with 2.5 is that it relies on an
old toolset (VS 2003, not available anymore). OTOH, 2.6 depends on the
most recent toolset
( PyArray_Type, 2, dims, /*whatever*/, NULL,
NULL, 0, NPY_FARRAY, NULL );
Both the above return a array who PyArray_ISFORTRAN( obj ) succeeds. I can
verify this by checking bits 0 and 1 (LSB is bit 0) of PyArray_FLAGS.
Regards,
Ravi
in an internally consistent state (weak exception
safety)?
In general, do functions modifying numpy arrays provide at least weak
exception safety guarantee? Or do they go one step further and provide
rollback semantics in case of exceptions?
Regards,
Ravi
the
reference once to get it back to 17 because I should not need a reference as I
already have one.
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
(by me as a programmer
writing code for A, B and C) in order to ensure that the arrays as seen by
them do not go out of sync?
Regards,
Ravi
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy
30 matches
Mail list logo