Skip to main content
`Ctrl`+`K`

# SLEPc for Python

Authors:

  Lisandro Dalcin, Jose E. Roman

Contact:

  dalcinl@gmail.com, jroman@dsic.upv.es

Web Site:

  slepc/slepc

Date:

  Nov 07, 2025

Abstract

This document describes slepc4py, a Python port to the SLEPc libraries.

SLEPc is a software package for the parallel solution of large-scale eigenvalue problems. It can be used for computing eigenvalues and eigenvectors of large, sparse matrices, or matrix pairs, and also for computing singular values and vectors of a rectangular matrix.

SLEPc relies on PETSc for basic functionality such as the representation of matrices and vectors, and the solution of linear systems of equations. Thus, slepc4py must be used together with its companion petsc4py.

## Contents

- Overview
  - Features
  - Components
- Tutorial
  - Commented source of a simple example
  - Example of command-line usage
- Installation
  - Using pip or easy_install
  - Using distutils
- Citations

Python specifics

- Reference
  - slepc4py
  - slepc4py.typing
  - slepc4py.SLEPc
- slepc4py demos
  - Standard symmetric eigenproblem for the Laplacian operator in 1-D