CPKit
v1.6.1

Matrix Laboratory (MX)

Analyze 2D prefix sums, run Gaussian eliminations, rotate grid elements, paint connected regions, and trace BFS pathfinders.

All Matrix Utilities (15)

Creation

Matrix Generator

Construct random, binary, identity, sparse, or weighted matrices with custom constraints.

EasyO(R * C)Open Tool
Operations

Matrix Transpose

Flipped reflection of row and column indexes for square or rectangular matrices.

EasyO(R * C)Open Tool
Operations

Matrix Rotation

Rotate matrices cyclically by 90°, 180°, or 270° clockwise or counter-clockwise.

EasyO(R * C)Open Tool
Operations

Matrix Multiplication

Multiply matrix A by matrix B and trace the cell-by-cell dot products.

EasyO(R_A * C_A * C_B)Open Tool
Creation

Identity Matrix

Construct identity matrices or custom diagonal matrices with specific diagonal parameters.

EasyO(N^2)Open Tool
Algorithms

Prefix Sum Matrix

Precompute subgrid sums for O(1) range queries and visualize regions.

MediumO(R * C) / O(1)Open Tool
Operations

Matrix Exponentiation

Raise a square matrix to the power K using fast binary exponentiation algorithms.

MediumO(N^3 log K)Open Tool
Operations

Matrix Determinant

Compute scalar determinants for square matrices of size 2x2 or 3x3.

EasyO(1) / O(N^3)Open Tool
Operations

Matrix Rank

Determine the rank of square or rectangular matrices using Gaussian row reduction steps.

MediumO(R^2 * C)Open Tool
Algorithms

Spiral Traversal

Traverse square or rectangular matrices spirally clockwise or counter-clockwise.

EasyO(R * C)Open Tool
Algorithms

Diagonal Traversal

Traverse square or rectangular matrices along primary, secondary, or zigzag diagonal lines.

EasyO(R * C)Open Tool
Grid Search

Grid BFS Traversal

Visualize unweighted grid pathfinding layer-by-layer using FIFO queues.

MediumO(R * C)Open Tool
Grid Search

Grid DFS Traversal

Visualize grid depth-first search (DFS) recursion using backtracking.

MediumO(R * C)Open Tool
Grid Search

Flood Fill Paint

Interact with grid cells using a paint bucket tool to count connected components.

EasyO(R * C)Open Tool
Grid Search

Pathfinding Grid

Visualize shortest path searches using BFS, Dijkstra, or A* heuristic grids.

HardO(R*C log(R*C))Open Tool