forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 6:48 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: alglib namespace
PostPosted: Sun Jan 08, 2012 7:52 pm 
Offline

Joined: Sun Jan 08, 2012 7:47 pm
Posts: 1
Hi,

I am trying to alglib working with Ninja trader

I am using the namespace

Using alglib;

And I have set the reference to the alglibnet.dll

But I get the reference error when trying to compile

"using a namespace directive can only be applied to namespaces 'alglib' is not a namespace"

Does alglib not work in the same way as math.net?

Am I Missing something? I managed to get math.net working with Ninjatrader and I assume algib can too, what am I missing?


Tinkerz


Top
 Profile  
 
 Post subject: Re: alglib namespace
PostPosted: Mon Jan 09, 2012 7:46 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
Hello! No, alglib is not a namespace - it is a class, so you can't write "using alglib". So you have to always write alglib.functionname.

Good news is that there is no nested classes within classes and so on, so you will have to prefix function names with alglib, but won't have to write something like alglib.class1.class2.onemoreclass.functionname :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 38 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group