SRC/zutil.c File Reference

Utility routines for SuperMatrix structure. More...

#include <math.h>
#include "superlu_zdefs.h"

Include dependency graph for zutil.c:


Functions

void zCreate_CompCol_Matrix_dist (SuperMatrix *A, int_t m, int_t n, int_t nnz, doublecomplex *nzval, int_t *rowind, int_t *colptr, Stype_t stype, Dtype_t dtype, Mtype_t mtype)
void zCreate_CompRowLoc_Matrix_dist (SuperMatrix *A, int_t m, int_t n, int_t nnz_loc, int_t m_loc, int_t fst_row, doublecomplex *nzval, int_t *colind, int_t *rowptr, Stype_t stype, Dtype_t dtype, Mtype_t mtype)
void zCompRow_to_CompCol_dist (int_t m, int_t n, int_t nnz, doublecomplex *a, int_t *colind, int_t *rowptr, doublecomplex **at, int_t **rowind, int_t **colptr)
 Convert a row compressed storage into a column compressed storage.
void zCopy_CompCol_Matrix_dist (SuperMatrix *A, SuperMatrix *B)
 Copy matrix A into matrix B.
void zPrint_CompCol_Matrix_dist (SuperMatrix *A)
void zPrint_Dense_Matrix_dist (SuperMatrix *A)
int zPrint_CompRowLoc_Matrix_dist (SuperMatrix *A)
int file_zPrint_CompRowLoc_Matrix_dist (FILE *fp, SuperMatrix *A)
void zCreate_Dense_Matrix_dist (SuperMatrix *X, int_t m, int_t n, doublecomplex *x, int_t ldx, Stype_t stype, Dtype_t dtype, Mtype_t mtype)
void zCopy_Dense_Matrix_dist (int_t M, int_t N, doublecomplex *X, int_t ldx, doublecomplex *Y, int_t ldy)
void zCreate_SuperNode_Matrix_dist (SuperMatrix *L, int_t m, int_t n, int_t nnz, doublecomplex *nzval, int_t *nzval_colptr, int_t *rowind, int_t *rowind_colptr, int_t *col_to_sup, int_t *sup_to_col, Stype_t stype, Dtype_t dtype, Mtype_t mtype)
void zGenXtrue_dist (int_t n, int_t nrhs, doublecomplex *x, int_t ldx)
void zFillRHS_dist (char *trans, int_t nrhs, doublecomplex *x, int_t ldx, SuperMatrix *A, doublecomplex *rhs, int_t ldb)
 Let rhs[i] = sum of i-th row of A, so the solution vector is all 1's.
void zfill_dist (doublecomplex *a, int_t alen, doublecomplex dval)
 Fills a doublecomplex precision array with a given value.
void zinf_norm_error_dist (int_t n, int_t nrhs, doublecomplex *x, int_t ldx, doublecomplex *xtrue, int_t ldxtrue, gridinfo_t *grid)
 Check the inf-norm of the error vector.
void PrintDoublecomplex (char *name, int_t len, doublecomplex *x)
int file_PrintDoublecomplex (FILE *fp, char *name, int_t len, doublecomplex *x)
void zPrintLblocks (int_t iam, int_t nsupers, gridinfo_t *grid, Glu_persist_t *Glu_persist, LocalLU_t *Llu)
 Print the blocks in the factored matrix L.
void zPrintUblocks (int_t iam, int_t nsupers, gridinfo_t *grid, Glu_persist_t *Glu_persist, LocalLU_t *Llu)
 Print the blocks in the factored matrix U.
int zprint_gsmv_comm (FILE *fp, int_t m_loc, pzgsmv_comm_t *gsmv_comm, gridinfo_t *grid)

Detailed Description

 -- Distributed SuperLU routine (version 2.0) --
 Lawrence Berkeley National Lab, Univ. of California Berkeley.
 March 15, 2003

 Copyright (c) 1994 by Xerox Corporation.  All rights reserved.

 THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY
 EXPRESSED OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.

 Permission is hereby granted to use or copy this program for any
 purpose, provided the above notices are retained on all copies.
 Permission to modify the code and to distribute modified code is
 granted, provided the above notices are retained, and a notice that
 the code was modified is included with the above copyright notice.
 

