mat

MapdlMath.mat(nrow=0, ncol=0, dtype=<class 'numpy.float64'>, init=None, name=None)

Create an APDLMath matrix.

Parameters
nrowint

Number of rows.

ncolint

Number of columns.

dtypenp.dtype, optional

Datatype of the vector. Must be either np.int32, np.int64, or np.double.

initstr, optional

Initialization options. Can be "ones", "zeros", or "rand".

namestr, optional

Matrix name. If given, assigns a MAPDL matrix based on the existing named matrix. Otherwise one will be automatically generated.

Returns
AnsMat

APDLMath matrix.