Timeline for C++20 : N-dimensional minimal Matrix class
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 1, 2021 at 0:55 | comment | added | alephzero | @frozenca "you can't do anything meaningful with matrix that contains zero-length dimension" - you might want to look at why Fortran (from Fortran 90 through to the latest version) allows zero-length dimensions to be used with the obvious semantics and no exceptions thrown. The basic reason is because they are useful! | |
Apr 30, 2021 at 23:09 | comment | added | frozenca |
Also I moved submatrix() to MatrixBase , because we can make submatrix from view of matrix as well. Other operations like matrix addition and multiplication will be done upon MatrixBase ! Cool!
|
|
Apr 30, 2021 at 21:36 | comment | added | frozenca | Although constructing zero-length dimension matrix itself isn't illegal, you can't do anything meaningful with matrix that contains zero-length dimension (almost all operations will throw exceptions). That's why I didn't allow zero-length dimensions. | |
Apr 30, 2021 at 20:51 | comment | added | G. Sliepen | Ah, good point. I guess it depends then on whether you want to allow swapping between matrices of different sizes. It already limits swapping to matrices with the same number of dimensions... | |
Apr 30, 2021 at 20:30 | comment | added | JDługosz |
If you have const data members, then you can't assign to the object. He's also defining swap .
|
|
Apr 30, 2021 at 18:08 | history | answered | G. Sliepen | CC BY-SA 4.0 |