Re: Library for matrix operations? (eigenvalues, pseudoinverse)

2020-02-07 Thread Vasil Velichkov
Hi Laura, On 06/02/2020 21.27, Laura Arjona wrote: > Thank you very much Vasil for your response. > > I already had that. But I keep getting the same problemI was looking at > module as an example > https://github.com/kit-cel/gr-specest/blob/master/lib/CMakeLists.txt > > However, in this

Re: Library for matrix operations? (eigenvalues, pseudoinverse)

2020-02-06 Thread Laura Arjona
Thank you very much Vasil for your response. I already had that. But I keep getting the same problemI was looking at module as an example https://github.com/kit-cel/gr-specest/blob/master/lib/CMakeLists.txt However, in this example I need to remove this line; otherwise I get error. But I still

Re: Library for matrix operations? (eigenvalues, pseudoinverse)

2020-02-06 Thread Vasil Velichkov
Hi Laura, On 06/02/2020 20.16, Laura Arjona wrote: > Whenever I try to use the *pinv* function inside my OOT block, I get the > error : *AttributeError: 'module' object has no attribute 'cca_update'* > I just comment the line about the pinv, and no error appears. One of the possible reasons

Re: Library for matrix operations? (eigenvalues, pseudoinverse)

2020-02-06 Thread Laura Arjona
Thank you again for your responses. I installed Armadillo, BLAS, and LAPACK. Armadillo seems to be working, since I can do basic operations with matrices using it Whenever I try to use the *pinv* function inside my OOT block, I get the error : *AttributeError: 'module' object has no attribute

Re: Library for matrix operations? (eigenvalues, pseudoinverse)

2020-01-17 Thread Laura Arjona
Thank you all so much for the detailed responses, really appreciate it. To give some background, my application is to build a CCA (canonical correlation analysis) filter as an OOT C++ block. And the inputs are two digital signals (represented as matrices) - one of them I receive and decode real

Re: Library for matrix operations? (eigenvalues, pseudoinverse)

2020-01-16 Thread CEL
True, Eigen is pretty popular for people needing to do Matrix operations – I wasn't aware they even have Matrix decompositions[1]! (in hindsight... considering the library name...) I like Eigen, but there's two caveats, I find: 1. indexing is done with () instead of [] (I guess it's made for

Re: Library for matrix operations? (eigenvalues, pseudoinverse)

2020-01-16 Thread Jeremy Reeve
Hi Laura, Just to add to the suggestions, I've seen Eigen [1] used in the past. It's a template library (headers only) and has no external dependencies other than the standard library and that might be something to consider given your use-case. [1]

Re: Library for matrix operations? (eigenvalues, pseudoinverse)

2020-01-16 Thread Christoph Mayer
Hi Laura, Marcus, for small processors (e.g. the beaglebone, used for KiwiSDR GPS position solutions) I have adapted an old library originally developed by NIST, https://github.com/hcab14/TNT_JAMA Best regards Christoph On Thu, Jan 16, 2020 at 10:32 PM Müller, Marcus (CEL) wrote: > > So, that

Re: Library for matrix operations? (eigenvalues, pseudoinverse)

2020-01-16 Thread CEL
Oh not to forget: if you really just want to use LAPACK in isolation and not require other dependencies at runtime... there's of course also the option of writing Fortran [1] and then just directly using it from C++... but beware, FORTRAN matrices are column-major, whereas C/C++ tends to be

Re: Library for matrix operations? (eigenvalues, pseudoinverse)

2020-01-16 Thread CEL
So, that depends a bit on what you want to do: These operations are classically implemented in a library called LAPACK, which is really mature (and, it's written in Fortran90). You use it through C++ wrappers like "IT++" or "Armadillo". Be a bit careful though. The usual way of defining the

Re: Library for matrix operations? (eigenvalues, pseudoinverse)

2020-01-16 Thread Nate Temple
Hi Laura, Armadillo is a common c++ lib for linear algebra. gr-doa makes use of it. http://arma.sourceforge.net/ https://github.com/ettusresearch/gr-doa Regards, Nate Temple On Thu, Jan 16, 2020 at 1:01 PM Laura Arjona wrote: > Hi all, > > Is there any library to use in gnuradio for algebra

Library for matrix operations? (eigenvalues, pseudoinverse)

2020-01-16 Thread Laura Arjona
Hi all, Is there any library to use in gnuradio for algebra operations, such as matrix eigenvalues, and pseudoinverse? Or I'd need to code them myself in C++? I need to integrate those operations into my OOT C++ blocks. Thanks for your time Best -- *Laura Arjona * Washington Research