s-news
[Top] [All Lists]

[S] problems on calling Fortran

To: s-news@wubios.wustl.edu
Subject: [S] problems on calling Fortran
From: "Chunlei KE" <ke97@hotmail.com>
Date: Thu, 21 Oct 1999 20:25:04 PDT
Sender: owner-s-news@wubios.wustl.edu

Dear S+ users,

I am trying to call a Rational Fortran subroutine "dmudr" written for smoothing spline with "dyn.load" and ".Fortran" in S+. The input for "dmudr" includes: a vector, a matrix (n*m) and an array (n*n*2). There is no problem with loading of "dmudr". But when running it, I couldn't get the correct results though "dmudr" runs well in Fortan.

I constructed the array in S+ as:

array(c(Q_1, Q_2), dim=c(n, n, 2))

where Q_1, Q_2 are both n*n matrices, and then passed to "dmudr". I checked the matrices and vector and the programs many times and couldn't figure out what's going on.

Can someone please tell me wether I made the array correctly, and what may cause the problems? Thank you very much!

I am using Splus 3.4 on Unix

Regards,
Chunlei Ke



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

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