Questions tagged [pyamg]

PyAMG is a library of Algebraic Multigrid (AMG) solvers with a convenient Python interface.

AMG is a multilevel technique for solving large-scale linear systems with optimal or near-optimal efficiency. Unlike geometric multigrid, AMG requires little or no geometric information about the underlying problem and develops a sequence of coarser grids directly from the input matrix. This feature is especially important for problems discretized on unstructured meshes and irregular grids.

External links:

3 questions
8
votes
3 answers

Error when trying to install pyamg: clang: error: no such file or directory: '“-I/.../boost_1_59_0”'

I am trying to install pyamg in my virtual environment. However, I am getting the following error. I am using mac OS. c++: pyamg/amg_core/amg_core_wrap.cxx clang: error: no such file or directory:…
MAS
  • 4,503
  • 7
  • 32
  • 55
2
votes
0 answers

I am using algebraic multigrid method to iterate a (1667,1667) matrix , the result is only two levels, why?

#-*- coding: UTF-8 -*- import numpy as np import scipy as sp from pyamg.aggregation import smoothed_aggregation_solver from scipy.sparse.linalg import cg from scipy.sparse import csr_matrix data = np.loadtxt('G:\data\chipfinal2.txt', dtype=float,…
viizaa
  • 21
  • 1
0
votes
0 answers

Pyamg don't work (No module named 'pyamg.amg_core.evolution_strength')

I want to use PyAMG (https://pyamg.readthedocs.io/en/latest/#). I install it using (pip install pyamg) I use spyder in windows. It gives error when I want to import it I run it's example: import pyamg import numpy as np A =…