#include "GA_message.h"
#include "GA_matrix_R.h"
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) |
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. |