Function Documentation

int file_PrintDoublecomplex ( FILE *  fp,
char *  name,
int_t  len,
doublecomplex x 
)

int file_zPrint_CompRowLoc_Matrix_dist ( FILE *  fp,
SuperMatrix A 
)

void PrintDoublecomplex ( char *  name,
int_t  len,
doublecomplex x 
)

void zCompRow_to_CompCol_dist ( int_t  m,
int_t  n,
int_t  nnz,
doublecomplex a,
int_t colind,
int_t rowptr,
doublecomplex **  at,
int_t **  rowind,
int_t **  colptr 
)

void zCopy_CompCol_Matrix_dist ( SuperMatrix A,
SuperMatrix B 
)

void zCopy_Dense_Matrix_dist ( int_t  M,
int_t  N,
doublecomplex X,
int_t  ldx,
doublecomplex Y,
int_t  ldy 
)

  Purpose
  =======

  Copies a two-dimensional matrix X to another matrix Y.
 

void zCreate_CompCol_Matrix_dist ( SuperMatrix A,
int_t  m,
int_t  n,
int_t  nnz,
doublecomplex nzval,
int_t rowind,
int_t colptr,
Stype_t  stype,
Dtype_t  dtype,
Mtype_t  mtype 
)

void zCreate_CompRowLoc_Matrix_dist ( SuperMatrix A,
int_t  m,
int_t  n,
int_t  nnz_loc,
int_t  m_loc,
int_t  fst_row,
doublecomplex nzval,
int_t colind,
int_t rowptr,
Stype_t  stype,
Dtype_t  dtype,
Mtype_t  mtype 
)

void zCreate_Dense_Matrix_dist ( SuperMatrix X,
int_t  m,
int_t  n,
doublecomplex x,
int_t  ldx,
Stype_t  stype,
Dtype_t  dtype,
Mtype_t  mtype 
)

void zCreate_SuperNode_Matrix_dist ( SuperMatrix L,
int_t  m,
int_t  n,
int_t  nnz,
doublecomplex nzval,
int_t nzval_colptr,
int_t rowind,
int_t rowind_colptr,
int_t col_to_sup,
int_t sup_to_col,
Stype_t  stype,
Dtype_t  dtype,
Mtype_t  mtype 
)

void zfill_dist ( doublecomplex a,
int_t  alen,
doublecomplex  dval 
)

void zFillRHS_dist ( char *  trans,
int_t  nrhs,
doublecomplex x,
int_t  ldx,
SuperMatrix A,
doublecomplex rhs,
int_t  ldb 
)

void zGenXtrue_dist ( int_t  n,
int_t  nrhs,
doublecomplex x,
int_t  ldx 
)

void zinf_norm_error_dist ( int_t  n,
int_t  nrhs,
doublecomplex x,
int_t  ldx,
doublecomplex xtrue,
int_t  ldxtrue,
gridinfo_t grid 
)

void zPrint_CompCol_Matrix_dist ( SuperMatrix A  ) 

int zPrint_CompRowLoc_Matrix_dist ( SuperMatrix A  ) 

void zPrint_Dense_Matrix_dist ( SuperMatrix A  ) 

int zprint_gsmv_comm ( FILE *  fp,
int_t  m_loc,
pzgsmv_comm_t gsmv_comm,
gridinfo_t grid 
)

void zPrintLblocks ( int_t  iam,
int_t  nsupers,
gridinfo_t grid,
Glu_persist_t Glu_persist,
LocalLU_t Llu 
)

void zPrintUblocks ( int_t  iam,
int_t  nsupers,
gridinfo_t grid,
Glu_persist_t Glu_persist,
LocalLU_t Llu 
)


Generated on Sat Aug 29 04:22:17 2009 for SuperLUDistributed by  doxygen 1.5.9