Andreas Borgen Longva

Results 238 comments of Andreas Borgen Longva

I can't comment on this example *in particular*, but to my knowledge, there is no known algorithm that is *guaranteed* to work for every possible matrix. The best implementations have...

> I'm fairly interested in this functionality. At present there's no way to slice sparse matrix types, and having borrowed storage makes sense for such functionality to exist. To clarify:...

> As for generalizing across index types, is the [`Dim` trait](https://docs.rs/nalgebra/latest/nalgebra/base/dimension/trait.Dim.html) insufficient? I feel like this is pretty much everything one would need on that front. It doesn't guarantee conversion...

> Quite literally, I want to be able to effectively call [this function](https://docs.rs/nalgebra/0.29.0/nalgebra/base/struct.Matrix.html#method.slice) from dense matrices on sparse matrices. My primary motivation for working with borrowed data is not to...

@geoeo: Sorry, I did not mean to ignore you for so long. I'm not too familiar with the `nalgebra-lapack` code, and certainly not with the complex aspect. I'm also confused...

@geoeo: I'm sorry but I don't really know the code base of `nalgebra-lapack` and don't feel particularly well-suited to review. IIRC someone other than @sebcrozet initially contributed the crate, but...

@geoeo: indeed it can, but the `Eigen` struct on which the method is defined explicitly says that the eigenvalues are real. But maybe just the docs for `Eigen` need to...

Hi @anirudhRowjee: that would be great! I don't know of anyone else working on this, so I think it's all yours :-) Let us know if you have any questions....

I agree that `CooMatrix` definitely should have this - in fact I thought it already did, but apparently it's not covered yet. For `CsrMatrix` and `CscMatrix`, on the other hand,...

If you have a mutable reference, you can swap it with an empty matrix, disassemble it and then swap it back when you're done, like this (not tested, might not...