-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06157c7
commit 430586d
Showing
1,749 changed files
with
11,335 additions
and
247,860 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,7 @@ | |
/* ------------------------------------------------------------------------- */ | ||
/* AMD Copyright (c) by Timothy A. Davis, */ | ||
/* Patrick R. Amestoy, and Iain S. Duff. See ../README.txt for License. */ | ||
/* email: davis at cise.ufl.edu CISE Department, Univ. of Florida. */ | ||
/* web: http://www.cise.ufl.edu/research/sparse/amd */ | ||
/* [email protected], http://www.suitesparse.com */ | ||
/* ------------------------------------------------------------------------- */ | ||
|
||
/* A simple C main program that illustrates the use of the ANSI C interface | ||
|
@@ -58,8 +57,8 @@ int main (void) | |
/* here is an example of how to use AMD_VERSION. This code will work in | ||
* any version of AMD. */ | ||
#if defined(AMD_VERSION) && (AMD_VERSION >= AMD_VERSION_CODE(1,2)) | ||
printf ("AMD version %d.%d, date: %s\n", AMD_MAIN_VERSION, AMD_SUB_VERSION, | ||
AMD_DATE) ; | ||
printf ("AMD version %d.%d.%d, date: %s\n", | ||
AMD_MAIN_VERSION, AMD_SUB_VERSION, AMD_SUBSUB_VERSION, AMD_DATE) ; | ||
#else | ||
printf ("AMD version: 1.1 or earlier\n") ; | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,7 @@ | |
/* ------------------------------------------------------------------------- */ | ||
/* AMD Copyright (c) by Timothy A. Davis, */ | ||
/* Patrick R. Amestoy, and Iain S. Duff. See ../README.txt for License. */ | ||
/* email: davis at cise.ufl.edu CISE Department, Univ. of Florida. */ | ||
/* web: http://www.cise.ufl.edu/research/sparse/amd */ | ||
/* [email protected], http://www.suitesparse.com */ | ||
/* ------------------------------------------------------------------------- */ | ||
|
||
/* A simple C main program that illustrates the use of the ANSI C interface | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,8 @@ | |
|
||
C ---------------------------------------------------------------------- | ||
C AMD, Copyright (c) by Timothy A. Davis, Patrick R. | ||
C Amestoy, and Iain S. Duff. See ../README.txt for | ||
C License. email: davis at cise.ufl.edu CISE Department, Univ. of | ||
C Florida. web: http://www.cise.ufl.edu/research/sparse/amd | ||
C Amestoy, and Iain S. Duff. See ../README.txt for License. | ||
C email: [email protected] | ||
C ---------------------------------------------------------------------- | ||
|
||
C This program provides an example of how to call the C version of AMD | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,8 @@ | |
|
||
C ---------------------------------------------------------------------- | ||
C AMD, Copyright (c) by Timothy A. Davis, Patrick R. | ||
C Amestoy, and Iain S. Duff. See ../README.txt for | ||
C License. email: davis at cise.ufl.edu CISE Department, Univ. of | ||
C Florida. web: http://www.cise.ufl.edu/research/sparse/amd | ||
C Amestoy, and Iain S. Duff. See ../README.txt for License. | ||
C email: [email protected] | ||
C ---------------------------------------------------------------------- | ||
|
||
C A simple Fortran 77 main program that illustrates the use of the | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
C ---------------------------------------------------------------------- | ||
C AMD, Copyright (c) by Timothy A. Davis, Patrick R. | ||
C Amestoy, and Iain S. Duff. See ../README.txt for | ||
C License. email: davis at cise.ufl.edu CISE Department, Univ. of | ||
C Florida. web: http://www.cise.ufl.edu/research/sparse/amd | ||
C Amestoy, and Iain S. Duff. See ../README.txt for License. | ||
C email: [email protected] | ||
C ---------------------------------------------------------------------- | ||
|
||
C This program provides an example of how to call the Fortran version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,7 @@ | |
/* ------------------------------------------------------------------------- */ | ||
/* AMD Copyright (c) by Timothy A. Davis, */ | ||
/* Patrick R. Amestoy, and Iain S. Duff. See ../README.txt for License. */ | ||
/* email: davis at cise.ufl.edu CISE Department, Univ. of Florida. */ | ||
/* web: http://www.cise.ufl.edu/research/sparse/amd */ | ||
/* email: [email protected] */ | ||
/* ------------------------------------------------------------------------- */ | ||
|
||
/* Fortran interface for the C-callable AMD library (int version only). This | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
/* ========================================================================= */ | ||
/* === AMD demo main program (UF_long integer version) ===================== */ | ||
/* === AMD demo main program (long integer version) ======================== */ | ||
/* ========================================================================= */ | ||
|
||
/* ------------------------------------------------------------------------- */ | ||
/* AMD Copyright (c) by Timothy A. Davis, */ | ||
/* Patrick R. Amestoy, and Iain S. Duff. See ../README.txt for License. */ | ||
/* email: davis at cise.ufl.edu CISE Department, Univ. of Florida. */ | ||
/* web: http://www.cise.ufl.edu/research/sparse/amd */ | ||
/* email: [email protected] */ | ||
/* ------------------------------------------------------------------------- */ | ||
|
||
/* A simple C main program that illustrates the use of the ANSI C interface | ||
|
@@ -16,14 +15,14 @@ | |
#include "amd.h" | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include "UFconfig.h" | ||
#define Long SuiteSparse_long | ||
|
||
int main (void) | ||
{ | ||
/* The symmetric can_24 Harwell/Boeing matrix, including upper and lower | ||
* triangular parts, and the diagonal entries. Note that this matrix is | ||
* 0-based, with row and column indices in the range 0 to n-1. */ | ||
UF_long n = 24, nz, | ||
Long n = 24, nz, | ||
Ap [ ] = { 0, 9, 15, 21, 27, 33, 39, 48, 57, 61, 70, 76, 82, 88, 94, 100, | ||
106, 110, 119, 128, 137, 143, 152, 156, 160 }, | ||
Ai [ ] = { | ||
|
@@ -52,15 +51,15 @@ int main (void) | |
/* column 22: */ 2, 20, 21, 22, | ||
/* column 23: */ 6, 11, 12, 23 } ; | ||
|
||
UF_long P [24], Pinv [24], i, j, k, jnew, p, inew, result ; | ||
Long P [24], Pinv [24], i, j, k, jnew, p, inew, result ; | ||
double Control [AMD_CONTROL], Info [AMD_INFO] ; | ||
char A [24][24] ; | ||
|
||
/* here is an example of how to use AMD_VERSION. This code will work in | ||
* any version of AMD. */ | ||
#if defined(AMD_VERSION) && (AMD_VERSION >= AMD_VERSION_CODE(1,2)) | ||
printf ("AMD version %d.%d, date: %s\n", AMD_MAIN_VERSION, AMD_SUB_VERSION, | ||
AMD_DATE) ; | ||
printf ("AMD version %d.%d.%d, date: %s\n", | ||
AMD_MAIN_VERSION, AMD_SUB_VERSION, AMD_SUBSUB_VERSION, AMD_DATE) ; | ||
#else | ||
printf ("AMD version: 1.1 or earlier\n") ; | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
/* ------------------------------------------------------------------------- */ | ||
/* AMD Copyright (c) by Timothy A. Davis, */ | ||
/* Patrick R. Amestoy, and Iain S. Duff. See ../README.txt for License. */ | ||
/* email: davis at cise.ufl.edu CISE Department, Univ. of Florida. */ | ||
/* web: http://www.cise.ufl.edu/research/sparse/amd */ | ||
/* email: [email protected] */ | ||
/* ------------------------------------------------------------------------- */ | ||
|
||
#include <stdio.h> | ||
|
Binary file not shown.
Oops, something went wrong.