Skip to main content
Ctrl+K
PyBaMM v25.4.2 Manual - Home PyBaMM v25.4.2 Manual - Home
  • User Guide
  • API documentation
  • Examples
  • Contributing
  • GitHub
  • Twitter
  • PyPI
  • User Guide
  • API documentation
  • Examples
  • Contributing
  • GitHub
  • Twitter
  • PyPI

Section Navigation

  • Expression Tree
    • Symbol
    • Parameter
    • Variable
    • Independent Variable
    • Scalar
    • Array
    • Matrix
    • Vector
    • State Vector
    • Binary Operators
    • Unary Operators
    • Concatenations
    • Broadcasting Operators
    • Functions
    • Input Parameter
    • Interpolant
    • Operations on expression trees
  • Models
  • Parameters
  • Geometry
  • Meshes
  • Discretisation and spatial methods
  • Solvers
  • Experiments
  • Simulation
  • Plotting
  • Utility functions
  • Callbacks
  • Citations
  • Batch Study
  • PyBaMM Data
  • API documentation
  • Expression Tree
  • Matrix

Matrix#

class pybamm.Matrix(entries: ndarray[Any, dtype[_ScalarType_co]] | list[float] | csr_matrix, name: str | None = None, domain: list[str] | str | None = None, auxiliary_domains: dict[str, str] | None = None, domains: dict[str, list[str] | str] | None = None, entries_string: str | None = None)[source]#

Node in the expression tree that holds a matrix type (e.g. numpy.array)

Extends: pybamm.expression_tree.array.Array

previous

Array

next

Vector

On this page
  • Matrix
Edit on GitHub

© Copyright 2018-2025, The PyBaMM Team.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.

Last updated on 2023-08-04.