4. Examples of use#
4.1. Classic linear combination#
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):
4.2. Copy of a concept of type Matr_asse_*_r#
mat_save = COMB_MATR_ASSE (COMB_R = _F (MATR_ASSE = mat_1,
COEF_R = 1.))
4.3. Difference between COMB_C and COMB_R:#
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. [0].
4.4. Extracting the real part of a matr_asse_*_c matrix#
mat_R = COMB_MATR_ASSE (COMB_R = _F (PARTIE = 'REEL',
MATR_ASSE = MAT_C, COEF_R = 1.,), )