constructor matrix(void), should it exist?
See also #53 and #169
Should this constructor exist? What is the idea of having it? If one creates a matrix as "matrix m;" there is only one way to check if it is valid. Check whether m.gsl_matrix_p() is NULL or not. Is this well designed?
Peter sees no point in having an empty matrix (vector).
Peter, as spokesman of Markus, one point of having the the void constructor is to send the object into functions (in C-style)
Markus says, well Peter himself is inventing functions like matrix::nan(matrix&) which is a case where one typically needs to use the void constructor first before calling nan.
Change History (8)
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Component: |
classifier →
gslapi
|
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
see ticket #53