BeBOP: pOSKI  v1.0.0
parallel Optimized Sparse Kernel Interface library
 All Files Functions Variables
Functions
poski_Matrix_common.c File Reference

Commonly used routines in Matrix Handler's modules. More...

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <poski/poski_threadcommon.h>
#include <poski/poski_matrixcommon.h>
#include <poski/poski_partition.h>
#include <poski/poski_partitioncommon.h>
#include <poski/poski_malloc.h>
#include <poski/poski_print.h>

Functions

int poski_Init_GlobalMatrix (poski_mat_t A, poski_index_t *Aptr, poski_index_t *Aind, poski_value_t *Aval, poski_index_t nrows, poski_index_t ncols, poski_index_t nnz)
 [library's internal use] Initialize a tunable matrix.
poski_mat_t poski_InitMat (poski_threadarg_t *threadargs, poski_partitionarg_t *partitionargs, poski_index_t *ptr, poski_index_t *ind, poski_value_t *val, poski_index_t nrows, poski_index_t ncols, poski_index_t nnz, poski_copymode_t mode)
 [library's internal use] Allocate space for a new tunable matrix object, and initailize it.
int poski_Init_LocalSubMat (poski_submat_t *submatrix)
 [library's internal use] Initialize a submatrix object.
poski_inmatprop_t * poski_Collect_valist (int k, va_list ap)
 [library's internal use] Collect specified semantic properies.
int poski_Check_matCSR (poski_index_t *ptr, poski_index_t *ind, poski_value_t *val, poski_index_t nrows, poski_index_t ncols, poski_index_t nnz)
 [library's internal use] Error-checking for a sparse matrix in CSR format.
int poski_Check_matcopymode (poski_copymode_t mode)
 [library's internal use] Error-checking for a matrix copy mode.
int poski_Check_CreateMatCSRInput (poski_threadarg_t *threadargs, poski_index_t *ptr, poski_index_t *ind, poski_value_t *val, poski_index_t nrows, poski_index_t ncols, poski_index_t nnz, poski_copymode_t mode)
 [library's internal use] Error-checking for input parameters of creating a tunable matrix object.
int poski_Check_Matrix (poski_mat_t A)
 [library's internal use] Error-checking for a tunable matrix.
int poski_Check_Matrix_location (poski_mat_t A, poski_int_t row, poski_int_t col)
 [library's internal use] Error-checking for the location in the tunable matrix.
int poski_report_sparse_CSR_va (poski_index_t *Aptr, poski_index_t *Aind, poski_value_t *Aval, poski_index_t nrows, poski_index_t ncols, poski_index_t nnz)
 [library's internal use] Report information of a sparse matrix in CSR format.
int poski_report_sparse_CSR (poski_sparse_matrix_t *A)
 [library's internal use] Report information of a sparse matrix in CSR format.
int poski_report_submat (poski_submat_t *submat, poski_int_t npartitions)
 Report information of submatrices.

Detailed Description

Commonly used routines in Matrix Handler's modules.

This module implements the commonly used routines in matrix handler's modules.

Attention:
These routines are usually for the library's internal use and should not normally be called directly by users.
Called by poski_MatrixHandler.c

Also, refer