2
$\begingroup$

I want to set a default product in Mathematica in place of the standard product. Specifically, I want to change the standard product for CenterDot so that when I perform A.B, where A and B are two matrices, the multiplication of the terms is done using the CenterDot.

Alternatively, is there a way to perform specifying which product I want to use when performing the A.B operation?

$\endgroup$
1
  • $\begingroup$ Could you please provide a more detailed example? If your question is too general, it is highly possible that you will not get answers. $\endgroup$ Jun 7 '19 at 7:59
1
$\begingroup$

I found a very simple solution. To use the function Inner with the functions Plus and CenterDot. Thanks everyone.

$\endgroup$
12
  • $\begingroup$ Yes, that is it. $\endgroup$ Jun 7 '19 at 8:00
  • $\begingroup$ @ΑλέξανδροςΖεγγ However, I have a question, hope you can help me. I am trying to implement this in something that looks like Sum[A^i, {i, 0, l}]. Where A is a matrix. However, I want that "power" to be the A.A.A....A i times, using CenterDot to multiply the terms. $\endgroup$ Jun 7 '19 at 8:06
  • $\begingroup$ So, what is it? $\endgroup$ Jun 7 '19 at 8:07
  • $\begingroup$ @ΑλέξανδροςΖεγγ I edited my question in the comment above $\endgroup$ Jun 7 '19 at 8:21
  • 2
    $\begingroup$ could you please make your answer more explicit please. Presently its not exactly clear what the question/ the answer is. $\endgroup$
    – chris
    Mar 3 '20 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.