GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
Object stringification

Create strings holding information on GHOST objects. More...

Functions

ghost_error ghost_context_string (char **str, ghost_context *context)
 Create a string containing information on the context. More...
 
ghost_error ghost_string (char **str)
 Construct string holding information on GHOST. More...
 
char * ghost_densemat_storage_string (ghost_densemat_storage storage)
 Get a string about the storage order. More...
 
ghost_error ghost_densemat_info_string (char **str, ghost_densemat *densemat)
 Get a string containing information about the densemat. More...
 
ghost_error ghost_densemat_string (char **str, ghost_densemat *x)
 Creates a string of the densemat's contents. More...
 
char * ghost_error_string (ghost_error e)
 Get a string of the GHOST error. More...
 
ghost_error ghost_machine_string (char **str)
 Get a string of the machine information. More...
 
ghost_error ghost_pumap_string (char **str)
 Turn the PU mpa into a string. More...
 
ghost_error ghost_sparsemat_info_string (char **str, ghost_sparsemat *matrix)
 Create a string holding information about the sparsemat. More...
 
const char * ghost_sparsemat_symmetry_string (ghost_sparsemat_symmetry symmetry)
 Convert the matrix' symmetry information to a string. More...
 
ghost_error ghost_sparsemat_string (char **str, ghost_sparsemat *mat, int dense)
 Creates a string of the sparsemat's contents. More...
 
const char * ghost_task_state_string (ghost_task_state state)
 Return a string representing the task's state. More...
 
ghost_error ghost_task_string (char **str, ghost_task *t)
 Stringify a task. More...
 
const char * ghost_datatype_string (ghost_datatype datatype)
 Stringify a ghost_datatype. More...
 

Detailed Description

Create strings holding information on GHOST objects.

Function Documentation

ghost_error ghost_context_string ( char **  str,
ghost_context context 
)

Create a string containing information on the context.

Parameters
strWhere to store the string.
contextThe context to stringify.
Returns
GHOST_SUCCESS on success or an error indicator.

Here is the call graph for this function:

const char* ghost_datatype_string ( ghost_datatype  datatype)

Stringify a ghost_datatype.

Parameters
datatypeThe data type.
Returns
A string representation of the data type.

Here is the call graph for this function:

ghost_error ghost_densemat_info_string ( char **  str,
ghost_densemat densemat 
)

Get a string containing information about the densemat.

Here is the call graph for this function:

char* ghost_densemat_storage_string ( ghost_densemat_storage  storage)

Get a string about the storage order.

ghost_error ghost_densemat_string ( char **  str,
ghost_densemat x 
)

Creates a string of the densemat's contents.

Parameters
xThe densemat.
strWhere to store the string.
Returns
GHOST_SUCCESS on success or an error indicator.

The string has to be freed by the caller.

Here is the call graph for this function:

char* ghost_error_string ( ghost_error  e)

Get a string of the GHOST error.

Parameters
eThe error.
Returns
The string.
ghost_error ghost_machine_string ( char **  str)

Get a string of the machine information.

Parameters
[out]strWhere to store the string.
Returns
GHOST_SUCCESS on success or an error indicator.

Here is the call graph for this function:

ghost_error ghost_pumap_string ( char **  str)

Turn the PU mpa into a string.

Parameters
[out]strWhere to store the string.
Returns
::GHOST_SUCCESS on success or an error indicator.

Here is the call graph for this function:

ghost_error ghost_sparsemat_info_string ( char **  str,
ghost_sparsemat matrix 
)

Create a string holding information about the sparsemat.

Parameters
[out]strWhere to store the string.
[in]matrixThe sparse matrix.
Returns
GHOST_SUCCESS on success or an error indicator.

Here is the call graph for this function:

ghost_error ghost_sparsemat_string ( char **  str,
ghost_sparsemat mat,
int  dense 
)

Creates a string of the sparsemat's contents.

Parameters
matThe matrix.
strWhere to store the string.
denseIf 0, only the elements stored in the sparse matrix will be included. If 1, the matrix will be interpreted as a dense matrix.
Returns
GHOST_SUCCESS on success or an error indicator.

The string has to be freed by the caller.

Here is the call graph for this function:

const char* ghost_sparsemat_symmetry_string ( ghost_sparsemat_symmetry  symmetry)

Convert the matrix' symmetry information to a string.

Parameters
[in]symmetryThe symmetry information.
Returns
A string holding the symmetry information.
ghost_error ghost_string ( char **  str)

Construct string holding information on GHOST.

Parameters
strWhere to store the string.
Returns
GHOST_SUCCESS on success or an error indicator.

Here is the call graph for this function:

const char* ghost_task_state_string ( ghost_task_state  state)

Return a string representing the task's state.

Parameters
[in]stateThe task state
Returns
The state string
ghost_error ghost_task_string ( char **  str,
ghost_task t 
)

Stringify a task.

Parameters
[out]strWhere to store the string.
[in]tThe task
Returns
GHOST_SUCCESS on success or an error indicator.

Here is the call graph for this function: