s-news
[Top] [All Lists]

Re: DLL package troubles

To: Urs Wagner <wagner@itp.phys.ethz.ch>
Subject: Re: DLL package troubles
From: Sundar Dorai-Raj <sundar.dorai-raj@PDF.COM>
Date: Thu, 19 Aug 2004 10:12:31 -0500
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <4124B5B6.7000207@itp.phys.ethz.ch>
Organization: PDF Solutions, Inc.
References: <4124B5B6.7000207@itp.phys.ethz.ch>
Reply-to: sundar.dorai-raj@PDF.COM
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)


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


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