Coverting ubyte to string.

2012-11-14 Thread Knud Soerensen
Hi I am working with a c library which return a unsigned char * As suggested on http://digitalmars.com/d/1.0/htomodule.html I have converted it to (ubyte *). Now is there an easy way to convert this to a string ? Knud

Libraries for machine learning or artificial intelligence.

2012-11-25 Thread Knud Soerensen
Hi Which D libraries exist for machine learning or artificial intelligence ? Or alternative what about libraries for linear algebra and statistic methods ? Knud

Any D libraries for natural language processing ?

2012-12-26 Thread Knud Soerensen
Is there Any D libraries for natural language processing or text processing ? Knud

using sqlite3

2013-01-15 Thread Knud Soerensen
When using etc.c.sqlite3 i get the following errors. usr/include/dmd/phobos/etc/c/sqlite3.d:(.text._Dmain+0x98): undefined reference to `sqlite3_open' /usr/include/dmd/phobos/etc/c/sqlite3.d:(.text._Dmain+0xa7): undefined reference to `sqlite3_errmsg' /usr/include/dmd/phobos/etc/c/sqlite3.d:(.tex

Re: using sqlite3

2013-01-15 Thread Knud Soerensen
On 2013-01-15 22:02, Adam D. Ruppe wrote: > You might have to add -L-lsqlite3 to your dmd command line, to link in > the library. > > May also be necessary to install the sqlite library, e.g. "yum install > sqlite-devel" on red hat linuxes. Thanks, I just added it to my /etc/dmd.conf -- Join m

problem with filter.

2013-03-18 Thread Knud Soerensen
Hi I am trying to generate 2 arrays which is modifications of clist. But I am having some problems, how would you do it ? #!/usr/bin/rdmd import std.stdio; import std.algorithm; void main() { bool[][][] clist=[[[true, true], [false, true]],[[true, false], [true, true]],[[false, true], [true,

Re: problem with filter.

2013-03-18 Thread Knud Soerensen
> First writeln() actually edit the original array, so when you filter it > for the second array, fneg gives true for all clist[][][] elements. How would you get around this ?