Skip to content

Commit

Permalink
Example demo output
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTimothyAldenDavis committed Sep 19, 2023
1 parent 3ec6a5c commit c4acfba
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 3 deletions.
183 changes: 183 additions & 0 deletions Example/Demo/mydemo.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
My demo
Date from #include 'my.h': Sept 18, 2023
Date from compiled library: Sept 18, 2023
version from #include 'my.h.': 1.4.1
version from compiled library: 1.4.1
SuiteSparse: v7.2.1 (Sept 18, 2023)
SuiteSparse: v7.2.1 (in library)
CXSparse: v4.2.1 (Sept 18, 2023)
CXSparse Version 4.2.1, Sept 18, 2023. Copyright (c) Timothy A. Davis, 2006-2022
2-by-2, nzmax: 4 nnz: 4, 1-norm: 34
col 0 : locations 0 to 1
0 : 11
1 : 21
col 1 : locations 2 to 3
0 : 12
1 : 22
AMD: v3.2.1 (Sept 18, 2023)
P [0] = 0
P [1] = 1
BTF: v2.2.1 (Sept 18, 2023)
P [0] = 0
P [1] = 1
Q [0] = 0
Q [1] = 1
nblocks 1
CAMD: v3.2.1 (Sept 18, 2023)
P [0] = 0
P [1] = 1
CCOLAMD: v3.2.1 (Sept 18, 2023)
P [0] = 0
P [1] = 1
COLAMD: v3.2.1 (Sept 18, 2023)
P [0] = 0
P [1] = 1
CHOLMOD: v4.2.1 (Sept 18, 2023)
CHOLMOD: v4.2.1 (in library)
GraphBLAS: v8.2.1 (Sept 18, 2023)
GraphBLAS: v8.2.1 (in library)
KLU: v2.2.1 (Sept 18, 2023)
x [0] = 36.4
x [1] = -32.7
error: 7.10543e-14
LDL: v3.2.1 (Sept 18, 2023)
x2 [0] = 36.4
x2 [1] = -32.7
error: 0
RBio: v4.2.1 (Sept 18, 2023)
njumbled 0, nzeros 0
result 0
mtype: iua
2-by-2 matrix |simple
3 1 1 1
iua 2 2 4 0
(40I2) (40I2) (26I3)
1 3 5
1 2 1 2
11 21 12 22
SPEX: v2.2.1 (Sept 18, 2023)
SPQR: v4.2.1 (Sept 18, 2023)

CHOLMOD dense: X from QR: 2-by-1,
leading dimension 2, nzmax 2, real, double
col 0:
0: 36.4
1: -32.7
OK

UMFPACK: v6.2.1 (Sept 18, 2023)
UMFPACK V6.2.1 (Sept 18, 2023)
UMFPACK: Copyright (c) 2005-2023 by Timothy A. Davis. All Rights Reserved.

UMFPACK License: SPDX-License-Identifier: GPL-2.0+
UMFPACK is available under alternate licenses,
contact T. Davis for details.
BLAS used: Intel MKL 64lp BLAS (32-bit integers)
BLAS integer size: 4 bytes
x [0] = 36.4
x [1] = -32.7
error: 5.68434e-14

UMFPACK: Copyright (c) 2005-2023 by Timothy A. Davis. All Rights Reserved.


UMFPACK License: SPDX-License-Identifier: GPL-2.0+
UMFPACK is available under alternate licenses,
contact T. Davis for details.


Availability: http://www.suitesparse.com
UMFPACK V6.2.1 (Sept 18, 2023): OK

UMFPACK V6.2.1 (Sept 18, 2023), Info:
matrix entry defined as: double
Int (generic integer) defined as: int64_t
BLAS library used: Intel MKL 64lp BLAS (32-bit integers). size of BLAS integer: 4
MATLAB: no.
CPU timer: SuiteSparse_time ( ) routine.
number of rows in matrix A: 2
number of columns in matrix A: 2
entries in matrix A: 4
memory usage reported in: 16-byte Units
size of int32_t: 4 bytes
size of int64_t: 8 bytes
size of pointer: 8 bytes
size of numerical entry: 8 bytes

