How to realize the matrix multiplication and the m-power of matrix in SpringBoot integration MybatisPlus
This article mainly introduces how to realize matrix multiplication and matrix m power in SpringBoot integration MybatisPlus. It is very detailed and has certain reference value. Interested friends must read it!
Problem description
Given an N-order matrix A, output the M power of A (M is a non-negative integer).
For example:
A =
1 2
3 4
The second power of A
7 10
15 22
Input format
The first line is a positive integer N, M (1)