#include <dmatrix.h>
Data Fields | |
int | m |
int | n |
int | nz |
double * | val |
int * | jdx |
int * | idx |
int * | rdx |
dmatrix stores a matrix in compressed sparse row (CSR) format. For computational efficiency, it also store the row indices as well as row start indices.
NOTE: As for sparse matrix, the matrix indices are not modified throughout the whole program. It is possible since matrix-matrix multiplication (except diagonal matrix) is not performed in PCG mode.
int dmatrix::m |
number of rows
Referenced by backtracking_linesearch(), compute_searchdir_chol_fat(), compute_searchdir_chol_thin(), compute_searchdir_pcg(), dmat_B_AAT(), dmat_B_ATA(), dmat_build_idx(), dmat_colavg(), dmat_colstd(), dmat_colsum(), dmat_copy(), dmat_diagadd(), dmat_diagscale(), dmat_duplicate(), dmat_elemAA(), dmat_new_dense(), dmat_posv(), dmat_potrs(), dmat_print(), dmat_summary(), dmat_yAmpqTx(), dmat_yAmpqx(), dmat_yATDAx(), dmat_yATx(), dmat_yAx(), dmat_yHx(), dmat_yHx_(), find_lambdamax(), l1_logreg_classify(), l1_logreg_train(), main(), read_mm_new_matrix(), and standardize_data().
int dmatrix::n |
number of columns
Referenced by backtracking_linesearch(), compute_searchdir_chol_fat(), compute_searchdir_chol_thin(), compute_searchdir_pcg(), dmat_A_axxTpA(), dmat_B_AAT(), dmat_B_ATA(), dmat_colavg(), dmat_colstd(), dmat_colsum(), dmat_copy(), dmat_diagadd(), dmat_diagscale(), dmat_duplicate(), dmat_elemAA(), dmat_new_dense(), dmat_print(), dmat_summary(), dmat_yAmpqTx(), dmat_yAmpqx(), dmat_yATDAx(), dmat_yATx(), dmat_yAx(), dmat_yHx(), dmat_yHx_(), find_lambdamax(), l1_logreg_classify(), l1_logreg_train(), main(), read_mm_new_matrix(), and standardize_data().
int dmatrix::nz |
number of non-zero entries nz >= 0: sparse, nz == -1: dense
Referenced by compute_searchdir_pcg(), dmat_build_idx(), dmat_colavg(), dmat_colstd(), dmat_colsum(), dmat_copy(), dmat_diagadd(), dmat_diagscale(), dmat_duplicate(), dmat_elemAA(), dmat_new_dense(), dmat_print(), dmat_summary(), dmat_yAmpqTx(), dmat_yAmpqx(), dmat_yATDAx(), dmat_yATx(), dmat_yAx(), dmat_yHx(), dmat_yHx_(), l1_logreg_train(), main(), read_mm_new_matrix(), and standardize_data().
double* dmatrix::val |
entry values
Referenced by dmat_A_axxTpA(), dmat_B_AAT(), dmat_B_ATA(), dmat_colavg(), dmat_colstd(), dmat_colsum(), dmat_copy(), dmat_diagadd(), dmat_diagscale(), dmat_duplicate(), dmat_elemAA(), dmat_free(), dmat_new_dense(), dmat_posv(), dmat_potrs(), dmat_print(), dmat_yAmpqTx(), dmat_yAmpqx(), dmat_yATDAx(), dmat_yATx(), dmat_yAx(), dmat_yHx(), dmat_yHx_(), l1_logreg_train(), main(), read_mm_new_matrix(), and standardize_data().
int* dmatrix::jdx |
column indices (for both csr and coord)
Referenced by dmat_colavg(), dmat_colstd(), dmat_colsum(), dmat_copy(), dmat_diagscale(), dmat_duplicate(), dmat_elemAA(), dmat_free(), dmat_new_dense(), dmat_print(), dmat_yAmpqTx(), dmat_yAmpqx(), dmat_yATDAx(), dmat_yATx(), dmat_yAx(), dmat_yHx(), dmat_yHx_(), main(), and read_mm_new_matrix().
int* dmatrix::idx |
row indices (for coordinate)
Referenced by dmat_build_idx(), dmat_colavg(), dmat_colsum(), dmat_copy(), dmat_diagscale(), dmat_duplicate(), dmat_elemAA(), dmat_free(), dmat_new_dense(), dmat_print(), main(), and read_mm_new_matrix().
int* dmatrix::rdx |
row start indices (for csr)
Referenced by dmat_build_idx(), dmat_copy(), dmat_duplicate(), dmat_elemAA(), dmat_free(), dmat_new_dense(), dmat_print(), dmat_yAmpqTx(), dmat_yAmpqx(), dmat_yATDAx(), dmat_yATx(), dmat_yAx(), dmat_yHx(), dmat_yHx_(), main(), and read_mm_new_matrix().