Git Product home page Git Product logo

scikit-sparse's Introduction

GitHub release (latest by date) PyPI Conda Version GitHub Workflow Status (event) Python Versions GitHub license

scikit-sparse

This scikit-sparse a companion to the scipy.sparse library for sparse matrix manipulation in Python. It provides routines that are not suitable for inclusion in scipy.sparse proper, usually because they are GPL'ed.

For more details on usage see the docs.

Installation

With pip

For pip installs of scikit-sparse depend on the suite-sparse library which can be installed via:

# mac
brew install suite-sparse

# debian
sudo apt-get install libsuitesparse-dev

Then, scikit-sparse can be installed via pip:

pip install scikit-sparse

If you suite-sparse library is installed in a non-standard place and you get errors when installing with pip you can use the environment variables:

  • SUITESPARSE_INCLUDE_DIR
  • SUITESPARSE_LIBRARY_DIR

at runtime so the compiler can find them. For example, lets say your suite-sparse installation is in /opt/local then you can run

SUITESPARSE_INCLUDE_DIR=/opt/local/include SUITESPARSE_LIBRARY_DIR=/opt/local/lib pip install scikit-sparse

With conda

The conda package comes with suite-sparse packaged as a dependency so all you need to do is:

conda install -c conda-forge scikit-sparse

Windows installation

This was tested with a Anaconda 3 installation and Python 3.8

  1. Install requirements

    • conda install -c conda-forge cython - tested with v0.29.32
    • conda install -c conda-forge suitesparse - tested with v5.4.0
    • optional (included in the build dependencies of scikit-sparse):
      • conda install -c conda-forge numpy - tested with v1.23.2
      • conda install -c conda-forge scipy - tested with v1.9.1
  2. Download Microsoft Build Tools for C++ from https://visualstudio.microsoft.com/de/visual-cpp-build-tools/ (tested with 2022, should work with 2015 or newer)

  3. Install Visual Studio Build Tools

    1. Choose Workloads
    2. Check "Desktop development with C++"
    3. Keep standard settings
  4. Run in a Powershell

    • $env:SUITESPARSE_INCLUDE_DIR='C:/Anaconda3/envs/<YOUR ENVIRONMENT NAME HERE>/Library/include/suitesparse'
    • $env:SUITESPARSE_LIBRARY_DIR='C:/Anaconda3/envs/<YOUR ENVIRONMENT NAME HERE>/Library/lib'
    • pip install scikit-sparse
  5. Test from sksparse.cholmod import cholesky

License

The wrapper code contained in this package is released under a 2-clause BSD license, as per below. However, this applies only to the original code contained in this package, and NOT to the libraries (e.g., CHOLMOD) which it uses. These libraries are generally licensed under less permissive licenses, such as the GNU GPL or LGPL, and users of this package are responsible for determining what requirements these licenses impose on their usage. (The intent here is that if you, for example, buy a license to use CHOLMOD in a commercial product, then you can also go ahead and use our wrapper code with your commercial license.)

Copyright (c) 2009-2017, the scikit-sparse developers

scikits-sparse
Copyright (c) 2009-2017, the scikit-sparse developers
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

- Redistributions of source code must retain the above copyright
  notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above
  copyright notice, this list of conditions and the following
  disclaimer in the documentation and/or other materials
  provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

scikit-sparse's People

Contributors

aarondjohnson avatar alexgrig avatar anntzer avatar bnavigator avatar cgcgcg avatar emjay276 avatar ericpre avatar jamesbrofos avatar jellis18 avatar jor- avatar luzpaz avatar njsmith avatar vallis avatar yurivict avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scikit-sparse's Issues

Support Apple silicon?

I met errors below when installing on Apple's M1 chip MBP

pip install -U scikit-sparse
Collecting scikit-sparse
  Downloading scikit-sparse-0.4.6.tar.gz (209 kB)
     |████████████████████████████████| 209 kB 310 kB/s
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 /private/var/folders/8j/473p19jj4vd201q3fw1x8flw0000gn/T/pip-standalone-pip-owb0loi4/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/8j/473p19jj4vd201q3fw1x8flw0000gn/T/pip-build-env-zg2p25su/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel 'Cython>=0.22' 'numpy==1.13.3; python_version=="3.6"' 'numpy==1.14.5; python_version=="3.7"' 'numpy==1.17.3; python_version=="3.8"' 'numpy==1.19.3; python_version=="3.9"'
       cwd: None
  Complete output (21 lines):
  Ignoring numpy: markers 'python_version == "3.6"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.7"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.9"' don't match your environment
  Collecting setuptools>=40.8.0
    Downloading setuptools-59.4.0-py3-none-any.whl (952 kB)
  Collecting wheel
    Downloading wheel-0.37.0-py2.py3-none-any.whl (35 kB)
  Collecting Cython>=0.22
    Downloading Cython-0.29.24-py2.py3-none-any.whl (979 kB)
  Collecting numpy==1.17.3
    Downloading numpy-1.17.3.zip (6.4 MB)
    Preparing metadata (setup.py): started
    Preparing metadata (setup.py): finished with status 'done'
  Building wheels for collected packages: numpy
    Building wheel for numpy (setup.py): started
    Building wheel for numpy (setup.py): finished with status 'done'
    Created wheel for numpy: filename=numpy-1.17.3-cp38-cp38-macosx_12_0_arm64.whl size=3673759 sha256=17d72064155a29695dcf36dc01dd65ea9f662a1981df5caea727b859bb1da01b
    Stored in directory: /Users/qyq/Library/Caches/pip/wheels/aa/67/93/1a3eb3ad40a08a0cc44ce3da7bfcad685c04afba45b7e72589
  Successfully built numpy
  Installing collected packages: wheel, setuptools, numpy, Cython
  ERROR: Cannot set --home and --prefix together
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/ca/91/94db555d5c7b0f75ecdf14802613409b9977aa8a92d0925863051e59c17b/scikit-sparse-0.4.6.tar.gz#sha256=f2de653920c2adf666de5c8a28abaa9f2218a1001d2d96e403a1f553938561c3 (from https://pypi.org/simple/scikit-sparse/) (requires-python:>=3.6, <3.10). Command errored out with exit status 1: /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 /private/var/folders/8j/473p19jj4vd201q3fw1x8flw0000gn/T/pip-standalone-pip-owb0loi4/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/8j/473p19jj4vd201q3fw1x8flw0000gn/T/pip-build-env-zg2p25su/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel 'Cython>=0.22' 'numpy==1.13.3; python_version=="3.6"' 'numpy==1.14.5; python_version=="3.7"' 'numpy==1.17.3; python_version=="3.8"' 'numpy==1.19.3; python_version=="3.9"' Check the logs for full command output.

SuiteSpase is successfully installed using Homebrew.

Python 3.9 support (regenerate with new cython)

The currently released 0.4.4 distribution on PyPI contains a cholmod.c generated with an older version of Cython that didn't support Python 3.9, so the build fails:

sksparse/cholmod.c:19722:40: error: no member named 'tp_print' in 'struct _typeobject'
  __pyx_type_8sksparse_7cholmod_Common.tp_print = 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
sksparse/cholmod.c:19731:40: error: no member named 'tp_print' in 'struct _typeobject'
  __pyx_type_8sksparse_7cholmod_Factor.tp_print = 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
sksparse/cholmod.c:19751:58: error: no member named 'tp_print' in 'struct _typeobject'
  __pyx_type_8sksparse_7cholmod__CholmodSparseDestructor.tp_print = 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
sksparse/cholmod.c:19762:57: error: no member named 'tp_print' in 'struct _typeobject'
  __pyx_type_8sksparse_7cholmod__CholmodDenseDestructor.tp_print = 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^

Please release an update regenerated with newer Cython.

seeking help

Could anyone tell me that where can I find the package CHOLMOD to be installed?

Copying a Cholesky factor

Is it possible to add functionality to copy a Cholesky factor?

I have the following use case:
Starting from a single matrix, I spawn many worker processes that each modify the Cholesky
decomposition in different ways. Now, I need to calculate the initial decomposition of the same
matrix N times, once for each worker process. I would rather be able to pre-calculate it once and then
simply copy the factor N times (N can be quite large, so this is a significant time factor for me).

Can't find "cholmod.h" while installing using pip on macOS

