alglib

How to solve rectangular sparse matrix using Alglib, linlsqrsolvesparse?

梦想的初衷 提交于 2021-01-29 14:59:15
问题 I've created a sparse matrix alglib.sparse.sparsematrix solvingInputA = new alglib.sparse.sparsematrix() ; alglib.sparse.sparsecreate(kNew.Length, nanCount,fdaNonZero,solvingInputA, default); then I put some data and tried to convert with this block of code alglib.linlsqrstate linlsqrstate; alglib.linlsqrcreate(solvingInputA.m, solvingInputA.n, out linlsqrstate); alglib.xparams _params = default; alglib.sparse.sparseconverttocrs(solvingInputA, default); then solve alglib.linlsqrsolvesparse

how to connect the library alglib in QT C++

拈花ヽ惹草 提交于 2020-01-16 01:06:08
问题 I want to run the example from the official site link. When I am trying to compile mlptrainer trn; multilayerperceptron network; mlpreport rep; real_1d_array x = "[0]"; real_1d_array y = "[0,0]"; real_2d_array xy = "[[+1,0],[+2,0],[-1,1],[-2,1],[0,0],[0,1]]"; mlpcreatetrainercls(1, 2, trn); mlpcreatec1(1, 5, 2, network); mlpsetdataset(trn, xy, 6); mlptrainnetwork(trn, network, 5, rep); I get an many errors they all look C:\Qt\Tools\QtCreator\bin\VK_DotaFeed\neuralnet.cpp:-1: error: undefined

Is it possible to use Alglib with Rcpp?

只愿长相守 提交于 2019-12-11 02:01:12
问题 I often use Rcpp code to incorporate C++ code into R. Through the BH-package I am also able to use the Boost-library. However, the Boost library lacks a function that I would like to use (to be precise, it only has Bessel function but I would like to get Log-Bessel immediately because of overflow). I know that Alglib does have this feature. Would it be possible to use Alglib with Rcpp, that is, use the log-bessel function from Alglib somehow? 回答1: I do not see a clear difference in

Matrix multiplication alglib

狂风中的少年 提交于 2019-12-10 07:53:08
问题 How do I multiply two matrices with AlgLib 回答1: Disclaimer: I haven't used AlgLib; I'm just going by what the documentation seems to say. I'd be happy to be corrected by someone more expert. Anyway, I'm afraid the answer seems to be that you need to use cmatrixgemm or rmatrixgemm (which one depends on whether your matrices are real or complex), like this: rmatrixgemm(m,n,k, 1, A,0,0,0, B,0,0,0, 0, C,0,0); where: m , n , k are the sizes of the matrices ( A is m by k , B is k by n , C is m by n

Matrix multiplication alglib

亡梦爱人 提交于 2019-12-05 13:48:17
How do I multiply two matrices with AlgLib Disclaimer: I haven't used AlgLib; I'm just going by what the documentation seems to say. I'd be happy to be corrected by someone more expert. Anyway, I'm afraid the answer seems to be that you need to use cmatrixgemm or rmatrixgemm (which one depends on whether your matrices are real or complex), like this: rmatrixgemm(m,n,k, 1, A,0,0,0, B,0,0,0, 0, C,0,0); where: m , n , k are the sizes of the matrices ( A is m by k , B is k by n , C is m by n ) the 1 is what to multiply the product by (if you happen to want, say, 3AB instead of AB, put 3 there