CXXR (C++ R) API
Namespaces | Typedefs | Functions
RealVector.h File Reference

($Id: RealVector.h 1351 2013-03-08 15:12:28Z arr $)

Class CXXR::RealVector and associated C interface. More...

#include "CXXR/VectorBase.h"
#include "R_ext/Arith.h"
#include "CXXR/FixedVector.hpp"
#include "CXXR/SEXP_downcast.hpp"
Include dependency graph for RealVector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CXXR
 Namespace for the CXXR project.
namespace  CXXR::ElementTraits
 Namespace encapsulating traits of R vector element types.

Typedefs

typedef CXXR::FixedVector
< double, REALSXP
CXXR::RealVector
 Vector of real numbers.

Functions

Rboolean Rf_isReal (SEXP s)
double * REAL (SEXP x)

Detailed Description

Class CXXR::RealVector and associated C interface.


Function Documentation

double* REAL ( SEXP  x)
inline
Parameters:
xPointer to an RealVector (i.e. an R numeric vector). An error is generated if x is not pointer to an RealVector .
Returns:
Pointer to element 0 of x .
Rboolean Rf_isReal ( SEXP  s)
inline
Parameters:
sPointer to an RObject.
Returns:
TRUE iff the RObject pointed to by s is a real vector.