manim.mobject.matrix.IntegerMatrix

class IntegerMatrix(matrix, element_to_mobject=<class 'manim.mobject.numbers.Integer'>, **kwargs)[source]

Bases: manim.mobject.matrix.Matrix

A mobject that displays a matrix with integer entries on the screen.

Note- Will round if there are decimal entries in the matrix.

Parameters
  • matrix (typing.Iterable) – A numpy 2d array or list of lists

  • element_to_mobject (Mobject, optional) – Mobject to use, by default Integer

Methods

Attributes

animate

Used to animate the application of a method.

depth

The depth of the mobject.

height

The height of the mobject.

width

The width of the mobject.