OFFSET
1,2
COMMENTS
A matrix is totally positive if all its minors are nonnegative.
MATHEMATICA
ispositive2[M_]:=ispositive1[M]=Union@Table[Select[Union@Flatten@Minors[M, r], (#<= 0)&]=={}, {r, 1, Length[M]}]=={True};
W[n_]:=W[n]=Flatten[Table[{{a11, a12, a13}, {a21, a22, a23}, {a31, a32, a33}}, {a11, 1, n}, {a12, 1, n}, {a13, 1, n}, {a21, 1, n}, {a22, 1, n}, {a23, 1, n}, {a31, 1, n}, {a32, 1, n}, {a33, 1, n}], 8];
Table[Length@Select[W[n], ispositive2[#]&], {n, 1, 6}]
CROSSREFS
KEYWORD
nonn,more
AUTHOR
José María Grau Ribas, Jun 15 2024
STATUS
approved