GraphAlignment/src/GA_vector_R.c File Reference

R utility functions for vector types (implementation). More...

#include "GA_message.h"
#include "GA_vector_R.h"

Functions

GAVectorIntGA_vector_from_R_int (SEXP robj)
SEXP GA_vector_to_R_int (GAVectorInt *vec)
GAVectorRealGA_vector_from_R_real (SEXP robj)
SEXP GA_vector_to_R_real (GAVectorReal *vec)
GAClampMode GA_clamp_mode_from_R (SEXP robj)


Detailed Description

R utility functions for vector types (implementation).


Function Documentation

GAClampMode GA_clamp_mode_from_R ( SEXP  robj  ) 

Get clamp mode from R object (real).

Get the clamp mode corresponding to the value of the specified R object.

Parameters:
robj R object
Returns:
clamp mode

GAVectorInt* GA_vector_from_R_int ( SEXP  robj  ) 

Create vector from R object (int).

Create a vector of integers from an R object. The new vector will be referenced and should be destroyed by using GA_vector_destroy_int() when it is not needed anymore.

Parameters:
robj R object.
Returns:
Pointer to a vector, or 0 if an error occurs.
See also:
GA_vector_destroy_int

GAVectorReal* GA_vector_from_R_real ( SEXP  robj  ) 

Create vector from R object (real).

Create a vector of real numbers from an R object. The new vector will be referenced and should be destroyed by using GA_vector_destroy_real() when it is not needed anymore.

Parameters:
robj R object.
Returns:
Pointer to a vector, or 0 if an error occurs.
See also:
GA_vector_destroy_real

SEXP GA_vector_to_R_int ( GAVectorInt vec  ) 

Create R object from vector (int).

Create an R object from a vector of integers.

Parameters:
vec Vector.
Returns:
R object.

SEXP GA_vector_to_R_real ( GAVectorReal vec  ) 

Create R object from vector (real).

Create an R object from a vector of real numbers.

Parameters:
vec Vector.
Returns:
R object.


Generated on Thu Aug 16 15:28:42 2007 for Graphalignment(Rpackage) by  doxygen 1.5.1