From simon.urbanek at r-project.org  Thu May  9 21:54:40 2013
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Thu, 9 May 2013 15:54:40 -0400
Subject: [Rd] call R function from C code
In-Reply-To: <kme57t$sca$1@ger.gmane.org>
References: <kme57t$sca$1@ger.gmane.org>
Message-ID: <2DC85D00-8F28-4EFA-BBE7-D5488B1DC894@r-project.org>


On May 8, 2013, at 2:24 PM, Matwey V. Kornilov wrote:

> Hi,
> 
> I am writing C code for R, but in middle of the routine I want to call solve(A,b) function. What is the right way to solve linear set inside C code? Is it ok to just invoke La_solve()?
> 

There is no such thing as La_solve(). You can use dgesv from LAPACK, though.
However, the subject poses a different question -- you can call R function from C code by using eval().

Cheers,
Simon



[Rd] call R function from C code
Simon Urbanek