[ojAlgo-user] question re: custom MatrixStore<>
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Jonathan S. <jo...@ma...> - 2018-01-05 20:07:40
|
I have created a custom matrix store, that in addition to managing access into the matrix as per the API supplies some additional functionality I need. My intention is to use it as a 1st class matrix class as a starting point in linear alg computations. However, I've noted that the MatrixStore<Double> interface implements only a subset of the operations that, say, PrimitiveMatrix exposes. For example I cannot directly call invert() on the matrix store, though I can multiply and call a number of other operations directly. If I want to extend the matrix class API, I thought creating a new MatrixStore would be the approach, but it seems that there is a more complex hierarchy of MatrixStore, PhysicalStore, AbstractMatrix, etc which I have not been able to figure out to integrate with. My Questions: 1. If I want to expose invert and other methods in my custom matrix, what is the best approach to doing so? 2. If MatrixStore is not the best way to create custom Matrices, what should the approach be. I recognize that MatrixStore most likely refers to the storage / access functionality rather than matrix ops. I would like to be able to bundle both Am stuck at this point. Any pointers greatly appreciated. --- Jonathan Shore |