The ChainCon Software (Release 0.03)
ssqcubs.cpp
Go to the documentation of this file.
1
/////////////////////////////////////////////////////////////////////////////
2
///
3
/// \file
4
///
5
/// A program for the computation of the Steenrod squares,
6
/// using algebraic minimal models for cubical sets.
7
///
8
/////////////////////////////////////////////////////////////////////////////
9
10
// Copyright (C) 2009-2016 by Pawel Pilarczyk.
11
//
12
// This file is part of my research software package. This is free software:
13
// you can redistribute it and/or modify it under the terms of the GNU
14
// General Public License as published by the Free Software Foundation,
15
// either version 3 of the License, or (at your option) any later version.
16
//
17
// This software is distributed in the hope that it will be useful,
18
// but WITHOUT ANY WARRANTY; without even the implied warranty of
19
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
// GNU General Public License for more details.
21
//
22
// You should have received a copy of the GNU General Public License
23
// along with this software; see the file "license.txt". If not,
24
// please, see <http://www.gnu.org/licenses/>.
25
26
// Started on July 4, 2013. Last revision: September 24, 2015.
27
28
29
// the choice of cubes or simplices
30
#ifndef CUBES_NOT_SIMPLICES
31
#define CUBES_NOT_SIMPLICES 1
32
#endif
33
34
// do not use the direct formula by Marek Krcal for cubes
35
#ifndef DIRECT_CUBICAL_FORMULA
36
#define DIRECT_CUBICAL_FORMULA 0
37
#endif
38
39
// include some standard C++ header files
40
#include <istream>
41
#include <ostream>
42
#include <string>
43
44
// include the string hashing definitions (before including "hashsets.h")
45
#include "
chaincon/stringhash.h
"
46
47
// include selected header files from the CHomP library
48
#include "chomp/system/config.h"
49
#include "chomp/struct/hashsets.h"
50
51
// include relevant local header files
52
#include "
chaincon/ssquaressim.h
"
53
#include "
ssqmain.h
"
54
55
56
// --------------------------------------------------
57
// -------------------- OVERTURE --------------------
58
// --------------------------------------------------
59
60
/// The title of the program and licensing information.
61
const
char
*
title
=
"\
62
Computation of Steenrod squares using an Algebraic Minimal Model.\n\
63
Version 0.01 (Jan 23, 2016). Copyright (C) 1997-2016 by Pawel Pilarczyk.\n\
64
This is free software. No warranty. Consult 'license.txt' for details."
;
65
66
/// Brief help information on the program's usage.
67
const
char
*
helpinfo
=
"\
68
This program computes and displays all the non-zero Steenrod squares\n\
69
of a cubical set. A formula introduced by P. Real and co-authors is used\n\
70
for a simplicial set into which the cubical set is first subdivided.\n\
71
Note that the ring of coefficients is fixed to Z_2.\n\
72
Call with:\n\
73
filename - the name of a file that contains a list of cells for the test,\n\
74
Switches and additional arguments:\n\
75
filename2 - the name of an additional file for relative (co)homology;\n\
76
-r - compute reduced homology (with the empty set as a cell of dim -1),\n\
77
-b - don't add boundary cells (use -bx and -ba for X and A selectively),\n\
78
--log filename - save the output to a file (without progress indicators),\n\
79
--quiet - suppress data output to the screen (whcih can be still logged),\n\
80
--help - display this brief help information only and exit.\n\
81
For more information please consult the accompanying documentation\n\
82
or ask the program's author at http://www.PawelPilarczyk.com/."
;
83
84
85
// --------------------------------------------------
86
// ---------------------- main ----------------------
87
// --------------------------------------------------
88
89
/// The main procedure of the program.
90
/// Returns: 0 = Ok, -1 = Error, 1 = Help displayed, 2 = Wrong arguments.
91
int
main
(
int
argc,
char
*argv [])
92
{
93
return
steenrodSquaresMain
(argc, argv,
title
,
helpinfo
);
94
}
/* main */
95
helpinfo
const char * helpinfo
Brief help information on the program's usage.
Definition:
ssqcubs.cpp:67
stringhash.h
Hashing keys for std::string.
ssqmain.h
The main function of a program for computing the Steenrod squares of a simplicial complex or a cubica...
ssquaressim.h
Computation of the Steenrod squares for simplicial cells.
main
int main(int argc, char *argv [])
The main procedure of the program.
Definition:
ssqcubs.cpp:91
steenrodSquaresMain
int steenrodSquaresMain(int argc, char *argv [], const char *title, const char *helpinfo)
The main procedure of the program.
Definition:
ssqmain.h:267
title
const char * title
The title of the program and licensing information.
Definition:
ssqcubs.cpp:61
Generated on Tue Jan 16 2018 22:49:02 for The ChainCon Software (Release 0.03) by
1.8.13