#include "R.h"
#include "Rinternals.h"
#include "Rdefines.h"
#include "GA_matrix.h"
Go to the source code of this file.
Functions | |
GAMatrixInt * | GA_matrix_from_R_int (SEXP robj) |
SEXP | GA_matrix_to_R_int (GAMatrixInt *matrix) |
GAMatrixReal * | GA_matrix_from_R_real (SEXP robj) |
SEXP | GA_matrix_to_R_real (GAMatrixReal *matrix) |
This module provides functions for handling conversions between the matrix types of the graph alignment package C implementation and the internal R objects (SEXP
) which represent matrices.
GAMatrixInt* GA_matrix_from_R_int | ( | SEXP | robj | ) |
Create matrix from R object (int).
Create a matrix of integers from an R object. The new matrix will be referenced and should be destroyed by using GA_matrix_destroy_int() when it is not needed anymore.
robj | R object. |
GAMatrixReal* GA_matrix_from_R_real | ( | SEXP | robj | ) |
Create matrix from R object (real).
Create a matrix of real numbers from an R object. The new matrix will be referenced and should be destroyed by using GA_matrix_destroy_real() when it is not needed anymore.
robj | R object. |
SEXP GA_matrix_to_R_int | ( | GAMatrixInt * | matrix | ) |
Create R object from matrix (int).
Create an R object from a matrix of integers.
matrix | Matrix. |
SEXP GA_matrix_to_R_real | ( | GAMatrixReal * | matrix | ) |
Create R object from matrix (real).
Create an R object from a matrix of real numbers.
matrix | Matrix. |