Getting Nth Row and Column from MatrixView, Scid library

2015-07-17 Thread kerdemdemir via Digitalmars-d-learn

Hi,

I want to use Scid  matrixes for implementing GMM algorithm. I 
will start by writing Naive Bayes with linear and quadratic 
decision boundaries .


I reliaze Scid does not provides any functions for getting 
spesific row or coloumn. Matrixwview class only supplies opIndex 
function.


Is there anything that I am missing or what is the best to get 
nth column or row with Scid library.


Link to Scid lib: 
http://www.kyllingen.net/code/scid/doc/scid_matrix.html


Re: Getting Nth Row and Column from MatrixView, Scid library

2015-07-17 Thread bachmeier via Digitalmars-d-learn

On Friday, 17 July 2015 at 22:05:45 UTC, kerdemdemir wrote:

Sad times with linear algebra libraries for me,

Since I can't get  rows and columns easily with Scid, It seems 
not flexible for me. And also there are other issues for 
example I can't set matrix to row or column major.


I begin to check alternatives first I begin to investigate 
Dlib. D lib matrixes are unfortunately static once created 
their size can't be expanded  and must be square matrix. This 
restrictions seem too much to me .


The best alternative seems to me scid fork of Cristi 
Cobzarenco link: https://github.com/cristicbz/scid. It has the 
basic features I need. But it seems last commit made 3 years 
ago. I couldn't compile it. I am getting error:


scid\internal\regionallocator.d(364): Error: safe function 
'scid.internal.region
allocator.threadLocalSegmentSize' cannot call system function 
'scid.internal.reg

ionallocator.RegionAllocatorException.this'
Error building library

Any advice about another lib or fix compile error will be 
welcome.


No idea if it will help with what you need, and the documentation 
is still a work in progress, but this is my library for embedding 
D in R (similar to Rcpp):


https://bitbucket.org/bachmeil/dmdinline2/overview

It does have an easy way to work with rows and columns.


Re: Getting Nth Row and Column from MatrixView, Scid library

2015-07-17 Thread kerdemdemir via Digitalmars-d-learn

Sad times with linear algebra libraries for me,

Since I can't get  rows and columns easily with Scid, It seems 
not flexible for me. And also there are other issues for example 
I can't set matrix to row or column major.


I begin to check alternatives first I begin to investigate Dlib. 
D lib matrixes are unfortunately static once created their size 
can't be expanded  and must be square matrix. This restrictions 
seem too much to me .


The best alternative seems to me scid fork of Cristi Cobzarenco 
link: https://github.com/cristicbz/scid. It has the basic 
features I need. But it seems last commit made 3 years ago. I 
couldn't compile it. I am getting error:


scid\internal\regionallocator.d(364): Error: safe function 
'scid.internal.region
allocator.threadLocalSegmentSize' cannot call system function 
'scid.internal.reg

ionallocator.RegionAllocatorException.this'
Error building library

Any advice about another lib or fix compile error will be welcome.