Main Page | File List | Globals

taucs_utils.h File Reference

#include "Mutils.h"
#include "taucs/taucs.h"

Go to the source code of this file.

Functions

taucs_ccs_matrix * csc_taucs_ptr (SEXP A, int flags)
SEXP mat_from_taucs (taucs_ccs_matrix *tm)


Function Documentation

taucs_ccs_matrix* csc_taucs_ptr SEXP  A,
int  flags
 

Create a pointer to a taucs_ccs_matrix from an R object that inherits from class cscMatrix according to the flags.

Parameters:
A Pointer to an object that inherits from cscMatrix
flags taucs flags describing the matrix
Returns:
A taucs_ccs_matrix pointer to the existing storage (no copying).

SEXP mat_from_taucs taucs_ccs_matrix *  tm  ) 
 

Copy a taucs_ccs_matrix to an R object of the appropriate class and free the storage used by the taucs_ccs_matrix.

Parameters:
tm A pointer to a taucs_ccs_matrix
Returns:
An R object of class "cscMatrix" or "sscMatrix" or "tscMatrix"


Generated on Mon May 31 14:04:37 2004 for Matrix by doxygen 1.3.6-20040222