Dedicated function to copy a matrix structure into a new matrix structure. The datastructure contains pointers, such that simply setting matrix1 = matrix2 may result in pointer target losses (and wrong results).
We should not overload the generic assignment(=) with this function, as it may clash with the constructor.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(matrix_t), | intent(in) | :: | matrix_in | the original matrix |
copy from the original matrix