wecopttool.WEC.dofmat_to_vec

WEC.dofmat_to_vec(mat)[source]

Flatten a matrix to a vector.

Opposite of wecopttool.WEC.vec_to_dofmat().

Calls wecopttool.dofmat_to_vec() with the appropriate inputs for the WEC object.

Parameters:

mat (ndarray) – Matrix with one column per degree of freedom.

Return type:

ndarray