s-news
[Top] [All Lists]

Re: DLL package troubles

To: Urs Wagner <wagner@itp.phys.ethz.ch>
Subject: Re: DLL package troubles
From: Urs Wagner <wagner@itp.phys.ethz.ch>
Date: Fri, 20 Aug 2004 14:29:10 +0200
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <4125CC97.90603@itp.phys.ethz.ch>
References: <4124B5B6.7000207@itp.phys.ethz.ch> <4124C35F.2010208@pdf.com> <4125CC97.90603@itp.phys.ethz.ch>
User-agent: Mozilla Thunderbird 0.7.2 (Windows/20040707)
OK the working directory can be changed with the menu command File Chaptes New Working Chapter.

The next problem is how can I do this in the Commands shell.

Thanks

Urs

Urs Wagner wrote:

Thanks

The problem was the working directory. I used the source command. I changed it to an absolute file path. Another questing for me how can I change the current director in the command shell?

Thanks

Urs

Sundar Dorai-Raj wrote:



Urs Wagner wrote:

Hello

Who can help? I have my troubles with the dll's. The sample library gausssdl is loaded but the function call
to the C function gaussSeidel does not work.

Thanks

Urs

 > sys.time({x1<-gaussSeidel(A,b)})         # timing the S version
Timing stopped at: 0.0159999999999982 0.0160000000005311
Problem: Couldn't find a function definition for "gaussSeidel"
Use traceback() to see the call stack
 >  sys.time({x2<-.Call('gaussSeidel',A,b)}) # timing the .Call version
[1] 0 0
 >  all.equal(x1,x2)                         # Should return T
Problem: Object "x1" not found
Use traceback() to see the call stack

 > search()
...
[9] "sgui" "maps" [11] "gausssdl" "main"



It appears you do not have an S-PLUS function called "gaussSeidel". Try

gaussSeidel <- function(A, b) {
  .Call("gaussSeidel", A, b)
}
x1 <- gaussSeidel(A, b)

--sundar

--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news


--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news



<Prev in Thread] Current Thread [Next in Thread>