The LinearAlgebra.det method defined in this package is not very good:
- It's restricted to
Matrix, so LinearAlgebra.det fails for, e.g., LinearAlgebra.Symmetric polynomial matrices
- It doesn't check that the matrix is square
- It uses recursion with depth that's not statically known
- It uses
sum without an init argument, causing a dynamic dispatch warning with JET
The LinearAlgebraX package, however, provides two different methods that both work with polynomial matrices (as far as I tried): detx and cofactor_det.
Perhaps LinearAlgebraX could be used to improve the linear algebra functionality in this package.