I am installing scikit-sparse via pip and I got the error below:

 Building wheel for scikit-sparse (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/zl/498rsyv11_v53_k5x1xfflkw0000gn/T/tmphqddsg3a
       cwd: /private/var/folders/zl/498rsyv11_v53_k5x1xfflkw0000gn/T/pip-install-0ezcix_f/scikit-sparse_63d2a4408dfe4ad1a24ef3837a8eea73
  Complete output (35 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-11.3-x86_64-3.8
  creating build/lib.macosx-11.3-x86_64-3.8/sksparse
  copying sksparse/__init__.py -> build/lib.macosx-11.3-x86_64-3.8/sksparse
  copying sksparse/test_cholmod.py -> build/lib.macosx-11.3-x86_64-3.8/sksparse
  creating build/lib.macosx-11.3-x86_64-3.8/sksparse/test_data
  copying sksparse/test_data/illc1033.mtx.gz -> build/lib.macosx-11.3-x86_64-3.8/sksparse/test_data
  copying sksparse/test_data/illc1033_rhs1.mtx.gz -> build/lib.macosx-11.3-x86_64-3.8/sksparse/test_data
  copying sksparse/test_data/well1033_rhs1.mtx.gz -> build/lib.macosx-11.3-x86_64-3.8/sksparse/test_data
  copying sksparse/test_data/well1033.mtx.gz -> build/lib.macosx-11.3-x86_64-3.8/sksparse/test_data
  copying sksparse/test_data/well1850_rhs1.mtx.gz -> build/lib.macosx-11.3-x86_64-3.8/sksparse/test_data
  copying sksparse/test_data/illc1850.mtx.gz -> build/lib.macosx-11.3-x86_64-3.8/sksparse/test_data
  copying sksparse/test_data/illc1850_rhs1.mtx.gz -> build/lib.macosx-11.3-x86_64-3.8/sksparse/test_data
  copying sksparse/test_data/well1850.mtx.gz -> build/lib.macosx-11.3-x86_64-3.8/sksparse/test_data
  running build_ext
  building 'sksparse.cholmod' extension
  creating build/temp.macosx-11.3-x86_64-3.8
  creating build/temp.macosx-11.3-x86_64-3.8/sksparse
  /usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk -Isksparse -I/private/var/folders/zl/498rsyv11_v53_k5x1xfflkw0000gn/T/pip-build-env-o0pnraoh/overlay/lib/python3.8/site-packages/numpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include -I/usr/include/suitesparse -I/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c sksparse/cholmod.c -o build/temp.macosx-11.3-x86_64-3.8/sksparse/cholmod.o
  In file included from sksparse/cholmod.c:638:
  In file included from /private/var/folders/zl/498rsyv11_v53_k5x1xfflkw0000gn/T/pip-build-env-o0pnraoh/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:4:
  In file included from /private/var/folders/zl/498rsyv11_v53_k5x1xfflkw0000gn/T/pip-build-env-o0pnraoh/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
  In file included from /private/var/folders/zl/498rsyv11_v53_k5x1xfflkw0000gn/T/pip-build-env-o0pnraoh/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830:
  /private/var/folders/zl/498rsyv11_v53_k5x1xfflkw0000gn/T/pip-build-env-o0pnraoh/overlay/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
  #warning "Using deprecated NumPy API, disable it with " \
   ^
  In file included from sksparse/cholmod.c:640:
  sksparse/cholmod_backward_compatible.h:1:10: fatal error: 'cholmod.h' file not found
  #include "cholmod.h"
           ^~~~~~~~~~~
  1 warning and 1 error generated.
  error: command '/usr/bin/clang' failed with exit status 1
  ----------------------------------------
 ERROR: Failed building wheel for scikit-sparse
Failed to build scikit-sparse
ERROR: Could not build wheels for scikit-sparse which use PEP 517 and cannot be installed directly

And I already installed suitesparse via MacPorts, it seems it is trying to find "cholmod.h" in /usr/include which does not even exist, and the suitesparse files are in /opt/local/include. Is there a way to modify the include path for pip?
image

conda installation problem on a Mac

I installed suitesparse and scikits.sparse via conda (python 2.7.15). Then when I try "from sksparse.cholmod import cholesky" I get this error:

ImportError: dlopen(/anaconda2/lib/python2.7/site-packages/sksparse/cholmod.so, 2): Library not loaded: @rpath/libcholmod.3.0.11.dylib
  Referenced from: /anaconda2/lib/python2.7/site-packages/sksparse/cholmod.so
  Reason: image not found

Installation on CentOS / Fedora

Issue #7 reopened:
In fact, correcting the installation folder for the SuiteSparse only solves part of the problem: it performs the compilation correctly and performs the "import scikits.sparse" command safely.

However, upon import it throws the following error:

ImportError: /usr/local/lib/python2.7/site-packages/scikits.sparse-0.1-py2.7-linux-x86_64.egg/scikits/sparse/cholmod.so: undefined symbol: amd_printf

My knowledge of C and linux - specific compilation is very limited, but it looks like there are some libraries that have not been linked correctly.

Is there a way to resolve this issue? I believe it was already encountered during the previous iteration of the suitesparse on RHEL ( see https://bugzilla.redhat.com/show_bug.cgi?id=475411 from 2008), but I am not sure it is relevant to the current bug.

Sincerely,

Andrei

Memory leak

scikits-sparse seem to be leaking memory at an alarming rate :-( After some valgrind'ing, I think that the *cholmod_dense mallocated in _view_dense (and likewise for the *_sparse versions) never get deallocated, even though the comments suggest otherwise:

    # This returns a Python object which holds the reference count for the
    # dense matrix; you must ensure that you hold onto a reference to this
    # Python object for as long as you want to use the cholmod_dense*

but the return value is, in the dense case, a matrix that had been passed as input, and, in the sparse case, an (indptr, indices, data) triple, neither of which deallocate the malloc'ed memory upon being gc'ed.

Sparse QR (feature request)

This is a feature request: include sparse QR by wrapping SuiteSparseQR:
http://www.cise.ufl.edu/research/sparse/SPQR/

Motivation: SciPy does not currently have sparse QR. SuiteSparseQR is a C package for sparse QR. But it is licensed under GPL so it is not suitable for SciPy directly but could be wrapped in scikits.sparse.

However, if there are other open source sparse QR libraries with SciPy-compatible license, those could be considered for SciPy.

solving with solve_Lt(b)

I seem to have inconsistent results with solve_Lt(b) in comparison to solving with dense matrices and numpy.linalg.linalg.solve function. Am I missing something ?

Here's the code (un-comment the R and samp parts and delete the cholmod import for regular solve):

from pylab                  import *
from scipy.sparse           import spdiags
from scikits.sparse.cholmod import cholesky

nx = 50
ny = 50
N  = nx*ny

#  Set up matrix A. Use SciPy's sparse storage.
Adiag   = 4*ones(N)
Asubs   = - ones(N)
Asubs1  = - ones(N)
Asuper1 = - ones(N)

# we must account for the zeroes in the sub and super diagonal
for i in range(1,ny):
  Asubs1[i*nx - 1] = 0
for i in range(1,ny):
  Asuper1[i*nx] = 0

#I      = identity(n)
#L2D    = kron(L1D, I) + kron(I, L1D)  # too slow and not sparse
data   = [Asubs,Asubs1,Adiag,Asuper1,Asubs]
diags  = [-nx, -1, 0, 1, nx]
L2D    = spdiags(data, diags, N, N)
factor = cholesky(L2D)
#R      = cholesky(L2D.todense())
v      = randn(N,1)
samp   = factor.solve_Lt(v)
#samp   = solve(R.T, v)

imshow(reshape(samp,(nx,ny)), cmap='gray')
colorbar()
show()

scikit-sparse installation does not work without Cython installed

I tried to install scikit-sparse with pip but it does not work if Cython is not installed.

pip3 install scikit-sparse
Collecting scikit-sparse
  Using cached scikit-sparse-0.3.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-x1ljg7ce/scikit-sparse/setup.py", line 26, in <module>
        from Cython.Build import cythonize
    ImportError: No module named 'Cython'

It would be nice if Cython would be automatically installed in this case (or at least the user would be informed that he/she should install Cython first).

direct product with a matrix/vector

Hi!

Is there any analog of apply_P method but for the factor itself? I mean, is there a method to compute a product Lb directly with a single method, rather than doing factor.L().dot(b) (b is given).

Thanks!

two tests fail when using numpy 1.12

When trying to add numpy 1.12 based conda package (see conda-forge/scikit-sparse-feedstock#5), two test failures are encountered. The tests passed on the same CI setup when using numpy 1.11. The failure on the CI service was using Python 2.7, but I verified the same happens for Python 3.5 on my local machine.

For references the failures are:

======================================================================
ERROR: sksparse.test_cholmod.test_complex
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/feedstock_root/build_artefacts/recipe_root_1486080708541/_t_env/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/feedstock_root/build_artefacts/recipe_root_1486080708541/_t_env/lib/python2.7/site-packages/sksparse/test_cholmod.py", line 99, in test_complex
    assert_allclose(fc(np.arange(4) * 1j)[:, None],
  File "sksparse/cholmod.pyx", line 850, in sksparse.cholmod.Factor.__call__ (sksparse/cholmod.c:10546)
  File "sksparse/cholmod.pyx", line 846, in sksparse.cholmod.Factor.solve_A (sksparse/cholmod.c:10397)
  File "sksparse/cholmod.pyx", line 899, in sksparse.cholmod.Factor._solve (sksparse/cholmod.c:11850)
  File "sksparse/cholmod.pyx", line 924, in sksparse.cholmod.Factor._solve_dense (sksparse/cholmod.c:12350)
  File "sksparse/cholmod.pyx", line 369, in sksparse.cholmod._error_handler (sksparse/cholmod.c:4399)
CholmodInvalidError: ../Cholesky/cholmod_solve.c:1079: dimensions of L and B do not match (code -4)

======================================================================
ERROR: sksparse.test_cholmod.test_cholesky_matrix_market
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/feedstock_root/build_artefacts/recipe_root_1486080708541/_t_env/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/feedstock_root/build_artefacts/recipe_root_1486080708541/_t_env/lib/python2.7/site-packages/sksparse/test_cholmod.py", line 171, in test_cholesky_matrix_market
    assert_allclose(cholesky(XtX, mode=mode)(Xty), answer)
  File "sksparse/cholmod.pyx", line 850, in sksparse.cholmod.Factor.__call__ (sksparse/cholmod.c:10546)
  File "sksparse/cholmod.pyx", line 846, in sksparse.cholmod.Factor.solve_A (sksparse/cholmod.c:10397)
  File "sksparse/cholmod.pyx", line 899, in sksparse.cholmod.Factor._solve (sksparse/cholmod.c:11850)
  File "sksparse/cholmod.pyx", line 924, in sksparse.cholmod.Factor._solve_dense (sksparse/cholmod.c:12350)
  File "sksparse/cholmod.pyx", line 369, in sksparse.cholmod._error_handler (sksparse/cholmod.c:4399)
CholmodInvalidError: ../Cholesky/cholmod_solve.c:1079: dimensions of L and B do not match (code -4)

solve_A fails: on (n, 1) but not (n,2)

With this setup:

import numpy as np 
from scikits.sparse import cholmod
from scipy.sparse import csc_matrix
n = 10 
m = csc_matrix(np.diag(np.ones(n)))
f = cholmod.cholesky(m)

This works fine:

shp = (n,2)
f(np.ones(shp))

But this does not

shp = (n,1)
f(np.ones(shp))

Giving the error:
CholmodError: ../Cholesky/cholmod_solve.c:979: dimensions of L and B do not match (code -4)

I'm using this git repo and numpy 1.8.0.dev-7887c16. Scipy 0.11.0b1

problem too large

When I use cholesky function, it reports "sksparse.cholmod.CholmodTooLargeError: ../Supernodal/cholmod_super_symbolic.c:686: problem too large (code -3)", I use it like this:
factorQ = cholesky(Q, ordering_method="natural")
I also tried to add the use_long=True parameter, then it starts to eat up my memory and couldn't give a result.

'nosetests scikits --all-modules' doesn't run any testcases

Following release-checklist.txt I ran

python setup.py build_ext -i && nosetests scikits --all-modules

but it says

===>   py27-scikit-sparse-0.2_1 depends on package: py27-nose>=0 - found
running build_ext
skipping 'scikits/sparse/cholmod.c' Cython extension (up-to-date)

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK

How does your Python software interact with SuiteSparse?

I would like to use it with Anaconda 3 on Windows 10. It isn't clear to me from the documentation
what your installation procedure expects in terms of the placement of SuiteSparse.. The installation
pip install scikit-sparse
fails. The file cholmod.h is not found. Clearly because I haven't placed SuiteSparse in the expected location, but I don't know what that is.

Would you please help me with that?

Thanks,
PK

thoughts for the future

TO WHOM IT MAY CONCERN (possibly @anntzer ;-))

Things that might be good ideas to do if someone picks up maintenance of this package:

  • the biggest mistake I made in the cholmod wrapper API is not making a clear distinction between the L in LDL' and LL' -- in a math textbook using the same letter for both of these is fine, and CHOLMOD's native api continues this, but I should have e.g. declared that in our API, L1 was the name for the L matrix that occurs in LDL' decompositions (where the diagonal is all-1), and Lg was the name for the LL' L with a general diagonal. This would make accessors like factor.L and methods like factor.solve_L much clearer.
  • add wrappers for UMFPACK and SPQR (see #11, and see the umfpack branch for a start towards this)
  • follow the modern convention and rename the package to sksparse (thus escaping namespace-package-hell)
  • move the package somewhere outside of my personal account (maybe scipy/ would be interested in adopting it? I dunno)
  • plus the obvious general maintenance stuff like setting up travis and readthedocs, etc.

Cholesky decomposition of unpermuted matrix

Is it possible to get the Cholesky decomposition of A rather than PAP^T? I am trying to fold this package into my project and it would be easiest if I could get a sparse representation of the same matrix returned by, for example, np.linalg.cholesky. Thank you!

Working With CHOLMOD Built from Source

This project looks amazing and good to use.
For performance reasons, I would like to use CHOLMOD compiled with MKL (Intel Math Kernel Library).
However, I encounter the problem that when importing this library

from sksparse.cholmod import *

There occurs an error saying that

"libmkl_intel_thread.so: undefined symbol: __kmpc_reduce_nowait"

My guess is that the openmp linking flag is missing somewhere, but I am not sure.
It will be great if this could be solved.

solve_Lt() does not work right

When I use the solve_Lt() to calculate L'x=b, I use the x returned to do L'x, and this does not equal to b, also when I use the dense matrix to do this calculation, the x I got from cholmod is different from the dense version. How can I get the right x?

Add UMFPACK

Now that UMFPACK is not any more used in scipy.sparse.linalg, only pysparse has easy-to-use UMFPACK wrappers. scikits.umfpack has only a very low-level interface.

So it would be useful to add UMFPACK to scikits.sparse, together with the other SuiteSparse items.

Implementation of solve_L() or solve_Lt() with LL' factorization (feature request)

Hi guys,

In the documentation you stated:

If you need an efficient implementation of solve_L() or solve_Lt() that works with the LL′LL′ factorization, then drop us a line, it’d be easy to add.

This would be the case for me. It is required if you want to use the Cholesky decomposition to sample from a multivariate Normal given the precision matrix (solve_Lt()). This is not an uncommon use case. In my case e.g., the precision matrix is pretty large and sparse.

I think it would be quite valuable to have this in the future in scikit-sparse, especially if it's not associated with a lot of work. By the way, it also would be convenient to be able to evaluate L.dot(x) with A=LL' when working with covariance matrices (although this can be done manually without great loss of efficiency as well)

Thanks for all your work and for providing an open source wrapper for CHOLMOD

mdevl

Cholesky update of A

Dear Authors,

Thanks for your work. Could you say how hard is it to add here the updating of Cholesky of A.
This is implemented but for AA' only.

-Alex.

seg fault

So I'm using your package and it often throws a segmentation fault. It seems a little random: sometimes the same data will produce the error in one run and not in the other. However, for large matrices this happens pretty often. Not sure how to reproduce it. Any pointers?

memory limitation for the use of factor = cholesky(Matrix)

Hi,
I'm using the suite for a Chi-sq. problem which produce a large sparse matrix.
It works fine with 7M (parameters) in a few min.
It dies (without comments) when passing to 49 M, after running ~ 10 h on my machine.
The memory is not a problem as I have 1.5 TB of RAM and I didn't see more than 16% of it used during run time.
The exact values are :
dim(49024185, 49024185)
number of non zero values = 1,237,581,215
My project deals with stars observed by a very large survey, so I would ultimately need to process ~ 500 M stars.
What is the limit of the scikit-sparse suite and do you have suggestions to overcome this problem ?
Regards,
Fabrice Feinstein

CholmodNotPositiveDefiniteError inconsistent

I am trying to use the cholesky decomposition to invert a sparse matrix and I found this great package to help me on my problem.
My issue is that I keep getting CholmodNotPositiveDefiniteError although I verified with the eigenvalues that my matrix is positive and I tried adding small positive diagonal matrix but it didn't work. Here's my notebook

Could you please help me on this ?
Screenshot 2020-07-08 at 11 28 29

Numerical inconsistency between scikit-sparse and numpy Cholesky's

I'm writing code to generate samples from a multivariate normal distribution using the Cholesky of the corresponding covariance matrix.
However, the Cholesky's of my matrices, calculated using scikit-sparse, are incorrect, although simple checks show that the covariance matrices are both symmetric and positive-definite.

I've created a working example that generates such a covariance matrix, shows that it is symmetric and positive-definite, and then calculates the Cholesky using both scikit-sparse and numpy. The numpy version is correct; the scikit-sparse version unfortunately isn't.

import numpy, sys
from scipy import sparse
from scipy.spatial.distance import pdist, squareform
from sksparse import cholmod
from matplotlib import pyplot

mapHeight              = 16
mapWidth               = 32
sigma                  = .1
thresholdSparsity      = 1e-8
numericalStabilisation = 1e-6


# Generate matrix.
mapXs, mapYs           = numpy.meshgrid(numpy.linspace(0, 2, num = mapWidth, endpoint = True), numpy.linspace(0, 1, num = mapHeight, endpoint = True))
distances              = squareform(pdist(numpy.stack((mapXs.flatten(), mapYs.flatten())).T))
# Calculate covariance matrix.
#A                      = numpy.square(numpy.maximum(1 - distances / sigma, 0)) # piece-wise polynomial kernel (which is sparse by design)
A                      = numpy.exp(-1 / 2 * numpy.square(distances / sigma)) # squared exponential kernel
# Sparsify covariance matrix.
A                      = A * (A > thresholdSparsity)
# Stabilise covariance matrix.
numpy.fill_diagonal(A, 1 + numericalStabilisation)


# Choose a simpler matrix:
#A                      = numpy.array([[4.0, 0.0], [0.0, 9.0]])
#A                      = numpy.array([[4.0, 0.0, 1.0], [0.0, 16.0, 0.0], [1.0, 0.0, 4.0]])


# Verify symmetry and positive-definiteness.
if (numpy.array_equal(A, A.T)):
    print("A is symmetric!")
else:
    print("A is not symmetric!")
    sys.exit()
if (numpy.all(numpy.linalg.eigvals(A) > 0)):
    print ("A is not only symmetric, but also positive-definite!")
else:
    print("A is symmetric, but not positive-definite!")
    sys.exit()


# Generate a sparse version of A.
A_CSC                  = sparse.csc_matrix(A)
factor                 = cholmod.cholesky(A_CSC)
cholesky1              = factor.L().toarray()[factor.P()[:, numpy.newaxis], factor.P()[numpy.newaxis, :]]
cholesky2              = numpy.linalg.cholesky(A)


print("original matrix:\n", A)
print("scikit cholesky:\n", cholesky1)
print("numpy cholesky:\n",  cholesky2)

print("maximum absolute difference:",             numpy.amax(numpy.abs(cholesky1 - cholesky2)))
print("scikit cholesky accuracy (0 is perfect):", numpy.amax(numpy.abs(numpy.dot(cholesky1, cholesky1.T) - A)))
print("numpy cholesky accuracy (0 is perfect):",  numpy.amax(numpy.abs(numpy.dot(cholesky2, cholesky2.T) - A)))

print("elements in matrix:", A.shape[0] * A.shape[1])
print("non-zero elements in sparse rep:", A_CSC.nnz)


pyplot.imshow(cholesky1)
pyplot.title("Cholesky (scikit)")
pyplot.show()
pyplot.imshow(cholesky2)
pyplot.title("Cholesky (numpy)")
pyplot.show()

I have included two other small matrices A, for which the Cholesky's are the same. Activate one by removing the appropriate #. Curiously, the problem also persists if I use a kernel for the covariance matrix which makes it sparse by design.

Any ideas? Many thanks!
Martijn

Wrappers license?

I'm curious what makes this BSD-incompatible. You're not shipping any of the CHOLMOD source right? How is this different from scipy.sparse.linalg.umfpack? I'm sure you know better than I, so I'm just wondering.

I've started needing things in SuiteSparse for my own work, and I'm using the LU decomposition from scipy. Having Cholesky in the same place would be nice.

Adapt package to work with SciPy's 'LinearOperator' interface

First off, thanks for the package, it works very well.

SciPy seems to be moving towards accepting a multitude of inputs for it's various sparse routines, including now (sparse) LinearOperator's, which is a more abstract interface that supports sparse matrix-vector multiplication.

It would be nice if this package could be adapted to work with sparse linear operators as well as the given scipy sparse matrices.

Some context: I have a problem where I need to solve (A + cI)x=b many times very quickly, where A is sparse, has a constant sparsity pattern, and is highly structured. In fact, A is so highly structured that I can perform matrix-vector multiplication in a very efficient/vectorized way, and in O(1) memory---without constructing the matrix explicitly. It would be great if I could write my own matrix-vector multiplication code in C++ and wrap it as a callable/LinearOperator LA to pass to e.g. factor.cholesky_AAt(LA, beta=...)

There is a "Process finished with exit code -1073741819 (0xC0000005)"

I create a symmetric and positive matrix by
AA= spa.random(300, 300, density=0.01, format='csc')
AA= AA.dot(AA.T) + spa.identity(300)
and then I use order cholesky(AA) to factor AA, but there is a error remind "Process finished with exit code -1073741819 (0xC0000005)", but if I set density into 0.001, there is no error, but I set a dimension as 1000x1000, there is a "Process finished with exit code -1073741819 (0xC0000005)" again, the code is
np.random.seed(125) AA= spa.random(300, 300, density=0.01, format='csc') AA= AA.dot(AA.T) + spa.identity(300) factor = cholesky(AA)
If anyone know this error, could you please tell me the reason?

scikits.sparse installation(or build) fails on windows and anaconda (spyder)

Hello,

I have been trying to install scikits.sparse module in python. I feel that the module I obtained needs compilation. I guessed the same as it doesn't contain .py files, instead there is a cholmod.c and a cholmod.pyx file in the sparse directory. I attempted to do this in 2 ways,
One from Spyder, by first adding the module path to PYTHONPATH manager and then including the following lines in the program
import pyximport
pyximport.install()
from scikits.sparse.cholmod import cholesky
This gave me the error
ImportError: Building module scikits.sparse.cholmod failed: ["distutils.errors.CompileError: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2\n"]
Second directly in Python 3.6,
I installed Microsoft Visual C++ build tools 14.0 (from Visual Studio 2015), which looked like completed installation, but the final status said, It may not have installed properly.
Then I updated pip, installed cython, scipy and some other dependency of scikits.sparse then on attempting installation like th following,
python e:\python\scikits.sparse-0.2\setup.py install
from command prompt returned an error,
Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2
Is there anyway to compile and build scikits.sparse in windows?
Alternatively, is it possible to compile it in a Linux system to a .whl and then install it easily in windows?
I have downloaded the package from https://pypi.python.org/pypi/scikits.sparse

Thanks in advance.
Libni Thomas

Support GPU?

It seems that CHOLMOD and SuiteSparse are sponsored by Nvidia and the C++ version supports Nvidia GPU. So is it possible to support on-gpu sprase matrices provided by CuPy natively in scikit-sparse.

xx

I downloaded the repo manually and added to site-packages (windows).
"import sksparse" works fine.
"from sksparse.cholmod import cholesky" throws the error:

ImportError: Building module sksparse.cholmod failed: ["distutils.errors.CompileError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2\n"]

I have already run these commands for pyx files:
import pyximport
pyximport.install()

Bug after update

Hi,

This bug only affects one of my computers, but it now occurs with a co-author of mine after they updated their version of anaconda.

I am using Ubuntu 14.04 (on both the computer that shows this issue, and two others that don't)
My colleague uses OSX.

A simple example of code that produces the bug is as follows:

`
import numpy as np
from cholmod import cholesky
from scipy.sparse import csc_matrix

np.set_printoptions(precision = 3)

#Construct sparse matrix
A = np.eye(5) * 3
A[:, 4] = 1.
A[4, :] = 1.
A[4, 4] = 3

#Compressed sparse column format
spA = csc_matrix(A)

#Compute cholesky decomposition
factor = cholesky(spA)

#Solve equation
x = np.ones(spA.shape[0])
print factor(x)
The output from the code is as follows: python sparsechol.py /usr/lib/python2.7/dist-packages/scipy/sparse/coo.py:182: VisibleDeprecationWarning:rankis deprecated; use thendimattribute or function instead. To find the rank of a matrix seenumpy.linalg.matrix_rank. if np.rank(M) != 2: /usr/lib/python2.7/dist-packages/scipy/sparse/coo.py:200: VisibleDeprecationWarning: rankis deprecated; use thendimattribute or function instead. To find the rank of a matrix seenumpy.linalg.matrix_rank. if np.rank(self.data) != 1 or np.rank(self.row) != 1 or np.rank(self.col) != 1: /usr/lib/python2.7/dist-packages/scipy/sparse/compressed.py:130: VisibleDeprecationWarning: rankis deprecated; use thendimattribute or function instead. To find the rank of a matrix seenumpy.linalg.matrix_rank`.
if np.rank(self.data) != 1 or np.rank(self.indices) != 1 or np.rank(self.indptr) != 1:
Traceback (most recent call last):
File "sparsechol.py", line 18, in
print factor(x)
File "cholmod.pyx", line 692, in cholmod.Factor.call (Src/cholmod.c:7367)
File "cholmod.pyx", line 688, in cholmod.Factor.solve_A (Src/cholmod.c:7248)
File "cholmod.pyx", line 751, in cholmod.Factor._solve (Src/cholmod.c:8452)
File "cholmod.pyx", line 769, in cholmod.Factor._solve_dense (Src/cholmod.c:8833)
File "cholmod.pyx", line 292, in cholmod._error_handler (Src/cholmod.c:2925)
cholmod.CholmodError: ../Cholesky/cholmod_solve.c:1082: dimensions of L and B do not match (code -4)

Any help in resolving this issue would be greatly appreciated.

Chris.

python 3.7.1 "ValueError: Cannot set the NumPy array 'base' dependency more than once"

5 of 10 nosetests fail with the error "ValueError: Cannot set the NumPy array 'base' dependency more than once" on python 3.7.1 but all 10 nosetests pass on python 3.7.0 (details about my installation below).

I'm hoping you can point me the right direction to figure out whats wrong with the python 3.7.1 install...

From a jupyter qt console:
Jupyter QtConsole 4.4.2
Python 3.7.1 (default, Oct 30 2018, 10:29:01)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.1.1 -- An enhanced Interactive Python. Type '?' for help.

import numpy as np

from sksparse.cholmod import cholesky

from scipy import sparse

f = cholesky(sparse.eye(10, 10))
/home/ul/.pyenv/versions/3.7.1/envs/p371.ob/lib/python3.7/site-packages/ipykernel_launcher.py:1: CholmodTypeConversionWarning: converting matrix of class dia_matrix to CSC format
"""Entry point for launching an IPython kernel.

d = np.arange(20).reshape(10, 2)

f(d)

ValueError Traceback (most recent call last)
ValueError: Cannot set the NumPy array 'base' dependency more than once

The above exception was the direct cause of the following exception:

SystemError Traceback (most recent call last)
in
----> 1 f(d)

SystemError: <sksparse.cholmod.Factor object at 0x7fd3d70f8fd0> returned a result with an error set

--
Installation details:
The python 3.7.0 and 3.7.1 installations are installed in a pyenv virtualenv in a similar fashion.

OS: Ubuntu 18.04.1 LTS, 4.15.0-38-generic

Both pythons built with
CONFIGURE_OPTS=--enable-shared CFLAGS='-O3 -march=native' pyenv install 3.7.1 (or 3.7.0)

(p371.ob) [85] $ pip list | grep -E "numpy|scipy|Cython|scikit-sparse"
Cython 0.29
numpy 1.15.3
numpydoc 0.8.0
scikit-sparse 0.4.3
scipy 1.1.0

(p370.ob) [48] $ pip list | grep -E "numpy|scipy|Cython|scikit-sparse"
Cython 0.29
numpy 1.15.3
numpydoc 0.8.0
scikit-sparse 0.4.3
scipy 1.1.0

scikit-sparse for both python version built with:
pip install --install-option=build_ext --install-option="-I~/local/include/suitesparse-5.3.0.ob" --install-option="-L~/local/lib/suitesparse-5.3.0.ob" scikit-sparse

The suitesparse library (version 5.3.0) is the same for both installs.

Any help appreciated...

Windows builds

@njsmith

I'm trying to build the package on Windows as well. suitesparse itself is available on a custom conda channel (https://anaconda.org/menpo/suitesparse), so I installed it and tried to point the header and library paths to the correct location (conda-installs branch), but the linking step fails with a bunch of

libcholmod.lib(SuiteSparse_config.obj) error LNK2001: unresolved external symbol printf
libcholmod.lib(SuiteSparse_config.obj) error LNK2019: unresolved external symbol __imp_printf referenced in function SuiteSparse_start
<etc.>

(other missing functions include lapack's dgemm and friends).

Do you have any experience with this kind of issues?

Installation on CentOS / Fedora

Unfortunately the libsuitesparse-dev package is not available as a rpm distribution. Thus the CHOLMOD library have to be installed manualy, which leads to lots of specification bugs.
After installing the whole SuiteSparse with make and make install (plus all the dependencies) and modifying the setup.py file to get include the CHOLMOD installation.

Here is my setup.py modification:
Extension("scikits.sparse.cholmod",
["scikits/sparse/cholmod.pyx"],
libraries=["cholmod"],
include_dirs=get_numpy_include_dirs().append("/usr/local/include"),
library_dirs=["/usr/local/include"],
),

and here is the error log I get:

running install
running bdist_egg
running egg_info
writing requirements to scikits.sparse.egg-info/requires.txt
writing scikits.sparse.egg-info/PKG-INFO
writing namespace_packages to scikits.sparse.egg-info/namespace_packages.txt
writing top-level names to scikits.sparse.egg-info/top_level.txt
writing dependency_links to scikits.sparse.egg-info/dependency_links.txt
reading manifest file 'scikits.sparse.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'doc/build'
warning: no previously-included files matching '
~' found anywhere in distribution
warning: no previously-included files matching '_.so' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'scikits.sparse.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
skipping 'scikits/sparse/cholmod.c' Cython extension (up-to-date)
building 'scikits.sparse.cholmod' extension
C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

compile options: '-I/usr/local/include/python2.7 -c'
gcc: scikits/sparse/cholmod.c
scikits/sparse/cholmod.c:317:33: error: suitesparse/cholmod.h: No such file or directory
scikits/sparse/cholmod.c:778: error: expected specifier-qualifier-list before ‘cholmod_sparse’
scikits/sparse/cholmod.c:793: error: expected specifier-qualifier-list before ‘cholmod_common’
scikits/sparse/cholmod.c:808: error: expected specifier-qualifier-list before ‘cholmod_dense’
scikits/sparse/cholmod.c:823: error: expected specifier-qualifier-list before ‘cholmod_factor’
scikits/sparse/cholmod.c:838: error: expected declaration specifiers or ‘...’ before ‘cholmod_sparse’
scikits/sparse/cholmod.c:839: error: expected declaration specifiers or ‘...’ before ‘cholmod_dense’
scikits/sparse/cholmod.c:1271: error: expected ‘)’ before ‘’ token
scikits/sparse/cholmod.c:1272: error: expected ‘)’ before ‘
’ token
scikits/sparse/cholmod.c: In function ‘pyx_f_7scikits_6sparse_7cholmod__np_dtype_for’:
scikits/sparse/cholmod.c:1903: error: ‘CHOLMOD_COMPLEX’ undeclared (first use in this function)
scikits/sparse/cholmod.c:1903: error: (Each undeclared identifier is reported only once
scikits/sparse/cholmod.c:1903: error: for each function it appears in.)
scikits/sparse/cholmod.c:1938: error: ‘CHOLMOD_REAL’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_14_SparseCleanup___dealloc
’:
scikits/sparse/cholmod.c:2026: warning: implicit declaration of function ‘cholmod_free_sparse’
scikits/sparse/cholmod.c:2026: error: ‘struct pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_sparse’
scikits/sparse/cholmod.c:2026: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: At top level:
scikits/sparse/cholmod.c:2043: error: expected ‘)’ before ‘*’ token
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_13_DenseCleanup___dealloc
’:
scikits/sparse/cholmod.c:2409: warning: implicit declaration of function ‘cholmod_free_dense’
scikits/sparse/cholmod.c:2409: error: ‘struct pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_dense’
scikits/sparse/cholmod.c:2409: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: At top level:
scikits/sparse/cholmod.c:2426: error: expected ‘)’ before ‘*’ token
scikits/sparse/cholmod.c: In function ‘__pyx_f_7scikits_6sparse_7cholmod__error_handler’:
scikits/sparse/cholmod.c:2617: error: ‘CHOLMOD_OK’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Common___cinit
’:
scikits/sparse/cholmod.c:2815: error: ‘struct pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_complex’
scikits/sparse/cholmod.c:2824: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_complex’
scikits/sparse/cholmod.c:2834: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_xtype’
scikits/sparse/cholmod.c:2834: error: ‘CHOLMOD_COMPLEX’ undeclared (first use in this function)
scikits/sparse/cholmod.c:2846: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_xtype’
scikits/sparse/cholmod.c:2846: error: ‘CHOLMOD_REAL’ undeclared (first use in this function)
scikits/sparse/cholmod.c:2857: warning: implicit declaration of function ‘cholmod_start’
scikits/sparse/cholmod.c:2857: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:2866: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:2875: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Common_2__dealloc
’:
scikits/sparse/cholmod.c:2919: warning: implicit declaration of function ‘cholmod_finish’
scikits/sparse/cholmod.c:2919: error: ‘struct pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Common_4_print’:
scikits/sparse/cholmod.c:2966: warning: implicit declaration of function ‘cholmod_check_common’
scikits/sparse/cholmod.c:2966: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:2993: warning: implicit declaration of function ‘cholmod_print_common’
scikits/sparse/cholmod.c:2993: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Common_6_print_sparse’:
scikits/sparse/cholmod.c:3090: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3090: error: ‘__pyx_v_m’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3109: error: too many arguments to function ‘__pyx_v_self->__pyx_vtab->_view_sparse’
scikits/sparse/cholmod.c:3121: warning: implicit declaration of function ‘cholmod_check_sparse’
scikits/sparse/cholmod.c:3121: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:3136: warning: implicit declaration of function ‘cholmod_print_sparse’
scikits/sparse/cholmod.c:3136: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Common_8_print_dense’:
scikits/sparse/cholmod.c:3224: error: ‘cholmod_dense’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3224: error: ‘__pyx_v_m’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3244: error: too many arguments to function ‘__pyx_v_self->__pyx_vtab->_view_dense’
scikits/sparse/cholmod.c:3256: warning: implicit declaration of function ‘cholmod_check_dense’
scikits/sparse/cholmod.c:3256: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:3271: warning: implicit declaration of function ‘cholmod_print_dense’
scikits/sparse/cholmod.c:3271: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_f_7scikits_6sparse_7cholmod_6Common__cast’:
scikits/sparse/cholmod.c:3370: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_complex’
scikits/sparse/cholmod.c: At top level:
scikits/sparse/cholmod.c:3504: error: expected declaration specifiers or ‘...’ before ‘cholmod_sparse’
scikits/sparse/cholmod.c: In function ‘__pyx_f_7scikits_6sparse_7cholmod_6Common__view_sparse’:
scikits/sparse/cholmod.c:3508: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3508: error: ‘__pyx_v_out’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3749: error: expected expression before ‘)’ token
scikits/sparse/cholmod.c:3915: error: ‘CHOLMOD_INT’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3924: error: ‘CHOLMOD_DOUBLE’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3933: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_xtype’
scikits/sparse/cholmod.c:3961: error: ‘__pyx_v_outp’ undeclared (first use in this function)
scikits/sparse/cholmod.c: At top level:
scikits/sparse/cholmod.c:4084: error: expected declaration specifiers or ‘...’ before ‘cholmod_dense’
scikits/sparse/cholmod.c: In function ‘__pyx_f_7scikits_6sparse_7cholmod_6Common__view_dense’:
scikits/sparse/cholmod.c:4085: error: ‘cholmod_dense’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4085: error: ‘__pyx_v_out’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4156: error: expected expression before ‘)’ token
scikits/sparse/cholmod.c:4239: error: ‘CHOLMOD_DOUBLE’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4248: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_xtype’
scikits/sparse/cholmod.c:4258: error: ‘__pyx_v_outp’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_2__dealloc
’:
scikits/sparse/cholmod.c:4496: warning: implicit declaration of function ‘cholmod_free_factor’
scikits/sparse/cholmod.c:4496: error: ‘struct pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:4496: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_8_cholesky_inplace’:
scikits/sparse/cholmod.c:4850: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4850: error: ‘__pyx_v_c_A’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4871: error: too many arguments to function ‘__pyx_v_self->_common->__pyx_vtab->_view_sparse’
scikits/sparse/cholmod.c:4902: warning: implicit declaration of function ‘cholmod_factorize_p’
scikits/sparse/cholmod.c:4902: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:4902: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:4911: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:4911: error: ‘CHOLMOD_NOT_POSDEF’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_10_clone’:
scikits/sparse/cholmod.c:4963: error: ‘cholmod_factor’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4963: error: ‘__pyx_v_c_clone’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4967: error: ‘__pyx_t_1’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4982: warning: implicit declaration of function ‘cholmod_copy_factor’
scikits/sparse/cholmod.c:4982: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:4982: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:5039: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_16update_inplace’:
scikits/sparse/cholmod.c:5444: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5444: error: ‘__pyx_v_c_C’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5446: error: ‘__pyx_v_C_perm’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5451: error: ‘__pyx_t_3’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5471: error: too many arguments to function ‘__pyx_v_self->_common->__pyx_vtab->_view_sparse’
scikits/sparse/cholmod.c:5484: warning: implicit declaration of function ‘cholmod_submatrix’
scikits/sparse/cholmod.c:5484: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5484: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5484: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:5522: warning: implicit declaration of function ‘cholmod_updown’
scikits/sparse/cholmod.c:5522: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5522: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:5553: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_18P’:
scikits/sparse/cholmod.c:5642: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5669: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5669: error: ‘CHOLMOD_INT’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5694: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5724: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_20_ensure_L_or_LD_inplace’:
scikits/sparse/cholmod.c:5797: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5836: warning: implicit declaration of function ‘cholmod_change_factor’
scikits/sparse/cholmod.c:5836: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5836: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5836: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5836: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:5846: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_22_L_or_LD’:
scikits/sparse/cholmod.c:5897: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5897: error: ‘__pyx_v_l’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5903: error: ‘__pyx_t_4’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5952: warning: implicit declaration of function ‘cholmod_factor_to_sparse’
scikits/sparse/cholmod.c:5952: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5952: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:5979: warning: implicit declaration of function ‘__pyx_f_7scikits_6sparse_7cholmod__py_sparse’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_32solve_A’:
scikits/sparse/cholmod.c:6430: error: ‘CHOLMOD_A’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_36solve_LDLt’:
scikits/sparse/cholmod.c:6613: error: ‘CHOLMOD_LDLt’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_38solve_LD’:
scikits/sparse/cholmod.c:6708: error: ‘CHOLMOD_LD’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_40solve_DLt’:
scikits/sparse/cholmod.c:6803: error: ‘CHOLMOD_DLt’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_42solve_L’:
scikits/sparse/cholmod.c:6898: error: ‘CHOLMOD_L’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_44solve_Lt’:
scikits/sparse/cholmod.c:6993: error: ‘CHOLMOD_Lt’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_46solve_D’:
scikits/sparse/cholmod.c:7066: error: ‘CHOLMOD_D’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_48solve_P’:
scikits/sparse/cholmod.c:7139: error: ‘CHOLMOD_P’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_50solve_Pt’:
scikits/sparse/cholmod.c:7212: error: ‘CHOLMOD_Pt’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_54_solve_sparse’:
scikits/sparse/cholmod.c:7487: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7487: error: ‘__pyx_v_c_b’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7489: error: ‘__pyx_v_out’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7495: error: ‘__pyx_t_4’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7510: error: too many arguments to function ‘__pyx_v_self->_common->__pyx_vtab->_view_sparse’
scikits/sparse/cholmod.c:7532: warning: implicit declaration of function ‘cholmod_spsolve’
scikits/sparse/cholmod.c:7532: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:7532: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_56_solve_dense’:
scikits/sparse/cholmod.c:7634: error: ‘cholmod_dense’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7634: error: ‘__pyx_v_c_b’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7636: error: ‘__pyx_v_out’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7644: error: ‘__pyx_t_6’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7729: error: too many arguments to function ‘__pyx_v_self->_common->__pyx_vtab->_view_dense’
scikits/sparse/cholmod.c:7750: warning: implicit declaration of function ‘cholmod_solve’
scikits/sparse/cholmod.c:7750: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:7750: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:7763: warning: implicit declaration of function ‘__pyx_f_7scikits_6sparse_7cholmod__py_dense’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_4_analyze’:
scikits/sparse/cholmod.c:8162: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:8162: error: ‘__pyx_v_c_A’ undeclared (first use in this function)
scikits/sparse/cholmod.c:8164: error: ‘cholmod_factor’ undeclared (first use in this function)
scikits/sparse/cholmod.c:8164: error: ‘__pyx_v_c_f’ undeclared (first use in this function)
scikits/sparse/cholmod.c:8175: error: ‘__pyx_t_8’ undeclared (first use in this function)
scikits/sparse/cholmod.c:8221: error: too many arguments to function ‘__pyx_v_common->__pyx_vtab->_view_sparse’
scikits/sparse/cholmod.c:8254: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:8320: warning: implicit declaration of function ‘cholmod_analyze’
scikits/sparse/cholmod.c:8320: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:8387: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_new_7scikits_6sparse_7cholmod__SparseCleanup’:
scikits/sparse/cholmod.c:10844: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_dealloc_7scikits_6sparse_7cholmod__SparseCleanup’:
scikits/sparse/cholmod.c:10860: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:10860: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:10860: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_traverse_7scikits_6sparse_7cholmod__SparseCleanup’:
scikits/sparse/cholmod.c:10867: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:10868: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_clear_7scikits_6sparse_7cholmod__SparseCleanup’:
scikits/sparse/cholmod.c:10876: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:10877: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_new_7scikits_6sparse_7cholmod__DenseCleanup’:
scikits/sparse/cholmod.c:11038: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_dealloc_7scikits_6sparse_7cholmod__DenseCleanup’:
scikits/sparse/cholmod.c:11054: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:11054: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:11054: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_traverse_7scikits_6sparse_7cholmod__DenseCleanup’:
scikits/sparse/cholmod.c:11061: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:11062: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_clear_7scikits_6sparse_7cholmod__DenseCleanup’:
scikits/sparse/cholmod.c:11070: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘common’
scikits/sparse/cholmod.c:11071: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘common’
scikits/sparse/cholmod.c: In function ‘initcholmod’:
scikits/sparse/cholmod.c:11695: error: expected declaration specifiers or ‘...’ before ‘cholmod_sparse’
scikits/sparse/cholmod.c:11696: error: expected declaration specifiers or ‘...’ before ‘cholmod_dense’
scikits/sparse/cholmod.c:12070: error: ‘CHOLMOD_SIMPLICIAL’ undeclared (first use in this function)
scikits/sparse/cholmod.c:12082: error: ‘CHOLMOD_SUPERNODAL’ undeclared (first use in this function)
scikits/sparse/cholmod.c:12094: error: ‘CHOLMOD_AUTO’ undeclared (first use in this function)
scikits/sparse/cholmod.c:317:33: error: suitesparse/cholmod.h: No such file or directory
scikits/sparse/cholmod.c:778: error: expected specifier-qualifier-list before ‘cholmod_sparse’
scikits/sparse/cholmod.c:793: error: expected specifier-qualifier-list before ‘cholmod_common’
scikits/sparse/cholmod.c:808: error: expected specifier-qualifier-list before ‘cholmod_dense’
scikits/sparse/cholmod.c:823: error: expected specifier-qualifier-list before ‘cholmod_factor’
scikits/sparse/cholmod.c:838: error: expected declaration specifiers or ‘...’ before ‘cholmod_sparse’
scikits/sparse/cholmod.c:839: error: expected declaration specifiers or ‘...’ before ‘cholmod_dense’
scikits/sparse/cholmod.c:1271: error: expected ‘)’ before ‘
’ token
scikits/sparse/cholmod.c:1272: error: expected ‘)’ before ‘
’ token
scikits/sparse/cholmod.c: In function ‘__pyx_f_7scikits_6sparse_7cholmod__np_dtype_for’:
scikits/sparse/cholmod.c:1903: error: ‘CHOLMOD_COMPLEX’ undeclared (first use in this function)
scikits/sparse/cholmod.c:1903: error: (Each undeclared identifier is reported only once
scikits/sparse/cholmod.c:1903: error: for each function it appears in.)
scikits/sparse/cholmod.c:1938: error: ‘CHOLMOD_REAL’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_14_SparseCleanup___dealloc
’:
scikits/sparse/cholmod.c:2026: warning: implicit declaration of function ‘cholmod_free_sparse’
scikits/sparse/cholmod.c:2026: error: ‘struct pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_sparse’
scikits/sparse/cholmod.c:2026: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: At top level:
scikits/sparse/cholmod.c:2043: error: expected ‘)’ before ‘*’ token
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_13_DenseCleanup___dealloc
’:
scikits/sparse/cholmod.c:2409: warning: implicit declaration of function ‘cholmod_free_dense’
scikits/sparse/cholmod.c:2409: error: ‘struct pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_dense’
scikits/sparse/cholmod.c:2409: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: At top level:
scikits/sparse/cholmod.c:2426: error: expected ‘)’ before ‘*’ token
scikits/sparse/cholmod.c: In function ‘__pyx_f_7scikits_6sparse_7cholmod__error_handler’:
scikits/sparse/cholmod.c:2617: error: ‘CHOLMOD_OK’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Common___cinit
’:
scikits/sparse/cholmod.c:2815: error: ‘struct pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_complex’
scikits/sparse/cholmod.c:2824: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_complex’
scikits/sparse/cholmod.c:2834: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_xtype’
scikits/sparse/cholmod.c:2834: error: ‘CHOLMOD_COMPLEX’ undeclared (first use in this function)
scikits/sparse/cholmod.c:2846: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_xtype’
scikits/sparse/cholmod.c:2846: error: ‘CHOLMOD_REAL’ undeclared (first use in this function)
scikits/sparse/cholmod.c:2857: warning: implicit declaration of function ‘cholmod_start’
scikits/sparse/cholmod.c:2857: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:2866: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:2875: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Common_2__dealloc
’:
scikits/sparse/cholmod.c:2919: warning: implicit declaration of function ‘cholmod_finish’
scikits/sparse/cholmod.c:2919: error: ‘struct pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Common_4_print’:
scikits/sparse/cholmod.c:2966: warning: implicit declaration of function ‘cholmod_check_common’
scikits/sparse/cholmod.c:2966: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:2993: warning: implicit declaration of function ‘cholmod_print_common’
scikits/sparse/cholmod.c:2993: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Common_6_print_sparse’:
scikits/sparse/cholmod.c:3090: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3090: error: ‘__pyx_v_m’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3109: error: too many arguments to function ‘__pyx_v_self->__pyx_vtab->_view_sparse’
scikits/sparse/cholmod.c:3121: warning: implicit declaration of function ‘cholmod_check_sparse’
scikits/sparse/cholmod.c:3121: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:3136: warning: implicit declaration of function ‘cholmod_print_sparse’
scikits/sparse/cholmod.c:3136: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Common_8_print_dense’:
scikits/sparse/cholmod.c:3224: error: ‘cholmod_dense’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3224: error: ‘__pyx_v_m’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3244: error: too many arguments to function ‘__pyx_v_self->__pyx_vtab->_view_dense’
scikits/sparse/cholmod.c:3256: warning: implicit declaration of function ‘cholmod_check_dense’
scikits/sparse/cholmod.c:3256: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:3271: warning: implicit declaration of function ‘cholmod_print_dense’
scikits/sparse/cholmod.c:3271: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_f_7scikits_6sparse_7cholmod_6Common__cast’:
scikits/sparse/cholmod.c:3370: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_complex’
scikits/sparse/cholmod.c: At top level:
scikits/sparse/cholmod.c:3504: error: expected declaration specifiers or ‘...’ before ‘cholmod_sparse’
scikits/sparse/cholmod.c: In function ‘__pyx_f_7scikits_6sparse_7cholmod_6Common__view_sparse’:
scikits/sparse/cholmod.c:3508: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3508: error: ‘__pyx_v_out’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3749: error: expected expression before ‘)’ token
scikits/sparse/cholmod.c:3915: error: ‘CHOLMOD_INT’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3924: error: ‘CHOLMOD_DOUBLE’ undeclared (first use in this function)
scikits/sparse/cholmod.c:3933: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_xtype’
scikits/sparse/cholmod.c:3961: error: ‘__pyx_v_outp’ undeclared (first use in this function)
scikits/sparse/cholmod.c: At top level:
scikits/sparse/cholmod.c:4084: error: expected declaration specifiers or ‘...’ before ‘cholmod_dense’
scikits/sparse/cholmod.c: In function ‘__pyx_f_7scikits_6sparse_7cholmod_6Common__view_dense’:
scikits/sparse/cholmod.c:4085: error: ‘cholmod_dense’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4085: error: ‘__pyx_v_out’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4156: error: expected expression before ‘)’ token
scikits/sparse/cholmod.c:4239: error: ‘CHOLMOD_DOUBLE’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4248: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_xtype’
scikits/sparse/cholmod.c:4258: error: ‘__pyx_v_outp’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_2__dealloc
’:
scikits/sparse/cholmod.c:4496: warning: implicit declaration of function ‘cholmod_free_factor’
scikits/sparse/cholmod.c:4496: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:4496: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_8_cholesky_inplace’:
scikits/sparse/cholmod.c:4850: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4850: error: ‘__pyx_v_c_A’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4871: error: too many arguments to function ‘__pyx_v_self->_common->__pyx_vtab->_view_sparse’
scikits/sparse/cholmod.c:4902: warning: implicit declaration of function ‘cholmod_factorize_p’
scikits/sparse/cholmod.c:4902: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:4902: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:4911: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:4911: error: ‘CHOLMOD_NOT_POSDEF’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_10_clone’:
scikits/sparse/cholmod.c:4963: error: ‘cholmod_factor’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4963: error: ‘__pyx_v_c_clone’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4967: error: ‘__pyx_t_1’ undeclared (first use in this function)
scikits/sparse/cholmod.c:4982: warning: implicit declaration of function ‘cholmod_copy_factor’
scikits/sparse/cholmod.c:4982: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:4982: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:5039: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_16update_inplace’:
scikits/sparse/cholmod.c:5444: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5444: error: ‘__pyx_v_c_C’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5446: error: ‘__pyx_v_C_perm’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5451: error: ‘__pyx_t_3’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5471: error: too many arguments to function ‘__pyx_v_self->_common->__pyx_vtab->_view_sparse’
scikits/sparse/cholmod.c:5484: warning: implicit declaration of function ‘cholmod_submatrix’
scikits/sparse/cholmod.c:5484: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5484: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5484: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:5522: warning: implicit declaration of function ‘cholmod_updown’
scikits/sparse/cholmod.c:5522: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5522: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:5553: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_18P’:
scikits/sparse/cholmod.c:5642: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5669: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5669: error: ‘CHOLMOD_INT’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5694: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5724: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_20_ensure_L_or_LD_inplace’:
scikits/sparse/cholmod.c:5797: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5836: warning: implicit declaration of function ‘cholmod_change_factor’
scikits/sparse/cholmod.c:5836: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5836: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5836: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5836: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:5846: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_22_L_or_LD’:
scikits/sparse/cholmod.c:5897: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5897: error: ‘__pyx_v_l’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5903: error: ‘__pyx_t_4’ undeclared (first use in this function)
scikits/sparse/cholmod.c:5952: warning: implicit declaration of function ‘cholmod_factor_to_sparse’
scikits/sparse/cholmod.c:5952: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:5952: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:5979: warning: implicit declaration of function ‘__pyx_f_7scikits_6sparse_7cholmod__py_sparse’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_32solve_A’:
scikits/sparse/cholmod.c:6430: error: ‘CHOLMOD_A’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_36solve_LDLt’:
scikits/sparse/cholmod.c:6613: error: ‘CHOLMOD_LDLt’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_38solve_LD’:
scikits/sparse/cholmod.c:6708: error: ‘CHOLMOD_LD’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_40solve_DLt’:
scikits/sparse/cholmod.c:6803: error: ‘CHOLMOD_DLt’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_42solve_L’:
scikits/sparse/cholmod.c:6898: error: ‘CHOLMOD_L’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_44solve_Lt’:
scikits/sparse/cholmod.c:6993: error: ‘CHOLMOD_Lt’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_46solve_D’:
scikits/sparse/cholmod.c:7066: error: ‘CHOLMOD_D’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_48solve_P’:
scikits/sparse/cholmod.c:7139: error: ‘CHOLMOD_P’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_50solve_Pt’:
scikits/sparse/cholmod.c:7212: error: ‘CHOLMOD_Pt’ undeclared (first use in this function)
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_54_solve_sparse’:
scikits/sparse/cholmod.c:7487: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7487: error: ‘__pyx_v_c_b’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7489: error: ‘__pyx_v_out’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7495: error: ‘__pyx_t_4’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7510: error: too many arguments to function ‘__pyx_v_self->_common->__pyx_vtab->_view_sparse’
scikits/sparse/cholmod.c:7532: warning: implicit declaration of function ‘cholmod_spsolve’
scikits/sparse/cholmod.c:7532: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:7532: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_6Factor_56_solve_dense’:
scikits/sparse/cholmod.c:7634: error: ‘cholmod_dense’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7634: error: ‘__pyx_v_c_b’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7636: error: ‘__pyx_v_out’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7644: error: ‘__pyx_t_6’ undeclared (first use in this function)
scikits/sparse/cholmod.c:7729: error: too many arguments to function ‘__pyx_v_self->_common->__pyx_vtab->_view_dense’
scikits/sparse/cholmod.c:7750: warning: implicit declaration of function ‘cholmod_solve’
scikits/sparse/cholmod.c:7750: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c:7750: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:7763: warning: implicit declaration of function ‘__pyx_f_7scikits_6sparse_7cholmod__py_dense’
scikits/sparse/cholmod.c: In function ‘__pyx_pf_7scikits_6sparse_7cholmod_4_analyze’:
scikits/sparse/cholmod.c:8162: error: ‘cholmod_sparse’ undeclared (first use in this function)
scikits/sparse/cholmod.c:8162: error: ‘__pyx_v_c_A’ undeclared (first use in this function)
scikits/sparse/cholmod.c:8164: error: ‘cholmod_factor’ undeclared (first use in this function)
scikits/sparse/cholmod.c:8164: error: ‘__pyx_v_c_f’ undeclared (first use in this function)
scikits/sparse/cholmod.c:8175: error: ‘__pyx_t_8’ undeclared (first use in this function)
scikits/sparse/cholmod.c:8221: error: too many arguments to function ‘__pyx_v_common->__pyx_vtab->_view_sparse’
scikits/sparse/cholmod.c:8254: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:8320: warning: implicit declaration of function ‘cholmod_analyze’
scikits/sparse/cholmod.c:8320: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Common’ has no member named ‘_common’
scikits/sparse/cholmod.c:8387: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod_Factor’ has no member named ‘_factor’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_new_7scikits_6sparse_7cholmod__SparseCleanup’:
scikits/sparse/cholmod.c:10844: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_dealloc_7scikits_6sparse_7cholmod__SparseCleanup’:
scikits/sparse/cholmod.c:10860: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:10860: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:10860: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_traverse_7scikits_6sparse_7cholmod__SparseCleanup’:
scikits/sparse/cholmod.c:10867: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:10868: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_clear_7scikits_6sparse_7cholmod__SparseCleanup’:
scikits/sparse/cholmod.c:10876: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:10877: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__SparseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_new_7scikits_6sparse_7cholmod__DenseCleanup’:
scikits/sparse/cholmod.c:11038: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_dealloc_7scikits_6sparse_7cholmod__DenseCleanup’:
scikits/sparse/cholmod.c:11054: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:11054: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:11054: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_traverse_7scikits_6sparse_7cholmod__DenseCleanup’:
scikits/sparse/cholmod.c:11061: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:11062: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘__pyx_tp_clear_7scikits_6sparse_7cholmod__DenseCleanup’:
scikits/sparse/cholmod.c:11070: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c:11071: error: ‘struct __pyx_obj_7scikits_6sparse_7cholmod__DenseCleanup’ has no member named ‘_common’
scikits/sparse/cholmod.c: In function ‘initcholmod’:
scikits/sparse/cholmod.c:11695: error: expected declaration specifiers or ‘...’ before ‘cholmod_sparse’
scikits/sparse/cholmod.c:11696: error: expected declaration specifiers or ‘...’ before ‘cholmod_dense’
scikits/sparse/cholmod.c:12070: error: ‘CHOLMOD_SIMPLICIAL’ undeclared (first use in this function)
scikits/sparse/cholmod.c:12082: error: ‘CHOLMOD_SUPERNODAL’ undeclared (first use in this function)
scikits/sparse/cholmod.c:12094: error: ‘CHOLMOD_AUTO’ undeclared (first use in this function)

What should be done?

File permission mistake

 ~/a/scikit-sparse-0.4.4  ll                                                                                                                     Fri May 24 08:20:21 2019
total 100K
-rw------- 1 sakiiily sakiiily 1.4K May 24  2018 LICENSE.txt
-rw------- 1 sakiiily sakiiily  202 Nov  6  2018 MANIFEST.in
-rw------- 1 sakiiily sakiiily 1.1K Nov  7  2018 PKG-INFO
-rw-r----- 1 sakiiily sakiiily 3.3K May  6  2017 README.md
drwx------ 2 sakiiily sakiiily 4.0K Nov  7  2018 doc/
drwx------ 2 sakiiily sakiiily 4.0K Nov  7  2018 scikit_sparse.egg-info/
-rw-r----- 1 sakiiily sakiiily  204 Nov  7  2018 setup.cfg
-rw-r----- 1 sakiiily sakiiily 3.1K May  6  2017 setup.py
drwx------ 3 sakiiily sakiiily 4.0K Nov  7  2018 sksparse/
-rw-r----- 1 sakiiily sakiiily  63K May  6  2017 versioneer.py

PKG-INFO and scikit_sparse.egg-info/requires.txt Caused pip to install any other module error.
example:

 !  ~/acbs   staging  pip3 install -r requirements.txt --user                                                                         242ms  Fri May 24 07:00:43 2019
....
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.7/site-packages/scikit_sparse-0.4.4-py3.7.egg-info/PKG-INFO'

License file

I am trying to package scikit-sparse for openSUSE. However, there is no license file I can find, either in the github or tarball. In order for people to know how they can use your code it is really important to have a license file. Would it be possible to add one? Thank you.

computing selective inverse efficiently

Hi all,

thanks a lot for this nice package. I used it successfully, however now I would need to explicitly compute some entries of the matrix A (exactly those entries which are sparse in L). Is there a way to do this?

Thanks you very much for your help,
Manuel

Does not work under Windows

Hi, I would really like to use this work A LOT. Is it possible that you can come up with a guide for using this under a Windows environment. I have seen several other people with a similar request, and I think a guide would help many people.

Thank you in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.