Blame view

fvn_sparse/UMFPACK/Source/umfpack_report_vector.c 1.2 KB
422234dc3   daniau   git-svn-id: https...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  /* ========================================================================== */
  /* === UMFPACK_report_vector ================================================ */
  /* ========================================================================== */
  
  /* -------------------------------------------------------------------------- */
  /* UMFPACK Copyright (c) Timothy A. Davis, CISE,                              */
  /* Univ. of Florida.  All Rights Reserved.  See ../Doc/License for License.   */
  /* web: http://www.cise.ufl.edu/research/sparse/umfpack                       */
  /* -------------------------------------------------------------------------- */
  
  /*
      User-callable.  Prints a real or complex vector.
      See umfpack_report_vector.h for details.
  */
  
  #include "umf_internal.h"
  #include "umf_report_vector.h"
  
  GLOBAL Int UMFPACK_report_vector
  (
      Int n,
      const double Xx [ ],
  #ifdef COMPLEX
      const double Xz [ ],
  #endif
      const double Control [UMFPACK_CONTROL]
  )
  {
      Int prl ;
  
  #ifndef COMPLEX
      double *Xz = (double *) NULL ;
  #endif
  
      prl = GET_CONTROL (UMFPACK_PRL, UMFPACK_DEFAULT_PRL) ;
  
      if (prl <= 2)
      {
  	return (UMFPACK_OK) ;
      }
  
      return (UMF_report_vector (n, Xx, Xz, prl, TRUE, FALSE)) ;
  }