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: 200500602 Last Updated: 5/6/2020 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Travel 4

Reference 79

Computer

Hardware 251

Software

Application 213

Digitization 32

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 431

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Set 1

Logic 1

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

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-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019