Displaying 3 results from an estimated 3 matches for "intoler".
Did you mean:
integer
2006 Mar 29
1
calling R's optimization routines from C
Hi,
I have read R's Writing Extensions manual and am still confused about how to
use some of the routines there when I call from C. Specifically, I am writing a
little test function which I will optimize using the nmmin function which
underlies R's optim() with Nelder-Mead. I guess I wonder what library/header
files I should be using. I was using R_ext/Applic.h and linking with libR but I
2008 Oct 31
0
R help for invoking nmmin()
My code is as follows:
#include <iostream>
#include <cmath>
using namespace std;
#define MATHLIB_STANDALONE 1
extern "C"
{
#include "R_ext/Applic.h"
}
typedef struct TT{
double ** tempX;
double * tempY;
int tempN;
} TT, *MM;
double fn(int N, double * beta, void * ex){
double total = 0;
int i = 0,j = 0;
double * betaFn = new double[N];
MM tmp = (MM)ex;
2006 Apr 13
1
bus error on calling nmmin
Hi,
I'm trying to get a toy program making use of nmmin to run
successfully. I've gotten to the point of compiling. However, when I
attempt to run my executable, I guess a bus error. I see that someone
else has asked about using nmmin before
<http://tolstoy.newcastle.edu.au/R/help/06/03/23944.html>, but I
haven't come across any replies.
Is there some documentation on how to