wecopttool.dofmat_to_vec

dofmat_to_vec(mat)[source]

Flatten a matrix that has one column per DOF.

Returns a 1D vector.

Opposite of wecopttool.vec_to_dofmat().

Parameters:

mat (ArrayLike) – Matrix to be flattened.

Return type:

ndarray

See also

vec_to_dofmat