CXXR (C++ R)
Classes | Namespaces | Typedefs | Functions
ComplexVector.h File Reference

($Id: ComplexVector.h 1378 2013-04-26 13:39:20Z arr $)

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

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

Go to the source code of this file.

Classes

struct  CXXR::Complex
 CXXR's extension of CR's Rcomplex. More...

Namespaces

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

Typedefs

typedef CXXR::FixedVector
< Complex, CPLXSXP
CXXR::ComplexVector
 Vector of complex numbers.

Functions

Rboolean Rf_isComplex (SEXP s)
Rcomplex * COMPLEX (SEXP x)

Detailed Description

Class CXXR::ComplexVector and associated C interface.


Function Documentation

Rcomplex* COMPLEX ( SEXP  x)
inline
Parameters:
xPointer to a CXXR::ComplexVector (i.e. an R complex vector). An error is generated if x is not a non-null pointer to a CXXR::ComplexVector .
Returns:
Pointer to element 0 of x .
Rboolean Rf_isComplex ( SEXP  s)
inline
Parameters:
sPointer to an RObject.
Returns:
TRUE iff the RObject pointed to by s is a complex vector.