[SciPy-Dev] GSOC - sparse improvements, dtypes introduction

Pauli Virtanen pav@iki...
Wed Apr 17 15:43:40 CDT 2013


17.04.2013 23:36, Blake Griffith kirjoitti:
> In particular, where is the class T is coming from
> in https://github.com/scipy/scipy/blob/master/scipy/sparse/sparsetools/coo.h#L105

That's a C++ template -- "class T" means "some type, let's call it T",
so it's not a specific class.

The types SWIG uses are listed at the end of `sparsetools.i`. The SWIG
macro INSTANTIATE_ALL defined there is then called e.g. in `csc.i` for
all the relevant routines. If you look at the generated `csc_wrap.cxx`,
you see calls to the routines with explicitly specified types.

Pauli Virtanen

More information about the SciPy-Dev mailing list