()
| 85 | } |
| 86 | |
| 87 | func (matrix *Matrix) DeepCopy() *Matrix { |
| 88 | if matrix == nil { |
| 89 | return nil |
| 90 | } |
| 91 | return &Matrix{ |
| 92 | om: deepcopy.OrderedMap(matrix.om), |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // DeepCopy returns a copy of the MatrixRow. Without this, deepcopy.OrderedMap |
| 97 | // falls back to copying the *MatrixRow pointer as-is, so every "copy" of a |
nothing calls this directly
no test coverage detected