I want to find multiple nonzero real matrices A
, B
that satisfy $A.B=\mathbf{0}$ condition.
A = Array[a, {3, 3}];
B = Array[b, {3, 3}];
FindInstance[
A.B == ConstantArray[0, {3, 3}] && A != ConstantArray[0, {3, 3}] &&
B != ConstantArray[0, {3, 3}], Flatten[{A, B}], Reals,5]
{{A, B}} /. First[%]
However, the above code can not return the desired results for a long time. What can I do to quickly get multiple sets of matrices that meet the requirements (their elements are preferably rational numbers)?
NullSpace
? $\endgroup$