Sideway
output.to from Sideway
Draft for Information Only

Content

Manim Matrix
 Codes in Matrix.py
  Import
  Constant
  Global Front Function
  Class Matrix(VMobject)
   Configuration
   Functions
  Class DecimalMatrix(Matrix)
   Configuration
  Class IntegerMatrix(Matrix)
   Configuration
  Class MobjectMatrix(Matrix)
   Configuration
  Global End Function
 Source and Reference

Manim Matrix

The matrix form VMobject object in Manim is defined in matrix.py.

Codes in Matrix.py

Available codes defined in manimlib.mobject.matrix.py

image

Four classes, Matrix(VMobject), DecimalMatrix(Matrix), IntegerMatrix(Matrix), and MobjectMatrix(Matrix) are defined.

Import

The import defined in manimlib.mobject.matrix.py:
import numpy as np

from manimlib.constants import *
from manimlib.mobject.numbers import DecimalNumber
from manimlib.mobject.numbers import Integer
from manimlib.mobject.shape_matchers import BackgroundRectangle
from manimlib.mobject.svg.tex_mobject import TexMobject
from manimlib.mobject.svg.tex_mobject import TextMobject
from manimlib.mobject.types.vectorized_mobject import VGroup
from manimlib.mobject.types.vectorized_mobject import VMobject

Constant

VECTOR_LABEL_SCALE_FACTOR = 0.8

Global Front Function

  • def matrix_to_tex_string(matrix)
  • def matrix_to_mobject(matrix)
  • def vector_coordinate_label

Class Matrix(VMobject)

class manimlib.mobject.matrix.Matrix(VMobject)version 19Dec2019

Configuration

    CONFIG = {
        "v_buff": 0.8,
        "h_buff": 1.3,
        "bracket_h_buff": MED_SMALL_BUFF,
        "bracket_v_buff": MED_SMALL_BUFF,
        "add_background_rectangles_to_entries": False,
        "include_background_rectangle": False,
        "element_to_mobject": TexMobject,
        "element_to_mobject_config": {},
        "element_alignment_corner": DR,
    }

Functions

  • def __init__(self, matrix, **kwargs)
  • def matrix_to_mob_matrix(self, matrix)
  • def organize_mob_matrix(self, matrix)
  • def add_brackets(self)
  • def get_columns(self)
  • def set_column_colors(self, *colors)
  • def add_background_to_entries(self)
  • def get_mob_matrix(self)
  • def get_entries(self)
  • def get_brackets(self)

Class DecimalMatrix(Matrix)

class manimlib.mobject.matrix.DecimalMatrix(Matrix)version 19Dec2019

Configuration

    CONFIG = {
        "element_to_mobject": DecimalNumber,
        "element_to_mobject_config": {"num_decimal_places": 1}
    }

Class IntegerMatrix(Matrix)

class manimlib.mobject.matrix.IntegerMatrix(Matrix)version 19Dec2019

Configuration

    CONFIG = {
        "element_to_mobject": Integer,
    }

Class MobjectMatrix(Matrix)

class manimlib.mobject.matrix.MobjectMatrix(Matrix)version 19Dec2019

Configuration

    CONFIG = {
        "element_to_mobject": lambda m: m,
    }

Global End Function

  • def get_det_text(matrix, determinant=None, background_rect=False, initial_scale_factor=2)

Source and Reference

https://github.com/3b1b/manim19Dec2019

©sideway

ID: 210700016 Last Updated: 7/16/2021 Revision: 0

IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 337

Reference 68

Computer

Hardware 154

Software

Application 207

Digitization 25

Latex 35

Manim 203

Numeric 19

Programming

Web 285

Unicode 504

HTML 65

CSS 63

SVG 9

ASP.NET 229

OS 422

DeskTop 7

Python 64

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 32

Coordinate Geometry 1

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2021 Sideway . All rights reserved Disclaimers last modified on 06 September 2019