-
Hello everyone, I am a relatively new user of Mfront, so the question might be relatively easy to answer. Though, I was wondering if operations between nonsquare matrix (NxM with N and M different) are handled within Mfront (multiplication, etc). For example, I defined two matrices A and B as : @localvariable tfel::math::tmatrix<9,18,real> A; I need to calculate something like B = invert(transpose(A)*A) * transpose(A). Am I missing something ? Thanks in advance ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 15 replies
-
@jgenee, Thanks for your interest in |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer. I am implementing a non local behavior law using MFront and Amitex. To that end, I defined a 9x18 matrix (A in the previous message) that contain information about dislocations types. Then, the matrix is used in the calculation of the 18x18 matrix B that relates two state variables in the behavior law (one being an non-local value calculated outside of the behavior law by Amitex). I defined the calculation of B in a second mfront file that I imported into the main one containing the law. Basically, A is initialized as a 9x18 matrix. And I need to compute B = invert( transpose(A) * A ) * transpose(A). Hope I am clear enough ! |
Beta Was this translation helpful? Give feedback.
@jgenee, Thanks for your interest in
TFEL/MFront
. You did not miss anything. It just seems that I never needed to implement the matrix product. In pratice, I have implemented the product of tensors. Maybe you could give me more insight on what your are trying to do just to figure out why you need it. The standard implementation is easy to add.