Open
Description
Original issue related to PR TheAlgorithms#12552
The current implementation of split_matrix function could be optimized for better performance. This involves:
- Reducing unnecessary memory allocations
- Improving the algorithm complexity
- Adding proper type hints
- Maintaining test coverage
This is a medium complexity task that requires understanding of matrix operations and Python optimization techniques.