whether list subscribers think this is worthwhile
and ask someone to add+push it for me …
Thanks,
Glen Mabey
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box
Oops, I meant 'Cython is its own language,' not Python (although Python
qualifies, too, just not in context).
Also, Pyrex, listed in the c-info.python-as-glue.html page, was the pre-cursor
to Cython.
-Bill
On Oct 27, 2014, at 10:20 AM, Bill Spotz wfsp...@sandia.gov wrote:
Python is its own
a dimension?
Thanks for any help,
Kaspar
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz **
** Sandia National
*
data_location, int unused)}
But it doesn’t seem to do anything an I just get a TypeError.
You might have noticed I am a little bit out of my depth…
Ta,
Kaspar
On 22 November 2013 22:40, Bill Spotz wfsp...@sandia.gov wrote:
Kaspar,
Yes, in order for numpy.i typemaps to work, you need
function.
The only point where the check could be made would be in the run
function which should not be run with a value longer than the array
length.
On 22 November 2013 23:19, Bill Spotz wfsp...@sandia.gov wrote:
I think you are getting close. Application of the typemap simply
/listinfo/numpy-discussion
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370Email: wfsp...@sandia.gov
https://github.com/wfspotz/numpy/compare/numpy-swig
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370Email: wfsp...@sandia.gov
Is there documentation for the new C API for numpy?
Thanks,
Bill
On Feb 26, 2013, at 2:04 PM, Bill Spotz wrote:
So the difference is that I was wanting to make changes in the git repository
that is at version 1.8. I would expect it to still work, though.
I can take a look at the scipy
So the difference is that I was wanting to make changes in the git repository
that is at version 1.8. I would expect it to still work, though.
I can take a look at the scipy issue.
-Bill
On Feb 26, 2013, at 1:41 PM, Ralf Gommers wrote:
On Mon, Feb 25, 2013 at 6:12 AM, Bill Spotz wfsp
the same issue. I'll post something here when I can get to it.
- Tom
On Tue, Oct 9, 2012 at 10:52 AM, Bill Spotz wfsp...@sandia.gov wrote:
Tom, Charles,
If you discuss this further, be sure to CC me.
-Bill Spotz
On Oct 9, 2012, at 8:50 AM, Charles R Harris wrote:
Hi Tom,
On Tue
Tom, Charles,
If you discuss this further, be sure to CC me.
-Bill Spotz
On Oct 9, 2012, at 8:50 AM, Charles R Harris wrote:
Hi Tom,
On Tue, Oct 9, 2012 at 8:30 AM, Tom Krauss thomas.p.kra...@gmail.com wrote:
Hi,
I've been happy to use numpy.i for generating SWIG interfaces to C
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800
length: %i\n,j,nparray-dimensions[j]);
}
}
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370Email: wfsp...@sandia.gov
-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370
it as necessary.
-gideon
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz **
** Sandia National Laboratories Voice
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800
Chuck,
I provided a little more context in another email. The user is using numpy
1.6.1 with python 2.6. I asked him to try an earlier version -- we'll see how
it goes. This is code that has worked for a long time. It still works on my
laptop and on our test platforms.
The behavior on the
=timedelta64[us])
I am stuck as to why this might be happening. Any ideas?
Thanks
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM
When you download numpy, it should be in doc/swig/numpy.i
On Feb 26, 2011, at 6:15 PM, Brandt Belson wrote:
I just want to know exactly how to get the file numpy.i (for SWIG), I've come
across links that seem to take me nowhere.
Thank you.
** Bill Spotz
.
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370Email: wfsp...@sandia.gov
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370Email: wfsp...@sandia.gov
.
Now, if I use the typemaps of numpy.i I can choose between NPY_LONG
and NPY_INT.
But those are sometimes 32 sometimes 64 bit, depending on the system.
Any ideas ... ?
npy_intp.
Chuck
** Bill Spotz **
** Sandia National Laboratories Voice
gratuit, fiable et complet
Profitez-en ATT2.txt
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370Email: wfsp...@sandia.gov
... }
};
%template(cN) Containersize_t;
%typemap(python,out) Containersize_t
{
npy_intp dims[] = { 5 };
PyObject* obj = PyArray_SimpleNewFromData (1,dims,PyArray_UINT,
$1.ptr());
$result = obj;
}
template class T navlib::arrayT getContainer();
%template(getContainerN ) getContainersize_t;
** Bill Spotz
is complaining.
thanks,
ross
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154
(PyExc_MemoryError, Failed malloc());
break;
default:
PyErr_Format(PyExc_Exception, Unknown exception);
}
return NULL;
}
}
If there's a better way of doing this, I'll update the cookbook
recipe.
Regards,
Egor
** Bill Spotz
(PyExc_Exception, Unknown exception);
}
return NULL;
}
}
If there's a better way of doing this, I'll update the cookbook
recipe.
Regards,
Egor
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170
%{
#define SWIG_FILE_WITH_INIT
#include Array2D.h
%}
%include numpy.i
%init %{
import_array();
%}
%ignore Array2D();
%ignore Array2D(long nrow, long ncol);
%apply (int DIM1, int DIM2, double* IN_ARRAY2) {(int nrow, int ncol,
double *data)}
%include Array2D.h
** Bill Spotz
kevin.francoi...@uclouvain.be
On Tue, Mar 24, 2009 at 6:13 PM, Bill Spotz wfsp...@sandia.gov
wrote:
Kevin,
You need to declare vecSum() *after* you %include numpy.i and use
the %apply directive. Based on what you have, I think you can just
get rid of the extern double vecSum(...). I
?
Thank you very much,
Kevin
ATT2.txt
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370Email: wfsp...@sandia.gov
on what I should be looking for?
Thanks
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370Email: [EMAIL PROTECTED
On May 21, 2008, at 5:15 PM, Robert Kern wrote:
On Wed, May 21, 2008 at 3:34 PM, Bill Spotz [EMAIL PROTECTED]
wrote:
I am running into a problem with a numpy-compatible extension module
that I develop, and I believe it has to do with
PY_ARRAY_UNIQUE_SYMBOL.
I set PY_ARRAY_UNIQUE_SYMBOL
? or does it make
a copy of the array to pass it to/from the C function?
I'm new to programming and I'd like to make sure of this. I need to
use in C very large arrays frequently, so I want to avoid making
copies of it, because speed will be an important factor.
Thanks in advance!
** Bill
the extracted row/
column with two indexes. Multiplication with the extracted row/column
would still work as expected (and that sounded to me like what the
application typically was . . . maybe I'm wrong).
** Bill Spotz **
** Sandia National
On Apr 24, 2008, at 8:52 PM, Bill Spotz wrote:
On Apr 24, 2008, at 5:45 PM, Timothy Hochberg wrote:
Bill Spotz wrote:
I have generally thought about this in the context of, say, a
Krylov-space iterative method, and what that type of interface
would
lead to the most readable code.
Can
On Apr 24, 2008, at 5:45 PM, Timothy Hochberg wrote:
Bill Spotz wrote:
I have generally thought about this in the context of, say, a
Krylov-space iterative method, and what that type of interface would
lead to the most readable code.
Can you whip up a small example, starting
argue for returning False, but then the
converter might be too zealous
things that used to work like:
if type(item) in [types.IntType, types.FloatType]:
or:
isinstance(item, types.FloatType)
now fail,
should we be concerned? should we consider returning True ?
Thanks,
C.
** Bill Spotz
to look at. I also
built in quite a bit of compatibility with numpy.
On Apr 7, 2008, at 8:14 AM, lan haiping wrote:
Dear Guys @list :
I wanna do some application with mulgrid method for electrostatic
problems,
is there some python package available for my purpose ?
** Bill Spotz
:-(
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370Email: [EMAIL PROTECTED] **
___
Numpy
* of upgrading
them to numpy, but it hasn't happened yet, to my knowledge.
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370
this the default behavior if NPY_FORCECAST is
false?)
Thanks
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370Email: [EMAIL PROTECTED
(doc/numpy_swig.*) has been updated to
reflect all of these changes.
A small typo: in the docs you also write about 1D FORTRAN ARGOUTVIEW
wrappers:
( DATA_TYPE** ARGOUTVIEW_FARRAY1, DIM_TYPE* DIM1 )
( DIM_TYPE* DIM1, DATA_TYPE** ARGOUTVIEW_FARRAY1 )
which of course do not exist.
** Bill
all of these changes.
On Nov 26, 2007, at 3:52 PM, Christopher Barker wrote:
Bill Spotz wrote:
First, my plan is to add to numpy.i, typemaps for signatures like the
following:
%typemap(argout) (double** ARGOUT_ARRAY1, int* DIM1)
It is important to note that even though the same argument
file
class_example_usage.py: example usage in python
And some comments:
Bill Spotz schrieb:
Here is what I am proposing you do: in your interface file, add
something like
PyObject * getMatrix()
{
npy_intp dims[2] = { /* Obtain the dimensions to your
internal matrix
list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM
be able to better explain.
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370Email: [EMAIL PROTECTED
. This will
never be as big as the Numeric/numarray split, but still
Let me know what you are trying to do. If numpy.i can do it, I'll
show you how. If not, I'll work to upgrade numpy.i. I suspect it
can do everything except the fortran ordering.
** Bill Spotz
?
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370Email: [EMAIL PROTECTED] **
___
Numpy
of t1 isn't
going to change, and only a single element is allocated.
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370Email
, communicator and domain decomposition classes. The
PyTrilinos interface to Epetra has been designed with a high degree
of compatibility with numpy, with the hope of complementing the SciPy
development efforts.
** Bill Spotz **
** Sandia National
different in the setup.py?
I use numpy.i with C++ all the time. Let me know the specific nature
of your problem and I'll look into it.
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax
-discussion
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-5451 **
** Albuquerque, NM 87185-0370Email: [EMAIL PROTECTED
On Sep 5, 2007, at 11:19 AM, Christopher Barker wrote:
Bill Spotz wrote:
I have been considering adding some C++ STL support to numpy/doc/
swig/
numpy.i. Probably std::vectorTYPE = PyArrayObject (and some
std::complexTYPE support as well). Is this what you had in mind?
well, std
On Sep 5, 2007, at 11:38 AM, Christopher Barker wrote:
Of course, it should be possible to write C++ wrappers around the core
ND-array object, if anyone wants to take that on!
boost::python has done this for Numeric, but last I checked, they
have not upgraded to numpy.
** Bill Spotz
/listinfo/numpy-discussion
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz **
** Sandia National Laboratories Voice
matrices??
Cheers,
Alan Isaac
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-5451 **
** Albuquerque, NM 87185-0370Email: [EMAIL PROTECTED
On Mar 29, 2007, at 6:48 PM, Alan G Isaac wrote:
On Thu, 29 Mar 2007, Bill Spotz apparently wrote:
What I envisioned was that M[i,:] would return
a row_vector and M[:,j] would return a column_vector,
because this would be symmetric behavior. M[i], by
convention, would behave the same as M[i
that as an exercise...
On Feb 16, 2007, at 10:59 AM, Andrea Tomadin wrote:
Il giorno 15/feb/07, alle ore 22:26, Bill Spotz ha scritto:
It seems to me you would need to %ignore vec, so that it is not
wrapped as a raw pointer to a double, and then in your interface
file create a PyArrayObject whose data
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170
]
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170
62 matches
Mail list logo