Source code for pyamg.amg_core.amg_core

# This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.40
#
# 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):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_amg_core', [dirname(__file__)])
        except ImportError:
            import _amg_core
            return _amg_core
        if fp is not None:
            try:
                _mod = imp.load_module('_amg_core', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _amg_core = swig_import_helper()
    del swig_import_helper
else:
    import _amg_core
del version_info
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static) or hasattr(self,name):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    if (name == "thisown"): return self.this.own()
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError(name)

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0


F_NODE = _amg_core.F_NODE
C_NODE = _amg_core.C_NODE
U_NODE = _amg_core.U_NODE

[docs]def cljp_naive_splitting(*args): """ cljp_naive_splitting(int n, int Sp, int Sj, int Tp, int Tj, int splitting, int colorflag) """ return _amg_core.cljp_naive_splitting(*args)
[docs]def naive_aggregation(*args): """naive_aggregation(int n_row, int Ap, int Aj, int x, int y) -> int""" return _amg_core.naive_aggregation(*args)
[docs]def standard_aggregation(*args): """standard_aggregation(int n_row, int Ap, int Aj, int x, int y) -> int""" return _amg_core.standard_aggregation(*args)
[docs]def rs_cf_splitting(*args): """rs_cf_splitting(int n_nodes, int Sp, int Sj, int Tp, int Tj, int splitting)""" return _amg_core.rs_cf_splitting(*args)
[docs]def rs_direct_interpolation_pass1(*args): """rs_direct_interpolation_pass1(int n_nodes, int Sp, int Sj, int splitting, int Bp)""" return _amg_core.rs_direct_interpolation_pass1(*args)
[docs]def maximal_independent_set_serial(*args): """ maximal_independent_set_serial(int num_rows, int Ap, int Aj, int active, int C, int F, int x) -> int """ return _amg_core.maximal_independent_set_serial(*args)
[docs]def vertex_coloring_mis(*args): """vertex_coloring_mis(int num_rows, int Ap, int Aj, int x) -> int""" return _amg_core.vertex_coloring_mis(*args)
[docs]def vertex_coloring_jones_plassmann(*args): """vertex_coloring_jones_plassmann(int num_rows, int Ap, int Aj, int x, double y) -> int""" return _amg_core.vertex_coloring_jones_plassmann(*args)
[docs]def vertex_coloring_LDF(*args): """vertex_coloring_LDF(int num_rows, int Ap, int Aj, int x, double y) -> int""" return _amg_core.vertex_coloring_LDF(*args)
[docs]def connected_components(*args): """connected_components(int num_nodes, int Ap, int Aj, int components) -> int""" return _amg_core.connected_components(*args)
[docs]def signof(*args): """ signof(int a) -> int signof(float a) -> float signof(double a) -> double """ return _amg_core.signof(*args)
[docs]def conjugate(*args): """ conjugate(float x) -> float conjugate(double x) -> double conjugate(npy_cfloat_wrapper x) -> npy_cfloat_wrapper conjugate(npy_cdouble_wrapper x) -> npy_cdouble_wrapper """ return _amg_core.conjugate(*args)
[docs]def real(*args): """ real(float x) -> float real(double x) -> double real(npy_cfloat_wrapper x) -> float real(npy_cdouble_wrapper x) -> double """ return _amg_core.real(*args)
[docs]def imag(*args): """ imag(float x) -> float imag(double x) -> double imag(npy_cfloat_wrapper x) -> float imag(npy_cdouble_wrapper x) -> double """ return _amg_core.imag(*args)
[docs]def mynorm(*args): """ mynorm(float x) -> float mynorm(double x) -> double mynorm(npy_cfloat_wrapper x) -> float mynorm(npy_cdouble_wrapper x) -> double """ return _amg_core.mynorm(*args)
[docs]def mynormsq(*args): """ mynormsq(float x) -> float mynormsq(double x) -> double mynormsq(npy_cfloat_wrapper x) -> float mynormsq(npy_cdouble_wrapper x) -> double """ return _amg_core.mynormsq(*args)
[docs]def zero_real(*args): """ zero_real(float x) -> float zero_real(double x) -> double zero_real(npy_cfloat_wrapper x) -> npy_cfloat_wrapper zero_real(npy_cdouble_wrapper x) -> npy_cdouble_wrapper """ return _amg_core.zero_real(*args)
[docs]def zero_imag(*args): """ zero_imag(float x) -> float zero_imag(double x) -> double zero_imag(npy_cfloat_wrapper x) -> npy_cfloat_wrapper zero_imag(npy_cdouble_wrapper x) -> npy_cdouble_wrapper """ return _amg_core.zero_imag(*args)
[docs]def rs_direct_interpolation_pass2(*args): """ rs_direct_interpolation_pass2(int n_nodes, int Ap, int Aj, float Ax, int Sp, int Sj, float Sx, int splitting, int Bp, int Bj, float Bx) rs_direct_interpolation_pass2(int n_nodes, int Ap, int Aj, double Ax, int Sp, int Sj, double Sx, int splitting, int Bp, int Bj, double Bx) """ return _amg_core.rs_direct_interpolation_pass2(*args)
[docs]def satisfy_constraints_helper(*args): """ satisfy_constraints_helper(int RowsPerBlock, int ColsPerBlock, int num_block_rows, int NullDim, float x, float y, float z, int Sp, int Sj, float Sx) satisfy_constraints_helper(int RowsPerBlock, int ColsPerBlock, int num_block_rows, int NullDim, double x, double y, double z, int Sp, int Sj, double Sx) satisfy_constraints_helper(int RowsPerBlock, int ColsPerBlock, int num_block_rows, int NullDim, npy_cfloat_wrapper x, npy_cfloat_wrapper y, npy_cfloat_wrapper z, int Sp, int Sj, npy_cfloat_wrapper Sx) satisfy_constraints_helper(int RowsPerBlock, int ColsPerBlock, int num_block_rows, int NullDim, npy_cdouble_wrapper x, npy_cdouble_wrapper y, npy_cdouble_wrapper z, int Sp, int Sj, npy_cdouble_wrapper Sx) """ return _amg_core.satisfy_constraints_helper(*args)
[docs]def calc_BtB(*args): """ calc_BtB(int NullDim, int Nnodes, int ColsPerBlock, float b, int BsqCols, float x, int Sp, int Sj) calc_BtB(int NullDim, int Nnodes, int ColsPerBlock, double b, int BsqCols, double x, int Sp, int Sj) calc_BtB(int NullDim, int Nnodes, int ColsPerBlock, npy_cfloat_wrapper b, int BsqCols, npy_cfloat_wrapper x, int Sp, int Sj) calc_BtB(int NullDim, int Nnodes, int ColsPerBlock, npy_cdouble_wrapper b, int BsqCols, npy_cdouble_wrapper x, int Sp, int Sj) """ return _amg_core.calc_BtB(*args)
[docs]def incomplete_mat_mult_bsr(*args): """ incomplete_mat_mult_bsr(int Ap, int Aj, float Ax, int Bp, int Bj, float Bx, int Sp, int Sj, float Sx, int n_brow, int n_bcol, int brow_A, int bcol_A, int bcol_B) incomplete_mat_mult_bsr(int Ap, int Aj, double Ax, int Bp, int Bj, double Bx, int Sp, int Sj, double Sx, int n_brow, int n_bcol, int brow_A, int bcol_A, int bcol_B) incomplete_mat_mult_bsr(int Ap, int Aj, npy_cfloat_wrapper Ax, int Bp, int Bj, npy_cfloat_wrapper Bx, int Sp, int Sj, npy_cfloat_wrapper Sx, int n_brow, int n_bcol, int brow_A, int bcol_A, int bcol_B) incomplete_mat_mult_bsr(int Ap, int Aj, npy_cdouble_wrapper Ax, int Bp, int Bj, npy_cdouble_wrapper Bx, int Sp, int Sj, npy_cdouble_wrapper Sx, int n_brow, int n_bcol, int brow_A, int bcol_A, int bcol_B) """ return _amg_core.incomplete_mat_mult_bsr(*args)
[docs]def pinv_array(*args): """ pinv_array(float Ax, int m, int n, char TransA) pinv_array(double Ax, int m, int n, char TransA) pinv_array(npy_cfloat_wrapper Ax, int m, int n, char TransA) pinv_array(npy_cdouble_wrapper Ax, int m, int n, char TransA) """ return _amg_core.pinv_array(*args)
[docs]def classical_strength_of_connection(*args): """ classical_strength_of_connection(int n_row, float theta, int Ap, int Aj, float Ax, int Sp, int Sj, float Sx) classical_strength_of_connection(int n_row, double theta, int Ap, int Aj, double Ax, int Sp, int Sj, double Sx) classical_strength_of_connection(int n_row, float theta, int Ap, int Aj, npy_cfloat_wrapper Ax, int Sp, int Sj, npy_cfloat_wrapper Sx) classical_strength_of_connection(int n_row, double theta, int Ap, int Aj, npy_cdouble_wrapper Ax, int Sp, int Sj, npy_cdouble_wrapper Sx) """ return _amg_core.classical_strength_of_connection(*args)
[docs]def symmetric_strength_of_connection(*args): """ symmetric_strength_of_connection(int n_row, float theta, int Ap, int Aj, float Ax, int Sp, int Sj, float Sx) symmetric_strength_of_connection(int n_row, double theta, int Ap, int Aj, double Ax, int Sp, int Sj, double Sx) symmetric_strength_of_connection(int n_row, float theta, int Ap, int Aj, npy_cfloat_wrapper Ax, int Sp, int Sj, npy_cfloat_wrapper Sx) symmetric_strength_of_connection(int n_row, double theta, int Ap, int Aj, npy_cdouble_wrapper Ax, int Sp, int Sj, npy_cdouble_wrapper Sx) """ return _amg_core.symmetric_strength_of_connection(*args)
[docs]def evolution_strength_helper(*args): """ evolution_strength_helper(float Sx, int Sp, int Sj, int nrows, float x, float y, float b, int BDBCols, int NullDim, float tol) evolution_strength_helper(double Sx, int Sp, int Sj, int nrows, double x, double y, double b, int BDBCols, int NullDim, double tol) evolution_strength_helper(npy_cfloat_wrapper Sx, int Sp, int Sj, int nrows, npy_cfloat_wrapper x, npy_cfloat_wrapper y, npy_cfloat_wrapper b, int BDBCols, int NullDim, float tol) evolution_strength_helper(npy_cdouble_wrapper Sx, int Sp, int Sj, int nrows, npy_cdouble_wrapper x, npy_cdouble_wrapper y, npy_cdouble_wrapper b, int BDBCols, int NullDim, double tol) """ return _amg_core.evolution_strength_helper(*args)
[docs]def incomplete_mat_mult_csr(*args): """ incomplete_mat_mult_csr(int Ap, int Aj, float Ax, int Bp, int Bj, float Bx, int Sp, int Sj, float Sx, int num_rows) incomplete_mat_mult_csr(int Ap, int Aj, double Ax, int Bp, int Bj, double Bx, int Sp, int Sj, double Sx, int num_rows) incomplete_mat_mult_csr(int Ap, int Aj, npy_cfloat_wrapper Ax, int Bp, int Bj, npy_cfloat_wrapper Bx, int Sp, int Sj, npy_cfloat_wrapper Sx, int num_rows) incomplete_mat_mult_csr(int Ap, int Aj, npy_cdouble_wrapper Ax, int Bp, int Bj, npy_cdouble_wrapper Bx, int Sp, int Sj, npy_cdouble_wrapper Sx, int num_rows) """ return _amg_core.incomplete_mat_mult_csr(*args)
[docs]def apply_distance_filter(*args): """ apply_distance_filter(int n_row, float epsilon, int Sp, int Sj, float Sx) apply_distance_filter(int n_row, double epsilon, int Sp, int Sj, double Sx) """ return _amg_core.apply_distance_filter(*args)
[docs]def apply_absolute_distance_filter(*args): """ apply_absolute_distance_filter(int n_row, float epsilon, int Sp, int Sj, float Sx) apply_absolute_distance_filter(int n_row, double epsilon, int Sp, int Sj, double Sx) """ return _amg_core.apply_absolute_distance_filter(*args)
[docs]def min_blocks(*args): """ min_blocks(int n_blocks, int blocksize, float Sx, float Tx) min_blocks(int n_blocks, int blocksize, double Sx, double Tx) """ return _amg_core.min_blocks(*args)
[docs]def bsr_gauss_seidel(*args): """ bsr_gauss_seidel(int Ap, int Aj, float Ax, float x, float b, int row_start, int row_stop, int row_step, int blocksize) bsr_gauss_seidel(int Ap, int Aj, double Ax, double x, double b, int row_start, int row_stop, int row_step, int blocksize) bsr_gauss_seidel(int Ap, int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper x, npy_cfloat_wrapper b, int row_start, int row_stop, int row_step, int blocksize) bsr_gauss_seidel(int Ap, int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper x, npy_cdouble_wrapper b, int row_start, int row_stop, int row_step, int blocksize) """ return _amg_core.bsr_gauss_seidel(*args)
[docs]def bsr_jacobi(*args): """ bsr_jacobi(int Ap, int Aj, float Ax, float x, float b, float temp, int row_start, int row_stop, int row_step, int blocksize, float omega) bsr_jacobi(int Ap, int Aj, double Ax, double x, double b, double temp, int row_start, int row_stop, int row_step, int blocksize, double omega) bsr_jacobi(int Ap, int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper x, npy_cfloat_wrapper b, npy_cfloat_wrapper temp, int row_start, int row_stop, int row_step, int blocksize, npy_cfloat_wrapper omega) bsr_jacobi(int Ap, int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper x, npy_cdouble_wrapper b, npy_cdouble_wrapper temp, int row_start, int row_stop, int row_step, int blocksize, npy_cdouble_wrapper omega) """ return _amg_core.bsr_jacobi(*args)
[docs]def gauss_seidel(*args): """ gauss_seidel(int Ap, int Aj, float Ax, float x, float b, int row_start, int row_stop, int row_step) gauss_seidel(int Ap, int Aj, double Ax, double x, double b, int row_start, int row_stop, int row_step) gauss_seidel(int Ap, int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper x, npy_cfloat_wrapper b, int row_start, int row_stop, int row_step) gauss_seidel(int Ap, int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper x, npy_cdouble_wrapper b, int row_start, int row_stop, int row_step) """ return _amg_core.gauss_seidel(*args)
[docs]def jacobi(*args): """ jacobi(int Ap, int Aj, float Ax, float x, float b, float temp, int row_start, int row_stop, int row_step, float omega) jacobi(int Ap, int Aj, double Ax, double x, double b, double temp, int row_start, int row_stop, int row_step, double omega) jacobi(int Ap, int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper x, npy_cfloat_wrapper b, npy_cfloat_wrapper temp, int row_start, int row_stop, int row_step, npy_cfloat_wrapper omega) jacobi(int Ap, int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper x, npy_cdouble_wrapper b, npy_cdouble_wrapper temp, int row_start, int row_stop, int row_step, npy_cdouble_wrapper omega) """ return _amg_core.jacobi(*args)
[docs]def block_jacobi(*args): """ block_jacobi(int Ap, int Aj, float Ax, float x, float b, float Tx, float temp, int row_start, int row_stop, int row_step, float omega, int blocksize) block_jacobi(int Ap, int Aj, double Ax, double x, double b, double Tx, double temp, int row_start, int row_stop, int row_step, double omega, int blocksize) block_jacobi(int Ap, int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper x, npy_cfloat_wrapper b, npy_cfloat_wrapper Tx, npy_cfloat_wrapper temp, int row_start, int row_stop, int row_step, npy_cfloat_wrapper omega, int blocksize) block_jacobi(int Ap, int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper x, npy_cdouble_wrapper b, npy_cdouble_wrapper Tx, npy_cdouble_wrapper temp, int row_start, int row_stop, int row_step, npy_cdouble_wrapper omega, int blocksize) """ return _amg_core.block_jacobi(*args)
[docs]def block_gauss_seidel(*args): """ block_gauss_seidel(int Ap, int Aj, float Ax, float x, float b, float Tx, int row_start, int row_stop, int row_step, int blocksize) block_gauss_seidel(int Ap, int Aj, double Ax, double x, double b, double Tx, int row_start, int row_stop, int row_step, int blocksize) block_gauss_seidel(int Ap, int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper x, npy_cfloat_wrapper b, npy_cfloat_wrapper Tx, int row_start, int row_stop, int row_step, int blocksize) block_gauss_seidel(int Ap, int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper x, npy_cdouble_wrapper b, npy_cdouble_wrapper Tx, int row_start, int row_stop, int row_step, int blocksize) """ return _amg_core.block_gauss_seidel(*args)
[docs]def gauss_seidel_indexed(*args): """ gauss_seidel_indexed(int Ap, int Aj, float Ax, float x, float b, int Id, int row_start, int row_stop, int row_step) gauss_seidel_indexed(int Ap, int Aj, double Ax, double x, double b, int Id, int row_start, int row_stop, int row_step) gauss_seidel_indexed(int Ap, int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper x, npy_cfloat_wrapper b, int Id, int row_start, int row_stop, int row_step) gauss_seidel_indexed(int Ap, int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper x, npy_cdouble_wrapper b, int Id, int row_start, int row_stop, int row_step) """ return _amg_core.gauss_seidel_indexed(*args)
[docs]def jacobi_ne(*args): """ jacobi_ne(int Ap, int Aj, float Ax, float x, float b, float Tx, float temp, int row_start, int row_stop, int row_step, float omega) jacobi_ne(int Ap, int Aj, double Ax, double x, double b, double Tx, double temp, int row_start, int row_stop, int row_step, double omega) jacobi_ne(int Ap, int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper x, npy_cfloat_wrapper b, npy_cfloat_wrapper Tx, npy_cfloat_wrapper temp, int row_start, int row_stop, int row_step, npy_cfloat_wrapper omega) jacobi_ne(int Ap, int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper x, npy_cdouble_wrapper b, npy_cdouble_wrapper Tx, npy_cdouble_wrapper temp, int row_start, int row_stop, int row_step, npy_cdouble_wrapper omega) """ return _amg_core.jacobi_ne(*args)
[docs]def gauss_seidel_ne(*args): """ gauss_seidel_ne(int Ap, int Aj, float Ax, float x, float b, int row_start, int row_stop, int row_step, float Tx, float omega) gauss_seidel_ne(int Ap, int Aj, double Ax, double x, double b, int row_start, int row_stop, int row_step, double Tx, double omega) gauss_seidel_ne(int Ap, int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper x, npy_cfloat_wrapper b, int row_start, int row_stop, int row_step, npy_cfloat_wrapper Tx, float omega) gauss_seidel_ne(int Ap, int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper x, npy_cdouble_wrapper b, int row_start, int row_stop, int row_step, npy_cdouble_wrapper Tx, double omega) """ return _amg_core.gauss_seidel_ne(*args)
[docs]def gauss_seidel_nr(*args): """ gauss_seidel_nr(int Ap, int Aj, float Ax, float x, float z, int col_start, int col_stop, int col_step, float Tx, float omega) gauss_seidel_nr(int Ap, int Aj, double Ax, double x, double z, int col_start, int col_stop, int col_step, double Tx, double omega) gauss_seidel_nr(int Ap, int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper x, npy_cfloat_wrapper z, int col_start, int col_stop, int col_step, npy_cfloat_wrapper Tx, float omega) gauss_seidel_nr(int Ap, int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper x, npy_cdouble_wrapper z, int col_start, int col_stop, int col_step, npy_cdouble_wrapper Tx, double omega) """ return _amg_core.gauss_seidel_nr(*args)
[docs]def overlapping_schwarz_csr(*args): """ overlapping_schwarz_csr(int Ap, int Aj, float Ax, float x, float b, float Tx, int Tp, int Sj, int Sp, int nsdomains, int nrows, int row_start, int row_stop, int row_step) overlapping_schwarz_csr(int Ap, int Aj, double Ax, double x, double b, double Tx, int Tp, int Sj, int Sp, int nsdomains, int nrows, int row_start, int row_stop, int row_step) overlapping_schwarz_csr(int Ap, int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper x, npy_cfloat_wrapper b, npy_cfloat_wrapper Tx, int Tp, int Sj, int Sp, int nsdomains, int nrows, int row_start, int row_stop, int row_step) overlapping_schwarz_csr(int Ap, int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper x, npy_cdouble_wrapper b, npy_cdouble_wrapper Tx, int Tp, int Sj, int Sp, int nsdomains, int nrows, int row_start, int row_stop, int row_step) """ return _amg_core.overlapping_schwarz_csr(*args)
[docs]def extract_subblocks(*args): """ extract_subblocks(int Ap, int Aj, float Ax, float Tx, int Tp, int Sj, int Sp, int nsdomains, int nrows) extract_subblocks(int Ap, int Aj, double Ax, double Tx, int Tp, int Sj, int Sp, int nsdomains, int nrows) extract_subblocks(int Ap, int Aj, npy_cfloat_wrapper Ax, npy_cfloat_wrapper Tx, int Tp, int Sj, int Sp, int nsdomains, int nrows) extract_subblocks(int Ap, int Aj, npy_cdouble_wrapper Ax, npy_cdouble_wrapper Tx, int Tp, int Sj, int Sp, int nsdomains, int nrows) """ return _amg_core.extract_subblocks(*args)
[docs]def apply_householders(*args): """ apply_householders(float z, float B, int n, int start, int stop, int step) apply_householders(double z, double B, int n, int start, int stop, int step) apply_householders(npy_cfloat_wrapper z, npy_cfloat_wrapper B, int n, int start, int stop, int step) apply_householders(npy_cdouble_wrapper z, npy_cdouble_wrapper B, int n, int start, int stop, int step) """ return _amg_core.apply_householders(*args)
[docs]def householder_hornerscheme(*args): """ householder_hornerscheme(float z, float B, float y, int n, int start, int stop, int step) householder_hornerscheme(double z, double B, double y, int n, int start, int stop, int step) householder_hornerscheme(npy_cfloat_wrapper z, npy_cfloat_wrapper B, npy_cfloat_wrapper y, int n, int start, int stop, int step) householder_hornerscheme(npy_cdouble_wrapper z, npy_cdouble_wrapper B, npy_cdouble_wrapper y, int n, int start, int stop, int step) """ return _amg_core.householder_hornerscheme(*args)
[docs]def apply_givens(*args): """ apply_givens(float B, float x, int n, int nrot) apply_givens(double B, double x, int n, int nrot) apply_givens(npy_cfloat_wrapper B, npy_cfloat_wrapper x, int n, int nrot) apply_givens(npy_cdouble_wrapper B, npy_cdouble_wrapper x, int n, int nrot) """ return _amg_core.apply_givens(*args)
[docs]def maximal_independent_set_parallel(*args): """ maximal_independent_set_parallel(int num_rows, int Ap, int Aj, int active, int C, int F, int x, double y, int max_iters = -1) -> int maximal_independent_set_parallel(int num_rows, int Ap, int Aj, int active, int C, int F, int x, double y) -> int """ return _amg_core.maximal_independent_set_parallel(*args)
[docs]def maximal_independent_set_k_parallel(*args): """ maximal_independent_set_k_parallel(int num_rows, int Ap, int Aj, int k, int x, double y, int max_iters = -1) maximal_independent_set_k_parallel(int num_rows, int Ap, int Aj, int k, int x, double y) """ return _amg_core.maximal_independent_set_k_parallel(*args)
[docs]def bellman_ford(*args): """ bellman_ford(int num_rows, int Ap, int Aj, int Ax, int x, int y) bellman_ford(int num_rows, int Ap, int Aj, float Ax, float x, int y) bellman_ford(int num_rows, int Ap, int Aj, double Ax, double x, int y) """ return _amg_core.bellman_ford(*args)
[docs]def lloyd_cluster(*args): """ lloyd_cluster(int num_rows, int Ap, int Aj, int Ax, int num_seeds, int x, int y, int z) lloyd_cluster(int num_rows, int Ap, int Aj, float Ax, int num_seeds, float x, int y, int z) lloyd_cluster(int num_rows, int Ap, int Aj, double Ax, int num_seeds, double x, int y, int z) """ return _amg_core.lloyd_cluster(*args)
[docs]def fit_candidates(*args): """ fit_candidates(int n_row, int n_col, int K1, int K2, int Ap, int Ai, float Ax, float B, float R, float tol) fit_candidates(int n_row, int n_col, int K1, int K2, int Ap, int Ai, double Ax, double B, double R, double tol) fit_candidates(int n_row, int n_col, int K1, int K2, int Ap, int Ai, npy_cfloat_wrapper Ax, npy_cfloat_wrapper B, npy_cfloat_wrapper R, float tol) fit_candidates(int n_row, int n_col, int K1, int K2, int Ap, int Ai, npy_cdouble_wrapper Ax, npy_cdouble_wrapper B, npy_cdouble_wrapper R, double tol) """ return _amg_core.fit_candidates(*args)