Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

GEN: sparse/sparsetools: regenerate swig files (Swig 2.0.4)

  • Loading branch information...
commit 05a1fbe607f5fecc9be78aaed1d8af5e36136f50 1 parent b9370d9
@pv pv authored
View
567 scipy/sparse/sparsetools/bsr.py
@@ -1,9 +1,10 @@
# This file was automatically generated by SWIG (http://www.swig.org).
-# Version 2.0.1+capsulehack
+# Version 2.0.4
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
-# This file is compatible with both classic and new-style classes.
+
+
from sys import version_info
if version_info >= (2,6,0):
@@ -39,7 +40,7 @@ def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
- if (not static) or hasattr(self,name):
+ if (not static):
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
@@ -66,484 +67,488 @@ class _object : pass
_newclass = 0
+# This file is compatible with both classic and new-style classes.
+
+
def bsr_diagonal(*args):
- """
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ """
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
signed char Ax, signed char Yx)
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned char Ax, unsigned char Yx)
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
short Ax, short Yx)
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned short Ax, unsigned short Yx)
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
int Ax, int Yx)
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned int Ax, unsigned int Yx)
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
long long Ax, long long Yx)
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned long long Ax, unsigned long long Yx)
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
float Ax, float Yx)
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
double Ax, double Yx)
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
long double Ax, long double Yx)
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_cfloat_wrapper Ax, npy_cfloat_wrapper Yx)
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_cdouble_wrapper Ax, npy_cdouble_wrapper Yx)
- bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_diagonal(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_clongdouble_wrapper Ax, npy_clongdouble_wrapper Yx)
"""
- return _bsr.bsr_diagonal(*args)
+ return _bsr.bsr_diagonal(*args)
def bsr_scale_rows(*args):
- """
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ """
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
signed char Ax, signed char Xx)
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned char Ax, unsigned char Xx)
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
short Ax, short Xx)
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned short Ax, unsigned short Xx)
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
int Ax, int Xx)
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned int Ax, unsigned int Xx)
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
long long Ax, long long Xx)
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned long long Ax, unsigned long long Xx)
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
float Ax, float Xx)
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
double Ax, double Xx)
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
long double Ax, long double Xx)
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_cfloat_wrapper Ax, npy_cfloat_wrapper Xx)
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_cdouble_wrapper Ax, npy_cdouble_wrapper Xx)
- bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_rows(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_clongdouble_wrapper Ax, npy_clongdouble_wrapper Xx)
"""
- return _bsr.bsr_scale_rows(*args)
+ return _bsr.bsr_scale_rows(*args)
def bsr_scale_columns(*args):
- """
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ """
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
signed char Ax, signed char Xx)
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned char Ax, unsigned char Xx)
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
short Ax, short Xx)
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned short Ax, unsigned short Xx)
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
int Ax, int Xx)
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned int Ax, unsigned int Xx)
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
long long Ax, long long Xx)
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned long long Ax, unsigned long long Xx)
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
float Ax, float Xx)
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
double Ax, double Xx)
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
long double Ax, long double Xx)
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_cfloat_wrapper Ax, npy_cfloat_wrapper Xx)
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_cdouble_wrapper Ax, npy_cdouble_wrapper Xx)
- bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_scale_columns(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_clongdouble_wrapper Ax, npy_clongdouble_wrapper Xx)
"""
- return _bsr.bsr_scale_columns(*args)
+ return _bsr.bsr_scale_columns(*args)
def bsr_transpose(*args):
- """
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ """
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
signed char Ax, int Bp, int Bj, signed char Bx)
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned char Ax, int Bp, int Bj, unsigned char Bx)
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
short Ax, int Bp, int Bj, short Bx)
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned short Ax, int Bp, int Bj, unsigned short Bx)
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
int Ax, int Bp, int Bj, int Bx)
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned int Ax, int Bp, int Bj, unsigned int Bx)
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
long long Ax, int Bp, int Bj, long long Bx)
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned long long Ax, int Bp, int Bj, unsigned long long Bx)
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
float Ax, int Bp, int Bj, float Bx)
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
double Ax, int Bp, int Bj, double Bx)
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
long double Ax, int Bp, int Bj, long double Bx)
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_cfloat_wrapper Ax, int Bp, int Bj, npy_cfloat_wrapper Bx)
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_cdouble_wrapper Ax, int Bp, int Bj, npy_cdouble_wrapper Bx)
- bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
- npy_clongdouble_wrapper Ax, int Bp, int Bj,
+ bsr_transpose(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ npy_clongdouble_wrapper Ax, int Bp, int Bj,
npy_clongdouble_wrapper Bx)
"""
- return _bsr.bsr_transpose(*args)
+ return _bsr.bsr_transpose(*args)
def bsr_matmat_pass2(*args):
- """
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, signed char Ax, int Bp, int Bj, signed char Bx,
+ """
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, signed char Ax, int Bp, int Bj, signed char Bx,
int Cp, int Cj, signed char Cx)
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, unsigned char Ax, int Bp, int Bj, unsigned char Bx,
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, unsigned char Ax, int Bp, int Bj, unsigned char Bx,
int Cp, int Cj, unsigned char Cx)
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, short Ax, int Bp, int Bj, short Bx,
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, short Ax, int Bp, int Bj, short Bx,
int Cp, int Cj, short Cx)
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, unsigned short Ax, int Bp, int Bj,
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, unsigned short Ax, int Bp, int Bj,
unsigned short Bx, int Cp, int Cj, unsigned short Cx)
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, int Ax, int Bp, int Bj, int Bx, int Cp,
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, int Ax, int Bp, int Bj, int Bx, int Cp,
int Cj, int Cx)
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, unsigned int Ax, int Bp, int Bj, unsigned int Bx,
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, unsigned int Ax, int Bp, int Bj, unsigned int Bx,
int Cp, int Cj, unsigned int Cx)
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, long long Ax, int Bp, int Bj, long long Bx,
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, long long Ax, int Bp, int Bj, long long Bx,
int Cp, int Cj, long long Cx)
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, unsigned long long Ax, int Bp, int Bj,
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, unsigned long long Ax, int Bp, int Bj,
unsigned long long Bx, int Cp, int Cj, unsigned long long Cx)
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, float Ax, int Bp, int Bj, float Bx,
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, float Ax, int Bp, int Bj, float Bx,
int Cp, int Cj, float Cx)
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, double Ax, int Bp, int Bj, double Bx,
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, double Ax, int Bp, int Bj, double Bx,
int Cp, int Cj, double Cx)
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, long double Ax, int Bp, int Bj, long double Bx,
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, long double Ax, int Bp, int Bj, long double Bx,
int Cp, int Cj, long double Cx)
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, npy_cfloat_wrapper Ax, int Bp, int Bj,
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, npy_cfloat_wrapper Ax, int Bp, int Bj,
npy_cfloat_wrapper Bx, int Cp, int Cj, npy_cfloat_wrapper Cx)
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, npy_cdouble_wrapper Ax, int Bp, int Bj,
- npy_cdouble_wrapper Bx, int Cp, int Cj,
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, npy_cdouble_wrapper Ax, int Bp, int Bj,
+ npy_cdouble_wrapper Bx, int Cp, int Cj,
npy_cdouble_wrapper Cx)
- bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
- int Aj, npy_clongdouble_wrapper Ax, int Bp,
- int Bj, npy_clongdouble_wrapper Bx, int Cp,
+ bsr_matmat_pass2(int n_brow, int n_bcol, int R, int C, int N, int Ap,
+ int Aj, npy_clongdouble_wrapper Ax, int Bp,
+ int Bj, npy_clongdouble_wrapper Bx, int Cp,
int Cj, npy_clongdouble_wrapper Cx)
"""
- return _bsr.bsr_matmat_pass2(*args)
+ return _bsr.bsr_matmat_pass2(*args)
def bsr_matvec(*args):
- """
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ """
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
signed char Ax, signed char Xx, signed char Yx)
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned char Ax, unsigned char Xx, unsigned char Yx)
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
short Ax, short Xx, short Yx)
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned short Ax, unsigned short Xx, unsigned short Yx)
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
int Ax, int Xx, int Yx)
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned int Ax, unsigned int Xx, unsigned int Yx)
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
long long Ax, long long Xx, long long Yx)
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
- unsigned long long Ax, unsigned long long Xx,
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ unsigned long long Ax, unsigned long long Xx,
unsigned long long Yx)
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
float Ax, float Xx, float Yx)
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
double Ax, double Xx, double Yx)
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
long double Ax, long double Xx, long double Yx)
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
- npy_cfloat_wrapper Ax, npy_cfloat_wrapper Xx,
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ npy_cfloat_wrapper Ax, npy_cfloat_wrapper Xx,
npy_cfloat_wrapper Yx)
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
- npy_cdouble_wrapper Ax, npy_cdouble_wrapper Xx,
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ npy_cdouble_wrapper Ax, npy_cdouble_wrapper Xx,
npy_cdouble_wrapper Yx)
- bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
- npy_clongdouble_wrapper Ax, npy_clongdouble_wrapper Xx,
+ bsr_matvec(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ npy_clongdouble_wrapper Ax, npy_clongdouble_wrapper Xx,
npy_clongdouble_wrapper Yx)
"""
- return _bsr.bsr_matvec(*args)
+ return _bsr.bsr_matvec(*args)
def bsr_matvecs(*args):
- """
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
- int Aj, signed char Ax, signed char Xx,
+ """
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ int Aj, signed char Ax, signed char Xx,
signed char Yx)
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
- int Aj, unsigned char Ax, unsigned char Xx,
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ int Aj, unsigned char Ax, unsigned char Xx,
unsigned char Yx)
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
int Aj, short Ax, short Xx, short Yx)
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
- int Aj, unsigned short Ax, unsigned short Xx,
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ int Aj, unsigned short Ax, unsigned short Xx,
unsigned short Yx)
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
int Aj, int Ax, int Xx, int Yx)
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
- int Aj, unsigned int Ax, unsigned int Xx,
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ int Aj, unsigned int Ax, unsigned int Xx,
unsigned int Yx)
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
int Aj, long long Ax, long long Xx, long long Yx)
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
- int Aj, unsigned long long Ax, unsigned long long Xx,
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ int Aj, unsigned long long Ax, unsigned long long Xx,
unsigned long long Yx)
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
int Aj, float Ax, float Xx, float Yx)
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
int Aj, double Ax, double Xx, double Yx)
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
- int Aj, long double Ax, long double Xx,
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ int Aj, long double Ax, long double Xx,
long double Yx)
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
- int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper Xx,
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper Xx,
npy_cfloat_wrapper Yx)
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
- int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper Xx,
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper Xx,
npy_cdouble_wrapper Yx)
- bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
- int Aj, npy_clongdouble_wrapper Ax, npy_clongdouble_wrapper Xx,
+ bsr_matvecs(int n_brow, int n_bcol, int n_vecs, int R, int C, int Ap,
+ int Aj, npy_clongdouble_wrapper Ax, npy_clongdouble_wrapper Xx,
npy_clongdouble_wrapper Yx)
"""
- return _bsr.bsr_matvecs(*args)
+ return _bsr.bsr_matvecs(*args)
def bsr_elmul_bsr(*args):
- """
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- signed char Ax, int Bp, int Bj, signed char Bx,
+ """
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ signed char Ax, int Bp, int Bj, signed char Bx,
int Cp, int Cj, signed char Cx)
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned char Ax, int Bp, int Bj, unsigned char Bx,
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned char Ax, int Bp, int Bj, unsigned char Bx,
int Cp, int Cj, unsigned char Cx)
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- short Ax, int Bp, int Bj, short Bx, int Cp,
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ short Ax, int Bp, int Bj, short Bx, int Cp,
int Cj, short Cx)
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned short Ax, int Bp, int Bj, unsigned short Bx,
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned short Ax, int Bp, int Bj, unsigned short Bx,
int Cp, int Cj, unsigned short Cx)
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- int Ax, int Bp, int Bj, int Bx, int Cp, int Cj,
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ int Ax, int Bp, int Bj, int Bx, int Cp, int Cj,
int Cx)
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned int Ax, int Bp, int Bj, unsigned int Bx,
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned int Ax, int Bp, int Bj, unsigned int Bx,
int Cp, int Cj, unsigned int Cx)
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- long long Ax, int Bp, int Bj, long long Bx,
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ long long Ax, int Bp, int Bj, long long Bx,
int Cp, int Cj, long long Cx)
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned long long Ax, int Bp, int Bj, unsigned long long Bx,
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned long long Ax, int Bp, int Bj, unsigned long long Bx,
int Cp, int Cj, unsigned long long Cx)
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- float Ax, int Bp, int Bj, float Bx, int Cp,
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ float Ax, int Bp, int Bj, float Bx, int Cp,
int Cj, float Cx)
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- double Ax, int Bp, int Bj, double Bx, int Cp,
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ double Ax, int Bp, int Bj, double Bx, int Cp,
int Cj, double Cx)
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- long double Ax, int Bp, int Bj, long double Bx,
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ long double Ax, int Bp, int Bj, long double Bx,
int Cp, int Cj, long double Cx)
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- npy_cfloat_wrapper Ax, int Bp, int Bj, npy_cfloat_wrapper Bx,
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ npy_cfloat_wrapper Ax, int Bp, int Bj, npy_cfloat_wrapper Bx,
int Cp, int Cj, npy_cfloat_wrapper Cx)
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- npy_cdouble_wrapper Ax, int Bp, int Bj, npy_cdouble_wrapper Bx,
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ npy_cdouble_wrapper Ax, int Bp, int Bj, npy_cdouble_wrapper Bx,
int Cp, int Cj, npy_cdouble_wrapper Cx)
- bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- npy_clongdouble_wrapper Ax, int Bp, int Bj,
+ bsr_elmul_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ npy_clongdouble_wrapper Ax, int Bp, int Bj,
npy_clongdouble_wrapper Bx, int Cp, int Cj, npy_clongdouble_wrapper Cx)
"""
- return _bsr.bsr_elmul_bsr(*args)
+ return _bsr.bsr_elmul_bsr(*args)
def bsr_eldiv_bsr(*args):
- """
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- signed char Ax, int Bp, int Bj, signed char Bx,
+ """
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ signed char Ax, int Bp, int Bj, signed char Bx,
int Cp, int Cj, signed char Cx)
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned char Ax, int Bp, int Bj, unsigned char Bx,
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned char Ax, int Bp, int Bj, unsigned char Bx,
int Cp, int Cj, unsigned char Cx)
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- short Ax, int Bp, int Bj, short Bx, int Cp,
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ short Ax, int Bp, int Bj, short Bx, int Cp,
int Cj, short Cx)
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned short Ax, int Bp, int Bj, unsigned short Bx,
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned short Ax, int Bp, int Bj, unsigned short Bx,
int Cp, int Cj, unsigned short Cx)
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- int Ax, int Bp, int Bj, int Bx, int Cp, int Cj,
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ int Ax, int Bp, int Bj, int Bx, int Cp, int Cj,
int Cx)
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned int Ax, int Bp, int Bj, unsigned int Bx,
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned int Ax, int Bp, int Bj, unsigned int Bx,
int Cp, int Cj, unsigned int Cx)
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- long long Ax, int Bp, int Bj, long long Bx,
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ long long Ax, int Bp, int Bj, long long Bx,
int Cp, int Cj, long long Cx)
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned long long Ax, int Bp, int Bj, unsigned long long Bx,
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned long long Ax, int Bp, int Bj, unsigned long long Bx,
int Cp, int Cj, unsigned long long Cx)
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- float Ax, int Bp, int Bj, float Bx, int Cp,
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ float Ax, int Bp, int Bj, float Bx, int Cp,
int Cj, float Cx)
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- double Ax, int Bp, int Bj, double Bx, int Cp,
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ double Ax, int Bp, int Bj, double Bx, int Cp,
int Cj, double Cx)
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- long double Ax, int Bp, int Bj, long double Bx,
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ long double Ax, int Bp, int Bj, long double Bx,
int Cp, int Cj, long double Cx)
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- npy_cfloat_wrapper Ax, int Bp, int Bj, npy_cfloat_wrapper Bx,
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ npy_cfloat_wrapper Ax, int Bp, int Bj, npy_cfloat_wrapper Bx,
int Cp, int Cj, npy_cfloat_wrapper Cx)
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- npy_cdouble_wrapper Ax, int Bp, int Bj, npy_cdouble_wrapper Bx,
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ npy_cdouble_wrapper Ax, int Bp, int Bj, npy_cdouble_wrapper Bx,
int Cp, int Cj, npy_cdouble_wrapper Cx)
- bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- npy_clongdouble_wrapper Ax, int Bp, int Bj,
+ bsr_eldiv_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ npy_clongdouble_wrapper Ax, int Bp, int Bj,
npy_clongdouble_wrapper Bx, int Cp, int Cj, npy_clongdouble_wrapper Cx)
"""
- return _bsr.bsr_eldiv_bsr(*args)
+ return _bsr.bsr_eldiv_bsr(*args)
def bsr_plus_bsr(*args):
- """
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- signed char Ax, int Bp, int Bj, signed char Bx,
+ """
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ signed char Ax, int Bp, int Bj, signed char Bx,
int Cp, int Cj, signed char Cx)
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned char Ax, int Bp, int Bj, unsigned char Bx,
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned char Ax, int Bp, int Bj, unsigned char Bx,
int Cp, int Cj, unsigned char Cx)
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- short Ax, int Bp, int Bj, short Bx, int Cp,
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ short Ax, int Bp, int Bj, short Bx, int Cp,
int Cj, short Cx)
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned short Ax, int Bp, int Bj, unsigned short Bx,
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned short Ax, int Bp, int Bj, unsigned short Bx,
int Cp, int Cj, unsigned short Cx)
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- int Ax, int Bp, int Bj, int Bx, int Cp, int Cj,
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ int Ax, int Bp, int Bj, int Bx, int Cp, int Cj,
int Cx)
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned int Ax, int Bp, int Bj, unsigned int Bx,
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned int Ax, int Bp, int Bj, unsigned int Bx,
int Cp, int Cj, unsigned int Cx)
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- long long Ax, int Bp, int Bj, long long Bx,
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ long long Ax, int Bp, int Bj, long long Bx,
int Cp, int Cj, long long Cx)
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned long long Ax, int Bp, int Bj, unsigned long long Bx,
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned long long Ax, int Bp, int Bj, unsigned long long Bx,
int Cp, int Cj, unsigned long long Cx)
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- float Ax, int Bp, int Bj, float Bx, int Cp,
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ float Ax, int Bp, int Bj, float Bx, int Cp,
int Cj, float Cx)
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- double Ax, int Bp, int Bj, double Bx, int Cp,
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ double Ax, int Bp, int Bj, double Bx, int Cp,
int Cj, double Cx)
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- long double Ax, int Bp, int Bj, long double Bx,
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ long double Ax, int Bp, int Bj, long double Bx,
int Cp, int Cj, long double Cx)
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- npy_cfloat_wrapper Ax, int Bp, int Bj, npy_cfloat_wrapper Bx,
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ npy_cfloat_wrapper Ax, int Bp, int Bj, npy_cfloat_wrapper Bx,
int Cp, int Cj, npy_cfloat_wrapper Cx)
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- npy_cdouble_wrapper Ax, int Bp, int Bj, npy_cdouble_wrapper Bx,
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ npy_cdouble_wrapper Ax, int Bp, int Bj, npy_cdouble_wrapper Bx,
int Cp, int Cj, npy_cdouble_wrapper Cx)
- bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- npy_clongdouble_wrapper Ax, int Bp, int Bj,
+ bsr_plus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ npy_clongdouble_wrapper Ax, int Bp, int Bj,
npy_clongdouble_wrapper Bx, int Cp, int Cj, npy_clongdouble_wrapper Cx)
"""
- return _bsr.bsr_plus_bsr(*args)
+ return _bsr.bsr_plus_bsr(*args)
def bsr_minus_bsr(*args):
- """
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- signed char Ax, int Bp, int Bj, signed char Bx,
+ """
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ signed char Ax, int Bp, int Bj, signed char Bx,
int Cp, int Cj, signed char Cx)
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned char Ax, int Bp, int Bj, unsigned char Bx,
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned char Ax, int Bp, int Bj, unsigned char Bx,
int Cp, int Cj, unsigned char Cx)
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- short Ax, int Bp, int Bj, short Bx, int Cp,
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ short Ax, int Bp, int Bj, short Bx, int Cp,
int Cj, short Cx)
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned short Ax, int Bp, int Bj, unsigned short Bx,
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned short Ax, int Bp, int Bj, unsigned short Bx,
int Cp, int Cj, unsigned short Cx)
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- int Ax, int Bp, int Bj, int Bx, int Cp, int Cj,
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ int Ax, int Bp, int Bj, int Bx, int Cp, int Cj,
int Cx)
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned int Ax, int Bp, int Bj, unsigned int Bx,
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned int Ax, int Bp, int Bj, unsigned int Bx,
int Cp, int Cj, unsigned int Cx)
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- long long Ax, int Bp, int Bj, long long Bx,
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ long long Ax, int Bp, int Bj, long long Bx,
int Cp, int Cj, long long Cx)
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- unsigned long long Ax, int Bp, int Bj, unsigned long long Bx,
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ unsigned long long Ax, int Bp, int Bj, unsigned long long Bx,
int Cp, int Cj, unsigned long long Cx)
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- float Ax, int Bp, int Bj, float Bx, int Cp,
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ float Ax, int Bp, int Bj, float Bx, int Cp,
int Cj, float Cx)
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- double Ax, int Bp, int Bj, double Bx, int Cp,
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ double Ax, int Bp, int Bj, double Bx, int Cp,
int Cj, double Cx)
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- long double Ax, int Bp, int Bj, long double Bx,
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ long double Ax, int Bp, int Bj, long double Bx,
int Cp, int Cj, long double Cx)
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- npy_cfloat_wrapper Ax, int Bp, int Bj, npy_cfloat_wrapper Bx,
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ npy_cfloat_wrapper Ax, int Bp, int Bj, npy_cfloat_wrapper Bx,
int Cp, int Cj, npy_cfloat_wrapper Cx)
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- npy_cdouble_wrapper Ax, int Bp, int Bj, npy_cdouble_wrapper Bx,
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ npy_cdouble_wrapper Ax, int Bp, int Bj, npy_cdouble_wrapper Bx,
int Cp, int Cj, npy_cdouble_wrapper Cx)
- bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
- npy_clongdouble_wrapper Ax, int Bp, int Bj,
+ bsr_minus_bsr(int n_row, int n_col, int R, int C, int Ap, int Aj,
+ npy_clongdouble_wrapper Ax, int Bp, int Bj,
npy_clongdouble_wrapper Bx, int Cp, int Cj, npy_clongdouble_wrapper Cx)
"""
- return _bsr.bsr_minus_bsr(*args)
+ return _bsr.bsr_minus_bsr(*args)
def bsr_sort_indices(*args):
- """
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ """
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
signed char Ax)
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned char Ax)
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
short Ax)
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned short Ax)
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
int Ax)
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned int Ax)
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
long long Ax)
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
unsigned long long Ax)
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
float Ax)
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
double Ax)
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
long double Ax)
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_cfloat_wrapper Ax)
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_cdouble_wrapper Ax)
- bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
+ bsr_sort_indices(int n_brow, int n_bcol, int R, int C, int Ap, int Aj,
npy_clongdouble_wrapper Ax)
"""
- return _bsr.bsr_sort_indices(*args)
+ return _bsr.bsr_sort_indices(*args)
+
View
1,084 scipy/sparse/sparsetools/bsr_wrap.cxx
<
@@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.1+capsulehack
+ * Version 2.0.4
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
@@ -756,7 +756,15 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
#define PyInt_Check(x) PyLong_Check(x)
#define PyInt_AsLong(x) PyLong_AsLong(x)
#define PyInt_FromLong(x) PyLong_FromLong(x)
+#define PyString_Check(name) PyBytes_Check(name)
+#define PyString_FromString(x) PyUnicode_FromString(x)
#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args)
+#define PyString_AsString(str) PyBytes_AsString(str)
+#define PyString_Size(str) PyBytes_Size(str)
+#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
+#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
+#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
+#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
#endif
@@ -896,6 +904,63 @@ PyObject *PyBool_FromLong(long ok)
typedef int Py_ssize_t;
# define PY_SSIZE_T_MAX INT_MAX
# define PY_SSIZE_T_MIN INT_MIN
+typedef inquiry lenfunc;
+typedef intargfunc ssizeargfunc;
+typedef intintargfunc ssizessizeargfunc;
+typedef intobjargproc ssizeobjargproc;
+typedef intintobjargproc ssizessizeobjargproc;
+typedef getreadbufferproc readbufferproc;
+typedef getwritebufferproc writebufferproc;
+typedef getsegcountproc segcountproc;
+typedef getcharbufferproc charbufferproc;
+static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
+{
+ long result = 0;
+ PyObject *i = PyNumber_Int(x);
+ if (i) {
+ result = PyInt_AsLong(i);
+ Py_DECREF(i);
+ }
+ return result;
+}
+#endif
+
+#if PY_VERSION_HEX < 0x02040000
+#define Py_VISIT(op) \
+ do { \
+ if (op) { \
+ int vret = visit((op), arg); \
+ if (vret) \
+ return vret; \
+ } \
+ } while (0)
+#endif
+
+#if PY_VERSION_HEX < 0x02030000
+typedef struct {
+ PyTypeObject type;
+ PyNumberMethods as_number;
+ PyMappingMethods as_mapping;
+ PySequenceMethods as_sequence;
+ PyBufferProcs as_buffer;
+ PyObject *name, *slots;
+} PyHeapTypeObject;
+#endif
+
+#if PY_VERSION_HEX < 0x02030000
+typedef destructor freefunc;
+#endif
+
+#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \
+ (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \
+ (PY_MAJOR_VERSION > 3))
+# define SWIGPY_USE_CAPSULE
+# define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
+#endif
+
+#if PY_VERSION_HEX < 0x03020000
+#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
+#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
#endif
/* -----------------------------------------------------------------------------
@@ -1042,9 +1107,6 @@ SWIG_Python_AddErrorMsg(const char* mesg)
#ifdef __cplusplus
extern "C" {
-#if 0
-} /* cc-mode */
-#endif
#endif
/* -----------------------------------------------------------------------------
@@ -1070,19 +1132,19 @@ typedef struct swig_const_info {
* Wrapper of PyInstanceMethod_New() used in Python 3
* It is exported to the generated module, used for -fastproxy
* ----------------------------------------------------------------------------- */
-SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *self, PyObject *func)
-{
#if PY_VERSION_HEX >= 0x03000000
+SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
+{
return PyInstanceMethod_New(func);
+}
#else
+SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
+{
return NULL;
-#endif
}
+#endif
#ifdef __cplusplus
-#if 0
-{ /* cc-mode */
-#endif
}
#endif
@@ -1102,7 +1164,15 @@ SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *self, PyObject *func)
#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
-#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
+
+#ifdef SWIGPYTHON_BUILTIN
+#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
+#else
+#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
+#endif
+
+#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
+
#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
#define swig_owntype int
@@ -1117,7 +1187,7 @@ SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *self, PyObject *func)
/* for C or C++ function pointers */
#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
-#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
+#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
/* for C++ member pointers, ie, member methods */
#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
@@ -1134,18 +1204,8 @@ SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *self, PyObject *func)
#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
-#define SWIG_fail goto fail
+#define SWIG_fail goto fail
-/*
- * Python 2.7 and newer and Python 3.1 and newer should use Capsules API instead of
- * CObjects API.
- */
-#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \
- (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0))
-#define USE_CAPSULES
-#define TYPE_POINTER_NAME \
- ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
-#endif
/* Runtime API implementation */
@@ -1170,12 +1230,33 @@ SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
/* Set a constant value */
+#if defined(SWIGPYTHON_BUILTIN)
+
+SWIGINTERN void
+SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
+ PyObject *s = PyString_InternFromString(key);
+ PyList_Append(seq, s);
+ Py_DECREF(s);
+}
+
+SWIGINTERN void
+SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
+ PyDict_SetItemString(d, (char *)name, obj);
+ Py_DECREF(obj);
+ if (public_interface)
+ SwigPyBuiltin_AddPublicSymbol(public_interface, name);
+}
+
+#else
+
SWIGINTERN void
SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
- PyDict_SetItemString(d, (char*) name, obj);
+ PyDict_SetItemString(d, (char *)name, obj);
Py_DECREF(obj);
}
+#endif
+
/* Append a value to the result obj */
SWIGINTERN PyObject*
@@ -1236,6 +1317,14 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi
}
}
if (!PyTuple_Check(args)) {
+ if (min <= 1 && max >= 1) {
+ register int i;
+ objs[0] = args;
+ for (i = 1; i < max; ++i) {
+ objs[i] = 0;
+ }
+ return 2;
+ }
PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
return 0;
} else {
@@ -1288,11 +1377,11 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi
#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
+#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2)
+#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
+
#ifdef __cplusplus
extern "C" {
-#if 0
-} /* cc-mode */
-#endif
#endif
/* How to access Py_None */
@@ -1343,6 +1432,7 @@ typedef struct {
PyObject *destroy;
int delargs;
int implicitconv;
+ PyTypeObject *pytype;
} SwigPyClientData;
SWIGRUNTIMEINLINE int
@@ -1409,13 +1499,13 @@ SwigPyClientData_New(PyObject* obj)
data->delargs = 0;
}
data->implicitconv = 0;
+ data->pytype = 0;
return data;
}
}
SWIGRUNTIME void
-SwigPyClientData_Del(SwigPyClientData* data)
-{
+SwigPyClientData_Del(SwigPyClientData *data) {
Py_XDECREF(data->newraw);
Py_XDECREF(data->newargs);
Py_XDECREF(data->destroy);
@@ -1429,6 +1519,9 @@ typedef struct {
swig_type_info *ty;
int own;
PyObject *next;
+#ifdef SWIGPYTHON_BUILTIN
+ PyObject *dict;
+#endif
} SwigPyObject;
SWIGRUNTIME PyObject *
@@ -1479,21 +1572,21 @@ SwigPyObject_repr(SwigPyObject *v, PyObject *args)
#endif
{
const char *name = SWIG_TypePrettyName(v->ty);
- PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", name, v);
+ PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", name, (void *)v);
if (v->next) {
-#ifdef METH_NOARGS
+# ifdef METH_NOARGS
PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
-#else
+# else
PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
-#endif
-#if PY_VERSION_HEX >= 0x03000000
+# endif
+# if PY_VERSION_HEX >= 0x03000000
PyObject *joined = PyUnicode_Concat(repr, nrep);
Py_DecRef(repr);
Py_DecRef(nrep);
repr = joined;
-#else
+# else
PyString_ConcatAndDel(&repr,nrep);
-#endif
+# endif
}
return repr;
}
@@ -1543,27 +1636,43 @@ SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
- if( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) )
- res = Py_True;
- else
- res = Py_False;
- Py_INCREF(res);
+ res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
return res;
}
-SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
+SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
+#ifdef SWIGPYTHON_BUILTIN
+static swig_type_info *SwigPyObject_stype = 0;
SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void) {
- static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
+ SwigPyClientData *cd;
+ assert(SwigPyObject_stype);
+ cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
+ assert(cd);
+ assert(cd->pytype);
+ return cd->pytype;
+}
+#else
+SWIGRUNTIME PyTypeObject*
+SwigPyObject_type(void) {
+ static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
return type;
}
+#endif
SWIGRUNTIMEINLINE int
SwigPyObject_Check(PyObject *op) {
+#ifdef SWIGPYTHON_BUILTIN
+ PyTypeObject *target_tp = SwigPyObject_type();
+ if (PyType_IsSubtype(op->ob_type, target_tp))
+ return 1;
+ return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
+#else
return (Py_TYPE(op) == SwigPyObject_type())
|| (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
+#endif
}
SWIGRUNTIME PyObject *
@@ -1729,9 +1838,9 @@ SwigPyObject_getattr(SwigPyObject *sobj,char *name)
#endif
SWIGRUNTIME PyTypeObject*
-_PySwigObject_type(void) {
+SwigPyObject_TypeOnce(void) {
static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
-
+
static PyNumberMethods SwigPyObject_as_number = {
(binaryfunc)0, /*nb_add*/
(binaryfunc)0, /*nb_subtract*/
@@ -1778,85 +1887,89 @@ _PySwigObject_type(void) {
#endif
};
- static PyTypeObject swigpyobject_type;
+ static PyTypeObject swigpyobject_type;
static int type_init = 0;
if (!type_init) {
- const PyTypeObject tmp
- = {
- /* PyObject header changed in Python 3 */
+ const PyTypeObject tmp = {
+ /* PyObject header changed in Python 3 */
#if PY_VERSION_HEX >= 0x03000000
- PyVarObject_HEAD_INIT(&PyType_Type, 0)
-#else
- PyObject_HEAD_INIT(NULL)
- 0, /* ob_size */
+ PyVarObject_HEAD_INIT(NULL, 0)
+#else
+ PyObject_HEAD_INIT(NULL)
+ 0, /* ob_size */
#endif
- (char *)"SwigPyObject", /* tp_name */
- sizeof(SwigPyObject), /* tp_basicsize */
- 0, /* tp_itemsize */
- (destructor)SwigPyObject_dealloc, /* tp_dealloc */
- (printfunc)SwigPyObject_print, /* tp_print */
+ (char *)"SwigPyObject", /* tp_name */
+ sizeof(SwigPyObject), /* tp_basicsize */
+ 0, /* tp_itemsize */
+ (destructor)SwigPyObject_dealloc, /* tp_dealloc */
+ (printfunc)SwigPyObject_print, /* tp_print */
#if PY_VERSION_HEX < 0x02020000
- (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
+ (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
#else
- (getattrfunc)0, /* tp_getattr */
+ (getattrfunc)0, /* tp_getattr */
#endif
- (setattrfunc)0, /* tp_setattr */
+ (setattrfunc)0, /* tp_setattr */
#if PY_VERSION_HEX >= 0x03000000
0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
#else
- (cmpfunc)SwigPyObject_compare, /* tp_compare */
+ (cmpfunc)SwigPyObject_compare, /* tp_compare */
#endif
- (reprfunc)SwigPyObject_repr, /* tp_repr */
- &SwigPyObject_as_number, /* tp_as_number */
- 0, /* tp_as_sequence */
- 0, /* tp_as_mapping */
- (hashfunc)0, /* tp_hash */
- (ternaryfunc)0, /* tp_call */
- (reprfunc)SwigPyObject_str, /* tp_str */
- PyObject_GenericGetAttr, /* tp_getattro */
- 0, /* tp_setattro */
- 0, /* tp_as_buffer */
- Py_TPFLAGS_DEFAULT, /* tp_flags */
- swigobject_doc, /* tp_doc */
- 0, /* tp_traverse */
- 0, /* tp_clear */
- (richcmpfunc)SwigPyObject_richcompare, /* tp_richcompare */
- 0, /* tp_weaklistoffset */
+ (reprfunc)SwigPyObject_repr, /* tp_repr */
+ &SwigPyObject_as_number, /* tp_as_number */
+ 0, /* tp_as_sequence */
+ 0, /* tp_as_mapping */
+ (hashfunc)0, /* tp_hash */
+ (ternaryfunc)0, /* tp_call */
+ (reprfunc)SwigPyObject_str, /* tp_str */
+ PyObject_GenericGetAttr, /* tp_getattro */
+ 0, /* tp_setattro */
+ 0, /* tp_as_buffer */
+ Py_TPFLAGS_DEFAULT, /* tp_flags */
+ swigobject_doc, /* tp_doc */
+ 0, /* tp_traverse */
+ 0, /* tp_clear */
+ (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
+ 0, /* tp_weaklistoffset */
#if PY_VERSION_HEX >= 0x02020000
- 0, /* tp_iter */
- 0, /* tp_iternext */
- swigobject_methods, /* tp_methods */
- 0, /* tp_members */
- 0, /* tp_getset */
- 0, /* tp_base */
- 0, /* tp_dict */
- 0, /* tp_descr_get */
- 0, /* tp_descr_set */
- 0, /* tp_dictoffset */
- 0, /* tp_init */
- 0, /* tp_alloc */
- 0, /* tp_new */
- 0, /* tp_free */
- 0, /* tp_is_gc */
- 0, /* tp_bases */
- 0, /* tp_mro */
- 0, /* tp_cache */
- 0, /* tp_subclasses */
- 0, /* tp_weaklist */
+ 0, /* tp_iter */
+ 0, /* tp_iternext */
+ swigobject_methods, /* tp_methods */
+ 0, /* tp_members */
+ 0, /* tp_getset */
+ 0, /* tp_base */
+ 0, /* tp_dict */
+ 0, /* tp_descr_get */
+ 0, /* tp_descr_set */
+ 0, /* tp_dictoffset */
+ 0, /* tp_init */
+ 0, /* tp_alloc */
+ 0, /* tp_new */
+ 0, /* tp_free */
+ 0, /* tp_is_gc */
+ 0, /* tp_bases */
+ 0, /* tp_mro */
+ 0, /* tp_cache */
+ 0, /* tp_subclasses */
+ 0, /* tp_weaklist */
#endif
#if PY_VERSION_HEX >= 0x02030000
- 0, /* tp_del */
+ 0, /* tp_del */
+#endif
+#if PY_VERSION_HEX >= 0x02060000
+ 0, /* tp_version */
#endif
#ifdef COUNT_ALLOCS
- 0,0,0,0 /* tp_alloc -> tp_next */
+ 0,0,0,0 /* tp_alloc -> tp_next */
#endif
- };
+ };
swigpyobject_type = tmp;
- /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
-#if PY_VERSION_HEX < 0x03000000
+ type_init = 1;
+#if PY_VERSION_HEX < 0x02020000
swigpyobject_type.ob_type = &PyType_Type;
+#else
+ if (PyType_Ready(&swigpyobject_type) < 0)
+ return NULL;
#endif
- type_init = 1;
}
return &swigpyobject_type;
}
@@ -1930,17 +2043,17 @@ SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
}
-SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
+SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
SWIGRUNTIME PyTypeObject*
SwigPyPacked_type(void) {
- static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
+ static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
return type;
}
SWIGRUNTIMEINLINE int
SwigPyPacked_Check(PyObject *op) {
- return ((op)->ob_type == _PySwigPacked_type())
+ return ((op)->ob_type == SwigPyPacked_TypeOnce())
|| (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
}
@@ -1955,83 +2068,87 @@ SwigPyPacked_dealloc(PyObject *v)
}
SWIGRUNTIME PyTypeObject*
-_PySwigPacked_type(void) {
+SwigPyPacked_TypeOnce(void) {
static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
static PyTypeObject swigpypacked_type;
- static int type_init = 0;
+ static int type_init = 0;
if (!type_init) {
- const PyTypeObject tmp
- = {
- /* PyObject header changed in Python 3 */
+ const PyTypeObject tmp = {
+ /* PyObject header changed in Python 3 */
#if PY_VERSION_HEX>=0x03000000
- PyVarObject_HEAD_INIT(&PyType_Type, 0)
+ PyVarObject_HEAD_INIT(NULL, 0)
#else
- PyObject_HEAD_INIT(NULL)
- 0, /* ob_size */
+ PyObject_HEAD_INIT(NULL)
+ 0, /* ob_size */
#endif
- (char *)"SwigPyPacked", /* tp_name */
- sizeof(SwigPyPacked), /* tp_basicsize */
- 0, /* tp_itemsize */
- (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
- (printfunc)SwigPyPacked_print, /* tp_print */
- (getattrfunc)0, /* tp_getattr */
- (setattrfunc)0, /* tp_setattr */
+ (char *)"SwigPyPacked", /* tp_name */
+ sizeof(SwigPyPacked), /* tp_basicsize */
+ 0, /* tp_itemsize */
+ (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
+ (printfunc)SwigPyPacked_print, /* tp_print */
+ (getattrfunc)0, /* tp_getattr */
+ (setattrfunc)0, /* tp_setattr */
#if PY_VERSION_HEX>=0x03000000
- 0, /* tp_reserved in 3.0.1 */
+ 0, /* tp_reserved in 3.0.1 */
#else
- (cmpfunc)SwigPyPacked_compare, /* tp_compare */
+ (cmpfunc)SwigPyPacked_compare, /* tp_compare */
#endif
- (reprfunc)SwigPyPacked_repr, /* tp_repr */
- 0, /* tp_as_number */
- 0, /* tp_as_sequence */
- 0, /* tp_as_mapping */
- (hashfunc)0, /* tp_hash */
- (ternaryfunc)0, /* tp_call */
- (reprfunc)SwigPyPacked_str, /* tp_str */
- PyObject_GenericGetAttr, /* tp_getattro */
- 0, /* tp_setattro */
- 0, /* tp_as_buffer */
- Py_TPFLAGS_DEFAULT, /* tp_flags */
- swigpacked_doc, /* tp_doc */
- 0, /* tp_traverse */
- 0, /* tp_clear */
- 0, /* tp_richcompare */
- 0, /* tp_weaklistoffset */
+ (reprfunc)SwigPyPacked_repr, /* tp_repr */
+ 0, /* tp_as_number */
+ 0, /* tp_as_sequence */
+ 0, /* tp_as_mapping */
+ (hashfunc)0, /* tp_hash */
+ (ternaryfunc)0, /* tp_call */
+ (reprfunc)SwigPyPacked_str, /* tp_str */
+ PyObject_GenericGetAttr, /* tp_getattro */
+ 0, /* tp_setattro */
+ 0, /* tp_as_buffer */
+ Py_TPFLAGS_DEFAULT, /* tp_flags */
+ swigpacked_doc, /* tp_doc */
+ 0, /* tp_traverse */
+ 0, /* tp_clear */
+ 0, /* tp_richcompare */
+ 0, /* tp_weaklistoffset */
#if PY_VERSION_HEX >= 0x02020000
- 0, /* tp_iter */
- 0, /* tp_iternext */
- 0, /* tp_methods */
- 0, /* tp_members */
- 0, /* tp_getset */
- 0, /* tp_base */
- 0, /* tp_dict */
- 0, /* tp_descr_get */
- 0, /* tp_descr_set */
- 0, /* tp_dictoffset */
- 0, /* tp_init */
- 0, /* tp_alloc */
- 0, /* tp_new */
- 0, /* tp_free */
- 0, /* tp_is_gc */
- 0, /* tp_bases */
- 0, /* tp_mro */
- 0, /* tp_cache */
- 0, /* tp_subclasses */
- 0, /* tp_weaklist */
+ 0, /* tp_iter */
+ 0, /* tp_iternext */
+ 0, /* tp_methods */
+ 0, /* tp_members */
+ 0, /* tp_getset */
+ 0, /* tp_base */
+ 0, /* tp_dict */
+ 0, /* tp_descr_get */
+ 0, /* tp_descr_set */
+ 0, /* tp_dictoffset */
+ 0, /* tp_init */
+ 0, /* tp_alloc */
+ 0, /* tp_new */
+ 0, /* tp_free */
+ 0, /* tp_is_gc */
+ 0, /* tp_bases */
+ 0, /* tp_mro */
+ 0, /* tp_cache */
+ 0, /* tp_subclasses */
+ 0, /* tp_weaklist */
#endif
#if PY_VERSION_HEX >= 0x02030000
- 0, /* tp_del */
+ 0, /* tp_del */
+#endif
+#if PY_VERSION_HEX >= 0x02060000
+ 0, /* tp_version */
#endif
#ifdef COUNT_ALLOCS
- 0,0,0,0 /* tp_alloc -> tp_next */
+ 0,0,0,0 /* tp_alloc -> tp_next */
#endif
- };
+ };
swigpypacked_type = tmp;
- /* for Python 3 the ob_type already assigned in PyVarObject_HEAD_INIT() */
-#if PY_VERSION_HEX < 0x03000000
+ type_init = 1;
+#if PY_VERSION_HEX < 0x02020000
swigpypacked_type.ob_type = &PyType_Type;
+#else
+ if (PyType_Ready(&swigpypacked_type) < 0)
+ return NULL;
#endif
- type_init = 1;
}
return &swigpypacked_type;
}
@@ -2098,50 +2215,65 @@ SWIG_This(void)
SWIGRUNTIME SwigPyObject *
SWIG_Python_GetSwigThis(PyObject *pyobj)
{
- if (SwigPyObject_Check(pyobj)) {
+ PyObject *obj;
+
+ if (SwigPyObject_Check(pyobj))
return (SwigPyObject *) pyobj;
- } else {
- PyObject *obj = 0;
+
+#ifdef SWIGPYTHON_BUILTIN
+ (void)obj;
+# ifdef PyWeakref_CheckProxy
+ if (PyWeakref_CheckProxy(pyobj)) {
+ pyobj = PyWeakref_GET_OBJECT(pyobj);
+ if (pyobj && SwigPyObject_Check(pyobj))
+ return (SwigPyObject*) pyobj;
+ }
+# endif
+ return NULL;
+#else
+
+ obj = 0;
+
#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
- if (PyInstance_Check(pyobj)) {
- obj = _PyInstance_Lookup(pyobj, SWIG_This());
+ if (PyInstance_Check(pyobj)) {
+ obj = _PyInstance_Lookup(pyobj, SWIG_This());
+ } else {
+ PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
+ if (dictptr != NULL) {
+ PyObject *dict = *dictptr;
+ obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
} else {
- PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
- if (dictptr != NULL) {
- PyObject *dict = *dictptr;
- obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
- } else {
#ifdef PyWeakref_CheckProxy
- if (PyWeakref_CheckProxy(pyobj)) {
- PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
- return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
- }
+ if (PyWeakref_CheckProxy(pyobj)) {
+ PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
+ return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
+ }
#endif
- obj = PyObject_GetAttr(pyobj,SWIG_This());
- if (obj) {
- Py_DECREF(obj);
- } else {
- if (PyErr_Occurred()) PyErr_Clear();
- return 0;
- }
+ obj = PyObject_GetAttr(pyobj,SWIG_This());
+ if (obj) {
+ Py_DECREF(obj);
+ } else {
+ if (PyErr_Occurred()) PyErr_Clear();
+ return 0;
}
}
+ }
#else
- obj = PyObject_GetAttr(pyobj,SWIG_This());
- if (obj) {
- Py_DECREF(obj);
- } else {
- if (PyErr_Occurred()) PyErr_Clear();
- return 0;
- }
+ obj = PyObject_GetAttr(pyobj,SWIG_This());
+ if (obj) {
+ Py_DECREF(obj);
+ } else {
+ if (PyErr_Occurred()) PyErr_Clear();
+ return 0;
+ }
#endif
- if (obj && !SwigPyObject_Check(obj)) {
- /* a PyObject is called 'this', try to get the 'real this'
- SwigPyObject from it */
- return SWIG_Python_GetSwigThis(obj);
- }
- return (SwigPyObject *)obj;
+ if (obj && !SwigPyObject_Check(obj)) {
+ /* a PyObject is called 'this', try to get the 'real this'
+ SwigPyObject from it */
+ return SWIG_Python_GetSwigThis(obj);
}
+ return (SwigPyObject *)obj;
+#endif
}
/* Acquire a pointer value */
@@ -2163,91 +2295,97 @@ SWIG_Python_AcquirePtr(PyObject *obj, int own) {
SWIGRUNTIME int
SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
- if (!obj) return SWIG_ERROR;
+ int res;
+ SwigPyObject *sobj;
+
+ if (!obj)
+ return SWIG_ERROR;
if (obj == Py_None) {
- if (ptr) *ptr = 0;
+ if (ptr)
+ *ptr = 0;
return SWIG_OK;
- } else {
- SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
- if (own)
- *own = 0;
- while (sobj) {
- void *vptr = sobj->ptr;
- if (ty) {
- swig_type_info *to = sobj->ty;
- if (to == ty) {
- /* no type cast needed */
- if (ptr) *ptr = vptr;
- break;
- } else {
- swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
- if (!tc) {
- sobj = (SwigPyObject *)sobj->next;
- } else {
- if (ptr) {
- int newmemory = 0;
- *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
- if (newmemory == SWIG_CAST_NEW_MEMORY) {
- assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
- if (own)
- *own = *own | SWIG_CAST_NEW_MEMORY;
- }
- }
- break;
- }
- }
+ }
+
+ res = SWIG_ERROR;
+
+ sobj = SWIG_Python_GetSwigThis(obj);
+ if (own)
+ *own = 0;
+ while (sobj) {
+ void *vptr = sobj->ptr;
+ if (ty) {
+ swig_type_info *to = sobj->ty;
+ if (to == ty) {
+ /* no type cast needed */
+ if (ptr) *ptr = vptr;
+ break;
} else {
- if (ptr) *ptr = vptr;
- break;
- }
- }
- if (sobj) {
- if (own)
- *own = *own | sobj->own;
- if (flags & SWIG_POINTER_DISOWN) {
- sobj->own = 0;
+ swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
+ if (!tc) {
+ sobj = (SwigPyObject *)sobj->next;
+ } else {
+ if (ptr) {
+ int newmemory = 0;
+ *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
+ if (newmemory == SWIG_CAST_NEW_MEMORY) {
+ assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
+ if (own)
+ *own = *own | SWIG_CAST_NEW_MEMORY;
+ }
+ }
+ break;
+ }
}
- return SWIG_OK;
} else {
- int res = SWIG_ERROR;
- if (flags & SWIG_POINTER_IMPLICIT_CONV) {
- SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
- if (data && !data->implicitconv) {
- PyObject *klass = data->klass;
- if (klass) {
- PyObject *impconv;
- data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
- impconv = SWIG_Python_CallFunctor(klass, obj);
- data->implicitconv = 0;
- if (PyErr_Occurred()) {
- PyErr_Clear();
- impconv = 0;
- }
- if (impconv) {
- SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
- if (iobj) {
- void *vptr;
- res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
- if (SWIG_IsOK(res)) {
- if (ptr) {
- *ptr = vptr;
- /* transfer the ownership to 'ptr' */
- iobj->own = 0;
- res = SWIG_AddCast(res);
- res = SWIG_AddNewMask(res);
- } else {
- res = SWIG_AddCast(res);
- }
- }
- }
- Py_DECREF(impconv);
- }
- }
- }
+ if (ptr) *ptr = vptr;
+ break;
+ }
+ }
+ if (sobj) {
+ if (own)
+ *own = *own | sobj->own;
+ if (flags & SWIG_POINTER_DISOWN) {
+ sobj->own = 0;
+ }
+ res = SWIG_OK;
+ } else {
+ if (flags & SWIG_POINTER_IMPLICIT_CONV) {
+ SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
+ if (data && !data->implicitconv) {
+ PyObject *klass = data->klass;
+ if (klass) {
+ PyObject *impconv;
+ data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
+ impconv = SWIG_Python_CallFunctor(klass, obj);
+ data->implicitconv = 0;
+ if (PyErr_Occurred()) {
+ PyErr_Clear();
+ impconv = 0;
+ }
+ if (impconv) {
+ SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
+ if (iobj) {
+ void *vptr;
+ res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
+ if (SWIG_IsOK(res)) {
+ if (ptr) {
+ *ptr = vptr;
+ /* transfer the ownership to 'ptr' */
+ iobj->own = 0;
+ res = SWIG_AddCast(res);
+ res = SWIG_AddNewMask(res);
+ } else {
+ res = SWIG_AddCast(res);
+ }
+ }
+ }
+ Py_DECREF(impconv);
+ }
+ }
}
- return res;
}
}
+ return res;
}
/* Convert a function ptr value */
@@ -2417,22 +2555,54 @@ SWIG_Python_InitShadowInstance(PyObject *args) {
/* Create a new pointer object */
SWIGRUNTIME PyObject *
-SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
- if (!ptr) {
+SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
+ SwigPyClientData *clientdata;
+ PyObject * robj;
+ int own;
+
+ if (!ptr)
return SWIG_Py_Void();
- } else {
- int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
- PyObject *robj = SwigPyObject_New(ptr, type, own);
- SwigPyClientData *clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
- if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
- PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
- if (inst) {
- Py_DECREF(robj);
- robj = inst;
+
+ clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
+ own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
+ if (clientdata && clientdata->pytype) {
+ SwigPyObject *newobj;
+ if (flags & SWIG_BUILTIN_TP_INIT) {
+ newobj = (SwigPyObject*) self;
+ if (newobj->ptr) {
+ PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
+ while (newobj->next)
+ newobj = (SwigPyObject *) newobj->next;
+ newobj->next = next_self;
+ newobj = (SwigPyObject *)next_self;
}
+ } else {
+ newobj = PyObject_New(SwigPyObject, clientdata->pytype);
+ }
+ if (newobj) {
+ newobj->ptr = ptr;
+ newobj->ty = type;
+ newobj->own = own;
+ newobj->next = 0;
+#ifdef SWIGPYTHON_BUILTIN
+ newobj->dict = 0;
+#endif
+ return (PyObject*) newobj;
+ }
+ return SWIG_Py_Void();
+ }
+
+ assert(!(flags & SWIG_BUILTIN_TP_INIT));
+
+ robj = SwigPyObject_New(ptr, type, own);
+ if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
+ PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
+ if (inst) {
+ Py_DECREF(robj);
+ robj = inst;
}
- return robj;
}
+ return robj;
}
/* Create a new packed object */
@@ -2458,12 +2628,12 @@ SWIG_Python_GetModule(void) {
#ifdef SWIG_LINK_RUNTIME
type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
#else
-#ifdef USE_CAPSULES
- type_pointer = PyCapsule_Import(TYPE_POINTER_NAME, 0);
-#else
+# ifdef SWIGPY_USE_CAPSULE
+ type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
+# else
type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
(char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
-#endif
+# endif
if (PyErr_Occurred()) {
PyErr_Clear();
type_pointer = (void *)0;
@@ -2506,16 +2676,19 @@ PyModule_AddObject(PyObject *m, char *name, PyObject *o)
#endif
SWIGRUNTIME void
+#ifdef SWIGPY_USE_CAPSULE
+SWIG_Python_DestroyModule(PyObject *obj)
+#else
SWIG_Python_DestroyModule(void *vptr)
+#endif
{
- size_t i;
-#ifdef USE_CAPSULES
- swig_module_info *swig_module =
- (swig_module_info *) PyCapsule_GetPointer((PyObject *)vptr, TYPE_POINTER_NAME);
+#ifdef SWIGPY_USE_CAPSULE
+ swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
#else
swig_module_info *swig_module = (swig_module_info *) vptr;
#endif
swig_type_info **types = swig_module->types;
+ size_t i;
for (i =0; i < swig_module->size; ++i) {
swig_type_info *ty = types[i];
if (ty->owndata) {
@@ -2529,30 +2702,28 @@ SWIG_Python_DestroyModule(void *vptr)
SWIGRUNTIME void
SWIG_Python_SetModule(swig_module_info *swig_module) {
- static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
-
#if PY_VERSION_HEX >= 0x03000000
/* Add a dummy module object into sys.modules */
PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION);
#else
- PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
- swig_empty_runtime_method_table);
-#endif
-#ifdef USE_CAPSULES
- PyObject *pointer = PyCapsule_New((void *)swig_module, TYPE_POINTER_NAME,
- (PyCapsule_Destructor)SWIG_Python_DestroyModule);
-#else
- PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
+ static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
+ PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
#endif
+#ifdef SWIGPY_USE_CAPSULE
+ PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
if (pointer && module) {
-#ifdef USE_CAPSULES
PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
+ } else {
+ Py_XDECREF(pointer);
+ }
#else
+ PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
+ if (pointer && module) {
PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
-#endif
} else {
Py_XDECREF(pointer);
}
+#endif
}
/* The python cached type query */
@@ -2570,8 +2741,8 @@ SWIG_Python_TypeQuery(const char *type)
PyObject *obj = PyDict_GetItem(cache, key);
swig_type_info *descriptor;
if (obj) {
-#ifdef USE_CAPSULES
- descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, type);
+#ifdef SWIGPY_USE_CAPSULE
+ descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
#else
descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
#endif
@@ -2579,8 +2750,8 @@ SWIG_Python_TypeQuery(const char *type)
swig_module_info *swig_module = SWIG_Python_GetModule();
descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
if (descriptor) {
-#ifdef USE_CAPSULES
- obj = PyCapsule_New(descriptor, type, NULL);
+#ifdef SWIGPY_USE_CAPSULE
+ obj = PyCapsule_New((void*) descriptor, NULL, NULL);
#else
obj = PyCObject_FromVoidPtr(descriptor, NULL);
#endif
@@ -2687,7 +2858,7 @@ SWIG_Python_TypeError(const char *type, PyObject *obj)
/* Convert a pointer value, signal an exception on a type mismatch */
SWIGRUNTIME void *
-SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
+SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
void *result;
if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
PyErr_Clear();
@@ -2701,11 +2872,60 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags)
return result;
}
+SWIGRUNTIME int
+SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
+ PyTypeObject *tp = obj->ob_type;
+ PyObject *descr;
+ PyObject *encoded_name;
+ descrsetfunc f;
+ int res;
-#ifdef __cplusplus
-#if 0
-{ /* cc-mode */
+#ifdef Py_USING_UNICODE
+ if (PyString_Check(name)) {
+ name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
+ if (!name)
+ return -1;
+ } else if (!PyUnicode_Check(name))
+#else
+ if (!PyString_Check(name))
#endif
+ {
+ PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
+ return -1;
+ } else {
+ Py_INCREF(name);
+ }
+
+ if (!tp->tp_dict) {
+ if (PyType_Ready(tp) < 0)
+ goto done;
+ }
+
+ res = -1;
+ descr = _PyType_Lookup(tp, name);
+ f = NULL;
+ if (descr != NULL)
+ f = descr->ob_type->tp_descr_set;
+ if (!f) {
+ if (PyString_Check(name)) {
+ encoded_name = name;
+ Py_INCREF(name);
+ } else {
+ encoded_name = PyUnicode_AsUTF8String(name);
+ }
+ PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
+ Py_DECREF(encoded_name);
+ } else {
+ res = f(descr, obj, value);
+ }
+
+ done:
+ Py_DECREF(name);
+ return res;
+}
+
+
+#ifdef __cplusplus
}
#endif
@@ -2745,7 +2965,7 @@ static swig_module_info swig_module = {swig_types, 1, 0, 0, 0, 0};
#endif
#define SWIG_name "_bsr"
-#define SWIGVERSION 0x020001
+#define SWIGVERSION 0x020004
#define SWIG_VERSION SWIGVERSION
@@ -2854,7 +3074,7 @@ namespace swig {
/* Given a PyObject, return a string describing its type.
*/
-const char* pytype_string(PyObject* py_obj) {
+static const char* pytype_string(PyObject* py_obj) {
if (py_obj == NULL ) return "C NULL value";
if (py_obj == Py_None ) return "Python None" ;
if (PyCallable_Check(py_obj)) return "callable" ;
@@ -2873,7 +3093,7 @@ const char* pytype_string(PyObject* py_obj) {
/* Given a NumPy typecode, return a string describing the type.
*/
-const char* typecode_string(int typecode) {
+static const char* typecode_string(int typecode) {
static const char* type_names[25] = {"bool", "byte", "unsigned byte",
"short", "unsigned short", "int",
"unsigned int", "long", "unsigned long",
@@ -2890,7 +3110,7 @@ const char* typecode_string(int typecode) {
* to match. Also allow int and long to match. This is deprecated.
* You should use PyArray_EquivTypenums() instead.
*/
-int type_match(int actual_type, int desired_type) {
+static int type_match(int actual_type, int desired_type) {
return PyArray_EquivTypenums(actual_type, desired_type);
}
@@ -2898,7 +3118,7 @@ int type_match(int actual_type, int desired_type) {
* legal. If not, set the python error string appropriately and
* return NULL.
*/
-PyArrayObject* obj_to_array_no_conversion(PyObject* input, int typecode) {
+static PyArrayObject* obj_to_array_no_conversion(PyObject* input, int typecode) {
PyArrayObject* ary = NULL;
if (is_array(input) && (typecode == NPY_NOTYPE ||
PyArray_EquivTypenums(array_type(input), typecode))) {
@@ -2928,7 +3148,7 @@ PyArrayObject* obj_to_array_no_conversion(PyObject* input, int typecode) {
* correct type. On failure, the python error string will be set and
* the routine returns NULL.
*/
-PyArrayObject* obj_to_array_allow_conversion(PyObject* input, int typecode,
+static PyArrayObject* obj_to_array_allow_conversion(PyObject* input, int typecode,
int* is_new_object) {
PyArrayObject* ary = NULL;
PyObject* py_obj;
@@ -2951,7 +3171,7 @@ PyArrayObject* obj_to_array_allow_conversion(PyObject* input, int typecode,
* not contiguous, create a new PyArrayObject using the original data,
* flag it as a new object and return the pointer.
*/
-PyArrayObject* make_contiguous(PyArrayObject* ary, int* is_new_object,
+static PyArrayObject* make_contiguous(PyArrayObject* ary, int* is_new_object,
int min_dims, int max_dims) {
PyArrayObject* result;
if (array_is_contiguous(ary)) {
@@ -2973,7 +3193,7 @@ PyArrayObject* make_contiguous(PyArrayObject* ary, int* is_new_object,
* PyArrayObject, a new one will be created and the new object flag
* will be set.
*/
-PyArrayObject* obj_to_array_contiguous_allow_conversion(PyObject* input,
+static PyArrayObject* obj_to_array_contiguous_allow_conversion(PyObject* input,
int typecode,
int* is_new_object) {
int is_new1 = 0;
@@ -2995,7 +3215,7 @@ PyArrayObject* obj_to_array_contiguous_allow_conversion(PyObject* input,
* contiguous, return 1. Otherwise, set the python error string and
* return 0.
*/
-int require_contiguous(PyArrayObject* ary) {
+static int require_contiguous(PyArrayObject* ary) {
int contiguous = 1;
if (!array_is_contiguous(ary)) {
PyErr_SetString(PyExc_TypeError,
@@ -3009,7 +3229,7 @@ int require_contiguous(PyArrayObject* ary) {
* not byte-swapped, return 1. Otherwise, set the python error string
* and return 0.
*/
-int require_native(PyArrayObject* ary) {
+static int require_native(PyArrayObject* ary) {
int native = 1;
if (!array_is_native(ary)) {
PyErr_SetString(PyExc_TypeError,
@@ -3023,7 +3243,7 @@ int require_native(PyArrayObject* ary) {
* dimensions. If the array has the specified number of dimensions,
* return 1. Otherwise, set the python error string and return 0.
*/
-int require_dimensions(PyArrayObject* ary, int exact_dimensions) {
+static int require_dimensions(PyArrayObject* ary, int exact_dimensions) {
int success = 1;
if (array_numdims(ary) != exact_dimensions) {
PyErr_Format(PyExc_TypeError,
@@ -3039,7 +3259,7 @@ int require_dimensions(PyArrayObject* ary, int exact_dimensions) {
* of dimensions, return 1. Otherwise, set the python error string
* and return 0.
*/
-int require_dimensions_n(PyArrayObject* ary, int* exact_dimensions, int n) {
+static int require_dimensions_n(PyArrayObject* ary, int* exact_dimensions, int n) {
int success = 0;
int i;
char dims_str[255] = "";
@@ -3067,7 +3287,7 @@ int require_dimensions_n(PyArrayObject* ary, int* exact_dimensions, int n) {
* array has the specified shape, return 1. Otherwise, set the python
* error string and return 0.
*/
-int require_size(PyArrayObject* ary, npy_intp* size, int n) {
+static int require_size(PyArrayObject* ary, npy_intp* size, int n) {
int i;
int success = 1;
int len;
@@ -3117,7 +3337,7 @@ int require_size(PyArrayObject* ary, npy_intp* size, int n) {
@par Revision history:
- 17.02.2005, c
*/
-PyObject *helper_appendToTuple( PyObject *where, PyObject *what ) {
+static PyObject *helper_appendToTuple( PyObject *where, PyObject *what ) {
PyObject *o2, *o3;
if ((!where) || (where == Py_None)) {
@@ -5091,8 +5311,8 @@ SWIGINTERN PyObject *_wrap_bsr_diagonal(PyObject *self, PyObject *args) {
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = (int)PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 8); ii++) {
+ argc = args ? (int)PyObject_Length(args) : 0;
+ for (ii = 0; (ii < 8) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 8) {
@@ -5785,7 +6005,7 @@ SWIGINTERN PyObject *_wrap_bsr_diagonal(PyObject *self, PyObject *args) {
" bsr_diagonal< int,npy_cfloat_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_cfloat_wrapper const [],npy_cfloat_wrapper [])\n"
" bsr_diagonal< int,npy_cdouble_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_cdouble_wrapper const [],npy_cdouble_wrapper [])\n"
" bsr_diagonal< int,npy_clongdouble_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_clongdouble_wrapper const [],npy_clongdouble_wrapper [])\n");
- return NULL;
+ return 0;
}
@@ -7587,8 +7807,8 @@ SWIGINTERN PyObject *_wrap_bsr_scale_rows(PyObject *self, PyObject *args) {
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = (int)PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 8); ii++) {
+ argc = args ? (int)PyObject_Length(args) : 0;
+ for (ii = 0; (ii < 8) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 8) {
@@ -8281,7 +8501,7 @@ SWIGINTERN PyObject *_wrap_bsr_scale_rows(PyObject *self, PyObject *args) {
" bsr_scale_rows< int,npy_cfloat_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_cfloat_wrapper [],npy_cfloat_wrapper const [])\n"
" bsr_scale_rows< int,npy_cdouble_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_cdouble_wrapper [],npy_cdouble_wrapper const [])\n"
" bsr_scale_rows< int,npy_clongdouble_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_clongdouble_wrapper [],npy_clongdouble_wrapper const [])\n");
- return NULL;
+ return 0;
}
@@ -10083,8 +10303,8 @@ SWIGINTERN PyObject *_wrap_bsr_scale_columns(PyObject *self, PyObject *args) {
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = (int)PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 8); ii++) {
+ argc = args ? (int)PyObject_Length(args) : 0;
+ for (ii = 0; (ii < 8) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 8) {
@@ -10777,7 +10997,7 @@ SWIGINTERN PyObject *_wrap_bsr_scale_columns(PyObject *self, PyObject *args) {
" bsr_scale_columns< int,npy_cfloat_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_cfloat_wrapper [],npy_cfloat_wrapper const [])\n"
" bsr_scale_columns< int,npy_cdouble_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_cdouble_wrapper [],npy_cdouble_wrapper const [])\n"
" bsr_scale_columns< int,npy_clongdouble_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_clongdouble_wrapper [],npy_clongdouble_wrapper const [])\n");
- return NULL;
+ return 0;
}
@@ -12803,8 +13023,8 @@ SWIGINTERN PyObject *_wrap_bsr_transpose(PyObject *self, PyObject *args) {
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = (int)PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 10); ii++) {
+ argc = args ? (int)PyObject_Length(args) : 0;
+ for (ii = 0; (ii < 10) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 10) {
@@ -13637,7 +13857,7 @@ SWIGINTERN PyObject *_wrap_bsr_transpose(PyObject *self, PyObject *args) {
" bsr_transpose< int,npy_cfloat_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_cfloat_wrapper const [],int [],int [],npy_cfloat_wrapper [])\n"
" bsr_transpose< int,npy_cdouble_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_cdouble_wrapper const [],int [],int [],npy_cdouble_wrapper [])\n"
" bsr_transpose< int,npy_clongdouble_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_clongdouble_wrapper const [],int [],int [],npy_clongdouble_wrapper [])\n");
- return NULL;
+ return 0;
}
@@ -16797,8 +17017,8 @@ SWIGINTERN PyObject *_wrap_bsr_matmat_pass2(PyObject *self, PyObject *args) {
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = (int)PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 14); ii++) {
+ argc = args ? (int)PyObject_Length(args) : 0;
+ for (ii = 0; (ii < 14) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 14) {
@@ -17925,7 +18145,7 @@ SWIGINTERN PyObject *_wrap_bsr_matmat_pass2(PyObject *self, PyObject *args) {
" bsr_matmat_pass2< int,npy_cfloat_wrapper >(int const,int const,int const,int const,int const,int const [],int const [],npy_cfloat_wrapper const [],int const [],int const [],npy_cfloat_wrapper const [],int [],int [],npy_cfloat_wrapper [])\n"
" bsr_matmat_pass2< int,npy_cdouble_wrapper >(int const,int const,int const,int const,int const,int const [],int const [],npy_cdouble_wrapper const [],int const [],int const [],npy_cdouble_wrapper const [],int [],int [],npy_cdouble_wrapper [])\n"
" bsr_matmat_pass2< int,npy_clongdouble_wrapper >(int const,int const,int const,int const,int const,int const [],int const [],npy_clongdouble_wrapper const [],int const [],int const [],npy_clongdouble_wrapper const [],int [],int [],npy_clongdouble_wrapper [])\n");
- return NULL;
+ return 0;
}
@@ -20063,8 +20283,8 @@ SWIGINTERN PyObject *_wrap_bsr_matvec(PyObject *self, PyObject *args) {
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = (int)PyObject_Length(args);
- for (ii = 0; (ii < argc) && (ii < 9); ii++) {
+ argc = args ? (int)PyObject_Length(args) : 0;
+ for (ii = 0; (ii < 9) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 9) {
@@ -20827,7 +21047,7 @@ SWIGINTERN PyObject *_wrap_bsr_matvec(PyObject *self, PyObject *args) {
" bsr_matvec< int,npy_cfloat_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_cfloat_wrapper const [],npy_cfloat_wrapper const [],npy_cfloat_wrapper [])\n"
" bsr_matvec< int,npy_cdouble_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_cdouble_wrapper const [],npy_cdouble_wrapper const [],npy_cdouble_wrapper [])\n"
" bsr_matvec< int,npy_clongdouble_wrapper >(int const,int const,int const,int const,int const [],int const [],npy_clongdouble_wrapper const [],npy_clongdouble_wrapper const [],npy_clongdouble_wrapper [])\n");
- return NULL;
+ return 0;
}