vec

MapdlMath.vec(size=0, dtype=<class 'numpy.float64'>, init=None, name=None, asarray=False)

Create a vector.

Parameters
sizeint

Size of the vector

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

Give the vector a name. Otherwise one will be automatically generated.

asarraybool, optional

Return a scipy array rather than an APDLMath matrix.

Returns
ansys.mapdl.math.AnsVec or numpy.ndarray

APDLMath Vector or numpy.ndarray.