Examples of use ====================== Classic linear combination ------------------------------ .. code-block:: text mat_rs = COMB_MATR_ASSE (COMB_C = (_F (MATR_ASSE = mat_1, COEF_R = 1. ), _F (MATR_ASSE = mat_2, COEF_C = ('RI', 0.,1.,),) ,),) The product concept mat_rs is of the type Matr_asse_*_c (complex): .. code-block:: text mat_rs = mat_1 + i mat_2 Copy of a concept of type Matr_asse_*_r ------------------------------------------ .. code-block:: text mat_save = COMB_MATR_ASSE (COMB_R = _F (MATR_ASSE = mat_1, COEF_R = 1.)) Difference between COMB_C and COMB_R: ----------------------------------- .. code-block:: text Mat_r = COMB_MATR_ASSE (COMB_R = _F (MATR_ASSE = mat_1, COEF_R = 1.)) # Mat_r has real coefficients Mat_r = mat_1 Mat_c = COMB_MATR_ASSE (COMB_C = _F (MATR_ASSE = mat_1, COEF_R = 1.)) # Mat_c has complex coefficients, but the imaginary part is zero Mat_c = mat_1 + i. [:ref:`0 <0>`]. Extracting the real part of a matr_asse_*_c matrix ------------------------------------------------------------------ .. code-block:: text mat_R = COMB_MATR_ASSE (COMB_R = _F (PARTIE = 'REEL', MATR_ASSE = MAT_C, COEF_R = 1.,), )