Tagged articles
matrix
23 articles · Page 1 of 1
The article shares a candid interview anecdote about reasons for leaving a job, then presents LeetCode problem 542 “01 Matrix”, explains its DP and BFS approaches, and provides full Java, C++, and Python implementations.
C++JavaLeetCode
0 likes · 10 min read


Aotu LabFeb 2, 2023 · Frontend Development
This guide explains how to use the open‑source Skia 2D graphics library via the canvaskit‑wasm WebAssembly package to create surfaces, draw shapes, apply paints, shaders, blend modes, and perform 2D matrix transformations—including translation, scaling, rotation, skew, and perspective—culminating in a complete procedural design workflow with reusable JSX components.
CanvasGraphicsSkia
0 likes · 18 min read

This article explains how to represent, combine, and invert 2D and 3D transformations with matrices, demonstrates rotation around arbitrary axes, scaling in any direction, and provides JavaScript code for generating rotation matrices in WebGL contexts.
3D transformationGraphicsJavaScript
0 likes · 12 min read

This guide introduces Numpy basics, covering installation, array creation, indexing, slicing, universal functions, and matrix operations such as addition, multiplication, inversion, determinants, and eigenvalue analysis, all illustrated with clear Python code examples.
NumPyUFuncarray
0 likes · 7 min read

This article explains how to compute 2×2 and 3×3 determinants, introduces cofactor expansion, discusses triangular matrices, outlines key determinant properties, and demonstrates Cramer's rule and the adjugate method for finding matrix inverses.
Cramer's rulecofactor expansiondeterminant
0 likes · 5 min read

This article explains elementary row and column transformations of matrices, their role in defining matrix equivalence, the characteristics of reduced row‑echelon form, equivalence classes, k‑order minors, the definition and properties of matrix rank, and the distinction between homogeneous and non‑homogeneous linear systems.
equivalencelinear-algebramatrix
0 likes · 4 min read

This article outlines fundamental matrix concepts—including addition and multiplication properties, transpose rules, identity and elementary matrices, and algorithms for computing inverse matrices—while providing illustrative examples and key proofs for each topic.
elementary matrixinverse matrixlinear algebra
0 likes · 4 min read

This article explains the basic definition of Markov chains, illustrates a stock‑market example with transition matrices, demonstrates convergence through Python simulations, and shows how the steady‑state distribution enables sampling for Monte Carlo methods.
Monte CarloPythonconvergence
0 likes · 10 min read

Rotating a 2‑D vector is performed by multiplying it with the matrix [[cos θ, ‑sin θ],[sin θ, cos θ]], yielding the new coordinates (x cos θ ‑ y sin θ, x sin θ + y cos θ); a short JavaScript function implements this, turning [3,2] into [‑2,3] for a 90° counter‑clockwise rotation and also rotates the basis vectors.
2DMathVector
0 likes · 8 min read

This guide introduces NumPy fundamentals—including installation, array creation, indexing, slicing, universal functions, and linear‑algebra operations—providing concise code examples that demonstrate how to generate, manipulate, and compute with multidimensional arrays and matrices in Python.
UFuncarraylinear-algebra
0 likes · 7 min read

This article covers fundamental matrix concepts, including addition and multiplication properties, transpose rules, identity and elementary matrices, and practical algorithms for computing matrix inverses with illustrative examples.
elementary matricesinverse matrixlinear algebra
0 likes · 4 min read

This article explains how to compute determinants using cofactor expansion for 2×2 and 3×3 matrices, introduces the cofactor matrix, discusses properties of determinants, triangular matrix simplifications, and demonstrates Cramer's rule and an alternative inverse matrix method, providing clear examples throughout.
Cramer's rulecofactor expansiondeterminant
0 likes · 4 min read

This article introduces matrices and vectors, explains special matrix types, covers matrix addition, scalar multiplication, and their properties, details matrix multiplication and its rules, and describes the transpose operation, providing clear definitions and illustrative examples for each concept.
Vectorlinear algebramatrix
0 likes · 4 min read

This article explains the geometric meaning of vectors and matrices, how basic matrix operations relate to linear transformations, and demonstrates how CSS transform functions like translate, scale, and rotate are just convenient wrappers around matrix operations, helping frontend developers use them confidently.
geometrylinear algebramatrix
0 likes · 17 min read

This article introduces NumPy, the essential Python library for array and matrix operations, covering creation, arithmetic, slicing, aggregation, reshaping, and real‑world examples such as machine‑learning data preparation, image handling, audio processing, and text tokenization.
Pythonarraydata-science
0 likes · 9 min read

The article analyzes how to update the positions of intermediate points on a wire when the user drags the wire with the mouse, compares three solution approaches—including point‑wise rotation and scaling, a complex geometric construction, and a unified transformation matrix—and summarizes their trade‑offs.
AlgorithmGraphicsTransformation
0 likes · 8 min read

This article introduces the basic concepts of vectors and matrices, covering directed line segments, vector properties, coordinate representation, magnitude, inner product, Cauchy‑Schwarz inequality, and fundamental matrix operations such as addition, multiplication, Hadamard product and transposition, with examples and visual illustrations.
Cauchy-Schwarzinner productlinear algebra
0 likes · 10 min read

This article explains how the Matrix team created a low‑overhead iOS/macOS energy‑consumption monitor that captures high‑CPU thread stacks, builds aggregated power‑consume stacks, and helps pinpoint heating scenarios such as image uploads, VoIP calls, and game usage.
backtraceenergy monitoringiOS
0 likes · 7 min read

Matrix is Tencent’s open‑source Android APM that unifies performance monitoring, offering tools like APK Checker, SQLite Lint, Trace Canary, Resource Canary, and IO Canary to detect issues such as leaks, slow methods, and I/O problems, helping developers build higher‑quality apps.
APMAndroidPerformance Monitoring
0 likes · 8 min read

Matrix‑ApkChecker, an in‑house APM tool used by WeChat, analyzes Android APKs to identify oversized files, redundant resources, unused assets, and other inefficiencies, providing detailed reports and enabling targeted optimizations such as removing duplicate files, converting PNGs to WebP, and stripping unused libraries, ultimately reducing app size by over 130 KB.
APK OptimizationAPMAndroid
0 likes · 11 min read

The article examines common pitfalls when using NumPy arrays and matrices for data manipulation in machine learning, highlighting chaotic data structures, inefficient filtering, confusing arithmetic syntax, and unintuitive code patterns compared to MATLAB/Octave, and concludes with a critique of Python’s ergonomics.
NumPyPythondata processing
0 likes · 7 min read

The article explains the mathematical foundations and front‑end implementation of five common mobile gestures—drag, pinch, rotate, single‑finger pinch, and single‑finger rotate—using native touch events, vector calculations, and matrix transformations, and provides a lightweight library that emits incremental gesture events for easy integration.
Vectorfrontendgesture
0 likes · 16 min read

This article examines four typical traps when using NumPy for matrix and vector operations—confusing array and matrix shapes, inefficient data filtering, ambiguous multiplication syntax, and cumbersome syntax—offering examples, explanations, and comparisons with MATLAB/Octave to help Python users write clearer, more reliable code.
NumPydata processingmachine-learning
0 likes · 7 min read
