forum.alglib.net

ALGLIB forum
It is currently Thu Apr 18, 2024 6:12 am

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: Error 156 Use of unassigned local variable 'state0'
PostPosted: Thu Jun 26, 2014 1:14 pm 
Offline

Joined: Thu Jun 26, 2014 12:00 pm
Posts: 2
Добрый день!
Использую Dll
Проблема, после
alglib.hqrnd.hqrndstate state0 ;
alglib.hqrnd.hqrndrandomize( state0 );
выдает ошибку
Error 156 Use of unassigned local variable 'state0'
То же самое после alglib.hqrnd.hqrndseed(1, 2, state0);

А если не инициализировать , то ошибка
"Ссылка на объект не указывает на экземпляр объекта."


Top
 Profile  
 
 Post subject: Re: Error 156 Use of unassigned local variable 'state0'
PostPosted: Fri Jun 27, 2014 7:52 am 
Offline

Joined: Thu Jun 26, 2014 12:00 pm
Posts: 2
Разобрался, нужно было добавить
state = new alglib.hqrnd.hqrndstate();
дальше как обычно
alglib.hqrnd.hqrndrandomize( state );
double newrandom01 = alglib.hqrnd.hqrndnormal(state);

Но в примерах этого нигде нет,
хорошо бы в хелп добавить актуальные примеры работы с функциями.
И непонятно отношение автора к dll, то ли рекомендуется, то ли нет.


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 16 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