Main Page | File List | Globals

taucs_utils.c File Reference

#include "taucs_utils.h"

Functions

taucs_ccs_matrix * csc_taucs_ptr (SEXP A, int flags)
SEXP mat_from_taucs (taucs_ccs_matrix *tm)
taucs_ccs_matrix * copy_csc_to_taucs (SEXP A, int typ)
double taucs_wtime ()
double taucs_ctime ()
void * taucs_malloc_stub (size_t size)
void * taucs_calloc_stub (size_t nmemb, size_t size)
void * taucs_realloc_stub (void *ptr, size_t size)
void taucs_free_stub (void *ptr)
double taucs_allocation_amount ()
int taucs_allocation_count ()
int taucs_allocation_attempts ()
void taucs_allocation_assert_clean ()
void taucs_allocation_mark_clean ()
void taucs_allocation_induce_failure (int i)
int taucs_printf (char *fmt,...)
double taucs_get_nan ()

Variables

double taucs_dzero_const = 0.0
double taucs_done_const = 1.0
double taucs_dminusone_const = -1.0

Function Documentation

taucs_ccs_matrix* copy_csc_to_taucs SEXP  A,
int  typ
 

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"

double taucs_allocation_amount  ) 
 

void taucs_allocation_assert_clean  ) 
 

int taucs_allocation_attempts  ) 
 

int taucs_allocation_count  ) 
 

void taucs_allocation_induce_failure int  i  ) 
 

void taucs_allocation_mark_clean  ) 
 

void* taucs_calloc_stub size_t  nmemb,
size_t  size
 

double taucs_ctime  ) 
 

void taucs_free_stub void *  ptr  ) 
 

double taucs_get_nan  ) 
 

void* taucs_malloc_stub size_t  size  ) 
 

int taucs_printf char *  fmt,
  ...
 

void* taucs_realloc_stub void *  ptr,
size_t  size
 

double taucs_wtime  ) 
 


Variable Documentation

double taucs_dminusone_const = -1.0
 

double taucs_done_const = 1.0
 

double taucs_dzero_const = 0.0
 


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