AnsVec#

class ansys.mapdl.core.math.AnsVec(id_, mapdl, dtype=<class 'numpy.float64'>, init=None)[source]#

APDLMath Vector Object

Methods

AnsVec.asarray()

Returns vector as a numpy array

AnsVec.axpy(op, val1, val2)

Perform the matrix operation: M2= v*M1 + w*M2

AnsVec.const(value)

Set all values of the vector to a constant

AnsVec.copy()

Return a copy of this vector

AnsVec.dot(vec)

Dot product with another APDLMath vector.

AnsVec.kron(obj)

Calculates the Kronecker product of two matrices/vectors

AnsVec.norm([nrmtype])

Matrix or vector norm.

AnsVec.ones()

Set all values of the vector to one

AnsVec.rand()

Set all values of the vector to a random number

AnsVec.zeros()

Set all values of the vector to zero

Attributes

AnsVec.size

Number of items in this vector.