strategy used: symmetric
ordering used: amd on A+A'
modify Q during factorization: no
prefer diagonal pivoting: yes
pivots with zero Markowitz cost: 0
submatrix S after removing zero-cost pivots:
number of "dense" rows: 0
number of "dense" columns: 0
number of empty rows: 0
number of empty columns 0
submatrix S square and diagonal preserved
pattern of square submatrix S:
number rows and columns 2
symmetry of nonzero pattern: 1.000000
nz in S+S' (excl. diagonal): 2
nz on diagonal of matrix S: 2
fraction of nz on diagonal: 1.000000
ordering statistics, for strict diagonal pivoting:
est. flops for LU factorization: 3.00000e+00
est. nz in L+U (incl. diagonal): 4
est. largest front (# entries): 4
est. max nz in any column of L: 2
number of "dense" rows/columns in S+S': 0
symbolic factorization defragmentations: 0
symbolic memory usage (Units): 81
symbolic memory usage (MBytes): 0.0
Symbolic size (Units): 40
Symbolic size (MBytes): 0
symbolic factorization wallclock time(sec): 0.00

matrix scaled: yes (divided each row by sum of abs values in each row)
minimum sum (abs (rows of A)): 2.30000e+01
maximum sum (abs (rows of A)): 4.30000e+01

symbolic/numeric factorization: upper bound actual %
variable-sized part of Numeric object:
initial size (Units) 45 40 89%
peak size (Units) 638 636 100%
final size (Units) 3 5 167%
Numeric final size (Units) 50 51 102%
Numeric final size (MBytes) 0.0 0.0 102%
peak memory usage (Units) 758 756 100%
peak memory usage (MBytes) 0.0 0.0 100%
numeric factorization flops 3.00000e+00 3.00000e+00 100%
nz in L (incl diagonal) 3 3 100%
nz in U (incl diagonal) 3 3 100%
nz in L+U (incl diagonal) 4 4 100%
largest front (# entries) 6 4 67%
largest # rows in front 3 2 67%
largest # columns in front 2 2 100%

initial allocation ratio used: 1.2
# of forced updates due to frontal growth: 0
number of off-diagonal pivots: 0
nz in L (incl diagonal), if none dropped 3
nz in U (incl diagonal), if none dropped 3
number of small entries dropped 0
nonzeros on diagonal of U: 2
min abs. value on diagonal of U: 2.11e-02
max abs. value on diagonal of U: 4.78e-01
estimate of reciprocal of condition number: 4.42e-02
indices in compressed pattern: 2
numerical values stored in Numeric object: 4
numeric factorization defragmentations: 0
numeric factorization reallocations: 0
costly numeric factorization reallocations: 0
numeric factorization wallclock time (sec): 0.00

solve flops: 4.20000e+01
iterative refinement steps taken: 0
iterative refinement steps attempted: 0
sparse backward error omega1: 7.44e-17
sparse backward error omega2: 0.00e+00
solve wall clock time (sec): 0.00

total symbolic + numeric + solve flops: 4.50000e+01

4 changes: 2 additions & 2 deletions Example/Include/my.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
// file, since it is constructed from Config/my.h.in by cmake.

// version and date for example user library
#define MY_DATE "Sept 8, 2023"
#define MY_DATE "Sept 18, 2023"
#define MY_MAJOR_VERSION 1
#define MY_MINOR_VERSION 4
#define MY_PATCH_VERSION 0
#define MY_PATCH_VERSION 1

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion Example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ to build a library that depends on SuiteSparse libraries.
Include/my.h created by cmake from Config/my.h.in
Config/my.h.in input file for Include/my.h
Demo/my_demo.c demo program that uses 'my' package
Demo/my_demo.out output of my_demo
Demo/mydemo.out output of my_demo
Source/my.c library source code
build where the 'my' package is built
cmake_modules/FindGMP.cmake how to find the GMP library
Expand Down

0 comments on commit c4acfba

Please sign in to comment.