ansys.mapdl.core.Mapdl.axpy#

Mapdl.axpy(vr='', vi='', m1='', wr='', wi='', m2='', **kwargs)#

Performs the matrix operation M2= v2M1 + w2M2.

Mechanical APDL Command: *AXPY

Parameters:
vrstr

The real and imaginary parts of the scalar v. Default value is 0.

vistr

The real and imaginary parts of the scalar v. Default value is 0.

m1str

Name of matrix M1. If not specified, the operation M2 = w*M2 will be performed.

wrstr

The real and imaginary parts of the scalar w. Default value is 0.

wistr

The real and imaginary parts of the scalar w. Default value is 0.

m2str

Name of matrix M2. Must be specified.

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 scalar v. Default value is 0.

  • m1 : str - Name of matrix M1. If not specified, the operation M2 = w*M2 will be performed.

  • wr, wi : str - The real and imaginary parts of the scalar w. Default value is 0.

  • m2 : str - Name of matrix M2. Must be specified.

The matrices M1 and M2 must have the same dimensions and same type (dense or sparse). If M2 is real, vi and wi are ignored.