Displaying 18 results from an estimated 18 matches for "iomanip".
Did you mean:
bitmanip
2007 Sep 13
3
Call C code from R
Hello, All!
I have function which is written in C, the function uses other functions
also builded bu me. Now I need to use the function to build R function.
My questions are:
1. How can I include libraries (for example, iomanip, sstream, tcl.h)?
2. Should I put other function to the separate file and then include the
file?
Thanks All :)
Olga
[[alternative HTML version deleted]]
2007 Sep 17
3
Call C code from R
Hello, All!
I'm new for R-devel list. And I'd like to ask some questions,
maybe they will be stuped for the most part of members of the
list.
I need to call function which is written in C++ from R.
My questions are:
1. How should I include libraries (for example, iomanip,
sstream, iostream)?
2. Can I use namespace?
Thanks All :)
Olga
2013 Jul 04
1
R-devel Digest, Vol 125, Issue 2
...: error: string: No such file or directory
covmodel.h:17: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?namespace?
covmodel.h:20: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?covmodel?
util.h:12:20: error: iostream: No such file or directory
util.h:13:19: error: iomanip: No such file or directory
util.h:14:18: error: string: No such file or directory
util.h:15:19: error: sstream: No such file or directory
util.h:16:18: error: vector: No such file or directory
util.h:17:15: error: map: No such file or directory
util.h:18: error: expected ?=?, ?,?, ?;?, ?asm? or ?__...
2007 May 31
1
Problems when linking to R shared library
...s violation inside R: although I should stress that all other
beta quantiles I've tested come out OK.
Anyway, hopefully you can just tell me what an idiot I am :-)
Thanks in advance for any help you can give,
John Maddock.
The complete source code is:
#include <iostream>
#include <iomanip>
extern "C" {
#include "Rmath.h"
}
int main(int argc, const char** argv)
{
std::cout << pf(1.5, 2.0, 3.0, 1, 0) << std::endl;
std::cout << pchisq(1.5, 2.0, 1, 0) << std::endl;
std::cout << pgamma(1.5, 2.0, 3.0, 1, 0) << std::endl;...
2009 Aug 22
0
[LLVMdev] X86 Disassembler
...ns this. You can split this change out of your
megapatch and commit it separately.
>> 13. You use "std::ostream" a lot. Would it be appropriate to use
>> "raw_ostream" instead?
>
> To make sure that the table definition file looks pretty, I use
> <iomanip>, and none of those functions work with raw_ostreams. I
> actually only create three std::ostringstreams – during table
> generation – so for now I'm going to leave that the way it is.
I actually find iomanip to be pretty ugly for simple things. llvm/
Support/Format.h lets you...
2015 May 07
2
Problems installing packages with R 3.2.0 on Linux Mint 17.1
...-Werror=format-security
-D_FORTIFY_SOURCE=2 -g -c csem.cpp -o csem.o
In file included from /usr/include/c++/4.8/cctype:42:0,
from /usr/include/c++/4.8/bits/localefwd.h:42,
from /usr/include/c++/4.8/bits/ios_base.h:40,
from /usr/include/c++/4.8/iomanip:40,
from csem.h:38,
from csem.cpp:38:
/usr/share/R/include/ctype.h:120:55: error: expected ?,? or ?...? before
?new?
__extern void chrreplace(char *source, char old, char new);
^
In file included from /us...
2010 Jul 21
1
Plot window does not update in embedded code
...that the windows keep being updated?
Presently I am working under Linux. However, I also want to be able to
run my code under windows, so I hope there is a cross-platform
solution. Thanks in advance.
Regards,
Jan van der Laan
===== The example code =====
#include <iostream>
#include <iomanip>
#include <string>
static void R_WriteConsoleEx (const char *buf, int buflen, int otype) {
std::string output(buf, buflen);
std::cout << output;
}
static void R_WriteConsole (const char *buf, int buflen) {
R_WriteConsoleEx(buf, buflen, 0);
}
static int R_ReadConsole (const c...
2009 Aug 19
3
[LLVMdev] X86 Disassembler
...d by the coding
> standard:
>
> http://llvm.org/docs/CodingStandards.html#ll_avoidendl
Purged.
> 13. You use "std::ostream" a lot. Would it be appropriate to use
> "raw_ostream" instead?
To make sure that the table definition file looks pretty, I use
<iomanip>, and none of those functions work with raw_ostreams. I
actually only create three std::ostringstreams – during table
generation – so for now I'm going to leave that the way it is.
> 14. In DisassemblerTables::setTableFields, you emit things to
> "std::cerr". Use &quo...
2007 Jul 14
2
eac and flac
am a NEW user to flac.installed flac on eac.tried to rip a cd using eac with flac as external compression.tried the 'wav' icontried the 'mp3' iconboth options saves the file as 'wav'thought eac will rip the cd in the 'flac' file format.is this a 2-step procedure?wherein eac to 'wav' and re-ripped on flac frontend?or is there a ripper with flac in it that
2007 Jul 14
1
Annoying semi-bug in flac
...Eliot Monteverdi Choir, English Baroque Soloists - 8 Aria Gro?r Herr und starker K?ig.flac: ok
Now, I realise this is a minor issue, as it does not affect speed or quality of any of the operations,
but it is annoying. The problem seems to be in encode.c, around line 1652. Now without my beloved
iomanip and iostreams, I really have no idea how to output text, so I am probably totally wrong, but
the code seems to be just clearing the last line each time, which causes the problem when the last
output took two lines. What would be nice would be a little check on the terminal width and length of the...
2015 May 07
0
Problems installing packages with R 3.2.0 on Linux Mint 17.1
...> -D_FORTIFY_SOURCE=2 -g -c csem.cpp -o csem.o
> In file included from /usr/include/c++/4.8/cctype:42:0,
> from /usr/include/c++/4.8/bits/localefwd.h:42,
> from /usr/include/c++/4.8/bits/ios_base.h:40,
> from /usr/include/c++/4.8/iomanip:40,
> from csem.h:38,
> from csem.cpp:38:
> /usr/share/R/include/ctype.h:120:55: error: expected ?,? or ?...? before
> ?new?
> __extern void chrreplace(char *source, char old, char new);
>...
2009 Aug 18
0
[LLVMdev] X86 Disassembler
Hi Sean,
> the attached diff implements a table-driven disassembler for the X86
> architecture (16-, 32-, and 64-bit incarnations), integrated into
> the MC framework. The disassembler is table-driven, using a custom
> TableGen backend to generate hierarchical tables optimized for fast
> decode. The disassembler consumes MemoryObjects and produces arrays
> of
2009 Aug 18
2
[LLVMdev] X86 Disassembler
Dear mailing list:
the attached diff implements a table-driven disassembler for the X86
architecture (16-, 32-, and 64-bit incarnations), integrated into the
MC framework. The disassembler is table-driven, using a custom
TableGen backend to generate hierarchical tables optimized for fast
decode. The disassembler consumes MemoryObjects and produces arrays
of MCInsts, adhering to the
2009 Sep 29
3
How do I access class slots from C?
Hi
I'm trying to implement something similar to the following R snippet using
C. I seem to have hit the wall on accessing class slots using C.
library(fPortfolio)
lppData <- 100 * LPP2005.RET[, 1:6]
ewSpec <- portfolioSpec()
nAssets <- ncol(lppData)
setWeights(ewSpec) <- rep(1/nAssets, times = nAssets)
ewPortfolio <- feasiblePortfolio(
data = lppData,
spec = ewSpec,
2014 Oct 07
2
[LLVMdev] Can libc++ build for arm cross compiler?
...ts/out-arm/include/c++/v1/./iosfwd
> -- Installing:
> /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./algorithm
> -- Installing:
> /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./array
> -- Installing:
> /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./iomanip
> -- Installing:
> /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./chrono
> -- Installing:
> /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__std_stream
> -- Installing:
> /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./istream
> -- Installing:
&g...
2014 Oct 03
3
[LLVMdev] Can libc++ build for arm cross compiler?
On 10/3/14 10:16 AM, Dan Albert wrote:
>>
>> I try to build libc++ and libc++abi for host x86_64(linux) and target
>> arm(linux) but fail.
>>
>
> Failing in what way? If this isn't working out of the box, we've done
> something wrong.
Yeah, it would help to know more specifics about where you're getting stuck.
>
> jroelofs might know more...
For
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...s;
+ vector<NetworkDeviceAgent> networkdevices;
public:
HostAgent() {}
diff --git a/src/linux_platform.cpp b/src/linux_platform.cpp
index 26418f5..fbcfdb9 100644
--- a/src/linux_platform.cpp
+++ b/src/linux_platform.cpp
@@ -18,9 +18,14 @@
*/
#include <fstream>
+#include <iomanip>
#include <iostream>
+#include <dirent.h>
+#include <net/if.h>
#include <pcre.h>
#include <stdexcept>
+#include <string.h>
+#include <sys/ioctl.h>
// TODO remove this wrapper once rhbz#583747 is fixed
extern "C" {
@@ -115,3 +120,68 @@ Li...
2010 Apr 26
2
Patch supercedes previous patch...
In looking at the code I realized that the last of the HAL depenencies were
removed with this patch. So, I'm pushing an updated patch that contains
none of the HAL code in it.