Let B be a finite dimensional algebra over a field K with dimension n over K. Sage can give us a K-basis of this algebra that we denote by ei. Here is an example:
B = SymmetricGroup(4).algebra(QQ)
U=B.basis()
display(list(U))
The structure constants cl,i,j of the algebra B are defined by the condition: eiej=∑lcl,i,jel. For a list A=[a1,...,an] with field elements ai define the n×n-matrix PA by (PA)i,j=∑lcl,i,jal.
Question: How can one obtain the PA with Sage and check whether there exists a list A such that PA has non-zero determinant?
The background of this question is that this is satisfied precisely when B is a Frobenius algebra, see for example theorem 16.82 in the book "Lectures on Modules and Rings" by Lam.