AFAIR, Cocoa has an Accelerate.framework and there is OpenCL. But neither one is available for GNUstep.
I think there is also some quaternion classes in SpriteKit or SceneKit but that does not seem to be what you are looking for. And it is also not provided by GNUstep.
The closest to your problem what I found by Google seems to be
though it is a wrapper around Accelerate.framework.
But it might give you a direction when writing your own Matrix class, maybe based on some C code. The transformations you mention are just loop operations over rows or columns.
-- hns
That would be useful only if the matrix class wasn't storing individual matrices but a large number of them. Both for GPU and CPU uses. I don't think you want to iterate over an NSArray to do matrix multiplication or transposes individually.As intended, GPUs and CPUs probably accelerate matrices up to 4x4, so I don't think they apply to a general purpose matrix either (maybe I am wrong).It's hard to advise Dale without knowing the specific use case.On May 6, 2018 9:22:23 AM GMT+01:00, Gregory Casamento < greg.casamento@gmail.com> wrote: Are these the kinds of operations which would benefit from hardware acceleration? (I.e. utilizing the gpu?) I am virtually certain the answer is no, and NSMatrix is certainly not it as it's aimed at the GUI. I have a need for something that allows me to have a 2D sparse array which has methods like 'transpose', horizontal and vertical reflection, column and row operations for swapping, inserting and deleting; swapping the contents of any two locations, etc.
It would just be incredibly useful, so much so that if it does not exist, some day I will have to write one. However, I'd rather not... I'm hoping someone is going to tell me that Class XYZ, which says nothing about Matrices, actually is one...
-- +---------------------------------------------------------------+ | Dale Amon Immortal Data | | CEO Midland International Air and Space Port | | amon@vnl.com "Data Systems for Deep Space and Time" | +---------------------------------------------------------------+
_______________________________________________ Discuss-gnustep mailing list Discuss-gnustep@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnustep
--
-- Sent from my Android device with K-9 Mail. Please excuse my brevity._______________________________________________Discuss-gnustep mailing listDiscuss-gnustep@gnu.orghttps://lists.gnu.org/mailman/listinfo/discuss-gnustep
|