Let $k$ be a field and $A_1,\ldots, A_l\in M_n(k)$ be square matrices. Is there any way to determine if $\operatorname{Span}_k\{A_1,\ldots, A_l\}\cap GL_n(k)$ is empty or not?
I am adding more details about the specific cases that I am interested in:
I am interested in the case when $k$ is a finite field. Also, all the $A_i$'s are of the form $$ \left[ \begin{array}{c|c|c|c} C_{11} & C_{12} & \cdots & C_{1m} \\ \hline C_{21} & C_{22} & \cdots & C_{2m} \\ \hline \vdots & & \ddots & \vdots \\ \hline C_{m1} & C_{m2} & \cdots & C_{mm} \end{array} \right]$$ with exactly one block $C_{ij}$ being non-zero.
The dimension for each $C_{ij}$ is given, and each $A_i$ is also given. I am interested in how to determine if $\operatorname{span}\{A_1,\ldots, A_l\}\cap GL_n(k)$ is empty or not. Is there any algorithms with polynomial complexity to determine this?