axpy#
- MatrixOperations.axpy(vr='', vi='', m1='', wr='', wi='', m2='', **kwargs)#
Performs the matrix operation M2= v2M1 + w2M2.
Mechanical APDL Command: *AXPY
- Parameters:
- vr
str The real and imaginary parts of the scalar
v. Default value is 0.- vi
str The real and imaginary parts of the scalar
v. Default value is 0.- m1
str Name of matrix
M1. If not specified, the operation M2 = w*M2 will be performed.- wr
str The real and imaginary parts of the scalar
w. Default value is 0.- wi
str The real and imaginary parts of the scalar
w. Default value is 0.- m2
str Name of matrix
M2. Must be specified.
- vr
Notes
Warning
This function contains specificities regarding the argument definitions. Please refer to the command documentation for further explanations.
Argument Descriptions
vr, vi : str- The real and imaginary parts of the scalarv. Default value is 0.m1 : str- Name of matrixM1. If not specified, the operation M2 = w*M2 will be performed.wr, wi : str- The real and imaginary parts of the scalarw. Default value is 0.m2 : str- Name of matrixM2. Must be specified.
The matrices
M1andM2must have the same dimensions and same type (dense or sparse). IfM2is real,viandwiare ignored.