AnsVec#

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

Provides the AnsMath vector objects.

Methods

AnsVec.asarray([dtype])

Return the vector as a NumPy array.

AnsVec.axpy(obj, val1, val2)

Perform the matrix operation: self= val1*obj + val2*self.

AnsVec.const(value)

Set all values of the object to a constant.

AnsVec.copy()

Get a copy of the vector.

AnsVec.dot(vec)

Multiply the AnsMath vector by another AnsMath vector.

AnsVec.kron(obj)

Calculates the Kronecker product of two matrices/vectors

AnsVec.norm([nrmtype])

Return the norm of the AnsMath object.

AnsVec.ones()

Set all values of the object to one.

AnsVec.rand()

Set all values of the object to a random number.

AnsVec.zeros()

Set all values of the object to zero.

Attributes

AnsVec.size

Number of items in this vector.