repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
luiaard | luiaard-master/cudd/epd/epd.h | /**CHeaderFile*****************************************************************
FileName [epd.h]
PackageName [epd]
Synopsis [The University of Colorado extended double precision package.]
Description [arithmetic functions with extended double precision.]
SeeAlso []
Author [In-Ho Moon]
... | 7,208 | 34.865672 | 87 | h |
luiaard | luiaard-master/prism/src/prism/ngprism.c | /*
Copyright 2004-2012, Martian Software, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... | 23,216 | 25.965157 | 104 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_Hash.h | #ifndef HEADER_lp_hash
#define HEADER_lp_hash
/* For row and column name hash tables */
typedef struct _hashelem
{
char *name;
int index;
struct _hashelem *next;
struct _hashelem *nextelem;
} hashelem;
typedef struct /* _hashtable */
{
hashelem **table;
int ... | 1,141 | 24.954545 | 87 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_Hash.c |
#include <stdlib.h>
#include <string.h>
#include "lp_lib.h"
#include "lp_utils.h"
#include "lp_report.h"
#include "lp_Hash.h"
#ifdef FORTIFY
# include "lp_fortify.h"
#endif
#define HASH_START_SIZE 5000 /* Hash table size for row and column name storage */
#define NUMHASHPRIMES 45
STATIC hashtable *create_ha... | 5,564 | 22.284519 | 85 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_MDO.c | /*
Minimum matrix inverse fill-in modules - interface for lp_solve v5.0+
----------------------------------------------------------------------------------
Author: Kjell Eikland
Contact: kjell.eikland@broadpark.no
License terms: LGPL.
Requires: string.h, colamd.h, lp_lib.... | 6,986 | 27.871901 | 100 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_mipbb.h | #ifndef HEADER_lp_mipbb
#define HEADER_lp_mipbb
#include "lp_types.h"
#include "lp_utils.h"
/* Bounds storage for B&B routines */
typedef struct _BBrec
{
struct _BBrec *parent;
struct _BBrec *child;
lprec *lp;
int varno;
int vartype;
int lastvarcus; /* Count of non-... | 2,128 | 31.753846 | 95 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/ufortify.h | /*
* FILE:
* ufortify.h
*
* DESCRIPTION:
* User options for fortify. Changes to this file require fortify.c to be
* recompiled, but nothing else.
*/
#ifndef __UFORTIFY_H__
#define __UFORTIFY_H__
#define FORTIFY_STORAGE
#if defined MSDOS || defined __BORLANDC__ || defined __HIGHC__
# define KNOWS_POINTER_T... | 1,822 | 27.484375 | 75 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_scale.h | #ifndef HEADER_lp_scale
#define HEADER_lp_scale
#include "lp_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Put function headers here */
STATIC MYBOOL scale_updatecolumns(lprec *lp, REAL *scalechange, MYBOOL updateonly);
STATIC MYBOOL scale_updaterows(lprec *lp, REAL *scalechange, MYBOOL updateonly);
STATIC MYBO... | 1,008 | 30.53125 | 83 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_SOS.h | #ifndef HEADER_lp_SOS
#define HEADER_lp_SOS
/* Specially Ordered Sets (SOS) prototypes and settings */
/* ------------------------------------------------------------------------- */
#include "lp_types.h"
#include "lp_utils.h"
#include "lp_matrix.h"
/* SOS constraint defines ... | 4,627 | 41.458716 | 123 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_report.h | #ifndef HEADER_lp_report
#define HEADER_lp_report
#ifdef __cplusplus
extern "C" {
#endif
/* General information functions */
char * __VACALL explain(lprec *lp, char *format, ...);
void __VACALL report(lprec *lp, int level, char *format, ...);
/* Prototypes for debugging and general data dumps */
void debug_print(lpr... | 1,436 | 32.418605 | 99 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_MPS.h | #ifndef HEADER_lp_MPS
#define HEADER_lp_MPS
#include "lp_types.h"
/* For MPS file reading and writing */
#define ROWNAMEMASK "R%d"
#define ROWNAMEMASK2 "r%d"
#define COLNAMEMASK "C%d"
#define COLNAMEMASK2 "c%d"
#ifdef __cplusplus
extern "C" {
#endif
/* Read an MPS file */
MYBOOL MP... | 862 | 24.382353 | 90 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_solveDLL.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__22BF6D92_917F_4BDF_B806_0954721EBA95__INCLUDED_)
#define AFX_STDAFX_H__22BF6D92_917F_4BDF_B806_0954721EBA95__INCLUDED_
#if _M... | 777 | 30.12 | 97 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/fortify.h | #ifndef __FORTIFY_H__
#define __FORTIFY_H__
/*
* FILE:
* fortify.h
*
* DESCRIPTION:
* Header file for fortify.c - A fortified shell for malloc, realloc,
* calloc, strdup, getcwd, tempnam & free
*
* WRITTEN:
* spb 29/4/94
*
* VERSION:
* 1.0 29/4/94
*/
#include <stdlib.h>
#include "declare.h"
#... | 12,477 | 41.442177 | 128 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lpsolve.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__22BF6D92_917F_4BDF_B806_0954721EBA95__INCLUDED_)
#define AFX_STDAFX_H__22BF6D92_917F_4BDF_B806_0954721EBA95__INCLUDED_
#if _M... | 778 | 30.16 | 97 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_pricePSE.h | #ifndef HEADER_lp_pricePSE
#define HEADER_lp_pricePSE
#include "lp_types.h"
#define ApplySteepestEdgeMinimum
#ifdef __cplusplus
extern "C" {
#endif
/* Price norm management routines */
STATIC MYBOOL initPricer(lprec *lp);
INLINE MYBOOL applyPricer(lprec *lp);
STATIC void simplexPricer(lprec *lp, MYBOOL isdual);
STA... | 706 | 23.37931 | 97 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lpkit.h | #include "lp_lib.h"
#include "lp_report.h"
#define MALLOC(ptr, nr, type)\
((((nr) == 0) || ((ptr = (type *) malloc((size_t)((nr) * sizeof(*ptr)))) == NULL)) ? \
report(NULL, CRITICAL, "malloc of %d bytes failed on line %d of file %s\n",\
(nr) * sizeof(*ptr), __LINE__, __FILE__), (ptr = NULL /* (void *)... | 1,200 | 35.393939 | 105 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_price.h | #ifndef HEADER_lp_price
#define HEADER_lp_price
/* Local defines */
/* ------------------------------------------------------------------------- */
#define UseSortOnBound_Improve
/*#define UseSortOnBound_Substitute*/
#if 0 /* Stricter feasibility-preserving ... | 5,135 | 50.36 | 121 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_pricePSE.c |
#include <string.h>
#include "commonlib.h"
#include "lp_lib.h"
#include "lp_report.h"
#include "lp_pricePSE.h"
#ifdef FORTIFY
# include "lp_fortify.h"
#endif
/*
Advanced simplex price scaling modules - w/interface for lp_solve v5.0+
----------------------------------------------------------------------------... | 13,865 | 24.821229 | 109 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_simplex.h | #ifndef HEADER_lp_simplex
#define HEADER_lp_simplex
#include "lp_types.h"
#define ForceDualSimplexInBB /* Force use/switch of dual simplex in B&B */
#define AssumeHighAccuracyInBB /* No iteration of simplex solves at infeasibility */
/*#define UseLongStepPruning*/
/*#define UseLongStepDualPhase1*/
#d... | 1,057 | 29.228571 | 92 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/lp_presolve.h | #ifndef HEADER_lp_presolve
#define HEADER_lp_presolve
#include "lp_types.h"
#include "lp_matrix.h"
/* -------------------------------------------------------------------------------------------- */
/* Defines for various presolve options */
/* ------------------... | 4,171 | 31.850394 | 106 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/lp_BFP.h |
/* ---------------------------------------------------------------------------------- */
/* lp_solve v5+ headers for basis inversion / factorization libraries */
/* ---------------------------------------------------------------------------------- */
#define BFP_STATUS_RANKLOSS -1
#define BFP_STATU... | 4,608 | 54.53012 | 127 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/lp_BFP1.c |
/* Routines located in lp_BFP1.cpp; common for all factorization engines */
/* Cfr. lp_BFP.h for definitions */
/* ---------------------------------------------------------------------------------- */
/* Changes: ... | 5,569 | 25.908213 | 105 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/lp_BFP2.c |
/* Routines located in lp_BFP2.cpp; optional shared for canned implementations */
/* Cfr. lp_BFP.h for definitions */
/* ---------------------------------------------------------------------------------- */
/* DON'T MODIFY */
MYBOOL BFP_CALLMODEL bfp_init(... | 4,373 | 23.573034 | 96 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/lp_LUSOL.c |
/* Modularized simplex basis factorization module - w/interface for lp_solve v5.0+
----------------------------------------------------------------------------------
Author: Kjell Eikland
Contact: kjell.eikland@broadpark.no
License terms: LGPL.
Requires: lusol.h, lp_lib.h, myblas... | 23,817 | 31.361413 | 128 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/lp_LUSOL.h | #ifndef HEADER_lp_LUSOL
#define HEADER_lp_LUSOL
/* Include libraries for this inverse system */
#include "lp_types.h"
#include "lusol.h"
/* LUSOL defines */
#ifdef WIN32
# define LUSOL_UseBLAS
#endif
/*#define MAPSINGULARCOLUMN*/
#define MATINDEXBASE LUSOL_ARRAYOFFSET /* Inversion engine index start for arrays */
#de... | 2,818 | 43.046875 | 110 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/lusol6l0.c |
/* Create a row-based version of L0.
This makes it possible to solve L0'x=h (btran) faster for sparse h,
since we only run down the columns of L0' (rows of LO) for which
the corresponding entry in h is non-zero. */
MYBOOL LU1L0(LUSOLrec *LUSOL, LUSOLmat **mat, int *inform)
{
MYBOOL status = FALSE;
int ... | 4,498 | 26.432927 | 86 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/lusol6u.c |
/* Create a column-based version of U.
This makes it possible to solve Ux=h (ftran) faster for sparse h,
since we only run down the rows of U (columns of U') for which
the corresponding entry in h is non-zero. */
MYBOOL LU1U0(LUSOLrec *LUSOL, LUSOLmat **mat, int *inform)
{
MYBOOL status = FALSE;
int K,... | 4,899 | 26.683616 | 90 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/lusolio.h | #ifndef HEADER_lusolio
#define HEADER_lusolio
/* Include necessary libraries */
/* ------------------------------------------------------------------------- */
#include "lusol.h"
MYBOOL ctf_read_A(char *filename, int maxm, int maxn, int maxnz,
int *m, in... | 1,014 | 39.6 | 79 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/lusol8a.c |
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
File lusol8a
lu8rpc
Sparse LU update: Replace Column
LUSOL's sparse implementation of the Bartels-Golub update.
01 May 2002: Derived from LUSOL's original lu8a.f file.
01 May 2002: Current version of lusol8a.f.
++++++... | 11,175 | 38.914286 | 114 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/myblas.h | #ifndef HEADER_myblas
#define HEADER_myblas
/* ************************************************************************ */
/* BLAS function interface with local and external loadable versions */
/* Author: Kjell Eikland */
/* Version: Initial version spring 200... | 5,580 | 41.603053 | 110 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/lusolio.c |
#include <stdio.h>
#include <string.h>
#include "mmio.h"
#include "hbio.h"
#include "lusolio.h"
/* Utility routines to read matrix files in the Coordinate Text File format*/
MYBOOL ctf_read_A(char *filename, int maxm, int maxn, int maxnz,
int *m, int *n, int *nnzero, int *iA, int *jA, REAL *Aij)
{
... | 7,273 | 23.327759 | 85 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/myblas.c |
#include <stdlib.h>
#include <stdio.h>
/*#include <memory.h>*/
#include <string.h>
#include <math.h>
#include "myblas.h"
#ifdef FORTIFY
# include "lp_fortify.h"
#endif
/* ************************************************************************ */
/* Initialize BLAS interfacing routines ... | 19,226 | 21.62 | 93 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/mmio.h | /*
* Matrix Market I/O library for ANSI C
*
* See http://math.nist.gov/MatrixMarket for details.
*
*
*/
#ifndef MM_IO_H
#define MM_IO_H
#define MM_MAX_LINE_LENGTH 1025
#define MatrixMarketBanner "%%MatrixMarket"
#define MM_MAX_TOKEN_LENGTH 64
typedef char MM_typecode[4];
char *mm_typecode_to_str(MM_typecode mat... | 4,320 | 31.246269 | 80 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/lusol.h | #ifndef HEADER_LUSOL
#define HEADER_LUSOL
/* Include necessary libraries */
/* ------------------------------------------------------------------------- */
#include <stdio.h>
#include "commonlib.h"
/* Version information ... | 14,037 | 38.212291 | 102 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/sparselib.h |
#include "commonlib.h"
/*#define DEBUG_SPARSELIB*/
#define INITIALSIZE 10
#define RESIZEDELTA 4
#ifndef SPARSELIB
#define SPARSELIB
typedef struct _sparseVector {
int limit;
int size;
int count;
int *index;
REAL *value;
} sparseVector;
typedef struct _sparseMatrix {
int limit;
int ... | 2,975 | 34.011765 | 107 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/sparselib.c |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "commonlib.h"
#include "myblas.h"
#include "sparselib.h"
sparseMatrix *createMatrix(int dimLimit, int lenLimit, int initVectors)
{
int initsize;
sparseMatrix *matrix;
if(initVectors < 0)
initVectors = 0;
if(in... | 21,130 | 21.173137 | 106 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/lusol7a.c |
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
File lusol7a
lu7add lu7cyc lu7elm lu7for lu7rnk lu7zap
Utilities for LUSOL's update routines.
lu7for is the most important -- the forward sweep.
01 May 2002: Derived from LUSOL's original lu7a.f file.
01 May 2002:... | 22,181 | 30.46383 | 83 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/lusol2.c |
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
File lusol2 LUSOL heap management routines
Hbuild Hchange Hdelete Hdown Hinsert Hup
Heap-management routines for LUSOL's lu1fac.
May be useful for other applications.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++... | 6,437 | 30.404878 | 72 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/hbio.h | #ifndef IOHB_H
#define IOHB_H
#include<stdio.h>
#include<stdlib.h>
#include<sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
int readHB_info(const char* filename, int* M, int* N, int* nz, char** Type,
int* Nrhs);
int readHB_header(FILE* in_file, char* Title, ... | 2,678 | 38.397059 | 90 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/bfp/bfp_LUSOL/LUSOL/mmio.c | /*
* Matrix Market I/O library for ANSI C
*
* See http://math.nist.gov/MatrixMarket for details.
*
* (Version 1.01, 5/2003)
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "mmio.h"
int mm_read_unsymmetric_sparse(const char *fname, int *M_, int *N_, int *nz_,
... | 12,650 | 24.506048 | 85 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/shared/myblas.h | #ifndef HEADER_myblas
#define HEADER_myblas
/* ************************************************************************ */
/* BLAS function interface with local and external loadable versions */
/* Author: Kjell Eikland */
/* Version: Initial version spring 200... | 5,333 | 39.105263 | 110 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/shared/myblas.c |
#include <stdlib.h>
#include <stdio.h>
/*#include <memory.h>*/
#include <string.h>
#include <math.h>
#include "myblas.h"
#ifdef FORTIFY
# include "lp_fortify.h"
#endif
/* ************************************************************************ */
/* Initialize BLAS interfacing routines ... | 19,493 | 22.152019 | 93 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/shared/mmio.h | /*
* Matrix Market I/O library for ANSI C
*
* See http://math.nist.gov/MatrixMarket for details.
*
*
*/
#ifndef MM_IO_H
#define MM_IO_H
#define MM_MAX_LINE_LENGTH 1025
#define MatrixMarketBanner "%%MatrixMarket"
#define MM_MAX_TOKEN_LENGTH 64
typedef char MM_typecode[4];
char *mm_typecode_to_str(MM_typecode mat... | 4,320 | 31.246269 | 80 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/shared/mmio.c | /*
* Matrix Market I/O library for ANSI C
*
* See http://math.nist.gov/MatrixMarket for details.
*
* (Version 1.01, 5/2003)
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "mmio.h"
int mm_read_unsymmetric_sparse(const char *fname, int *M_, int *N_, int *nz_,
... | 12,563 | 24.279678 | 85 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/demo/demo.c | /*
This program is originally made by by Jeroen J. Dirks (jeroend@tor.numetrix.com)
Adapted by Peter Notebaert (lpsolve@peno.be)
*/
#include <stdio.h>
#include "lp_lib.h"
#if defined FORTIFY
#include "lp_fortify.h"
int EndOfPgr(int i)
{
exit(i);
}
#endif
void press_ret(void)
{
#if !defined NORETURN
printf(... | 7,105 | 26.757813 | 123 | c |
luiaard | luiaard-master/prism/ext/lpsolve55/src/lp_solve_5.5/colamd/colamd.h | /* ========================================================================== */
/* === colamd/symamd prototypes and definitions ============================= */
/* ========================================================================== */
/*
You must include this file (colamd.h) in any routine that uses colamd... | 9,810 | 33.184669 | 85 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/lp_Hash.h | #ifndef HEADER_lp_hash
#define HEADER_lp_hash
/* For row and column name hash tables */
typedef struct _hashelem
{
char *name;
int index;
struct _hashelem *next;
struct _hashelem *nextelem;
} hashelem;
typedef struct /* _hashtable */
{
hashelem **table;
int ... | 1,141 | 24.954545 | 87 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/lp_mipbb.h | #ifndef HEADER_lp_mipbb
#define HEADER_lp_mipbb
#include "lp_types.h"
#include "lp_utils.h"
/* Bounds storage for B&B routines */
typedef struct _BBrec
{
struct _BBrec *parent;
struct _BBrec *child;
lprec *lp;
int varno;
int vartype;
int lastvarcus; /* Count of non-... | 2,128 | 31.753846 | 95 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/ufortify.h | /*
* FILE:
* ufortify.h
*
* DESCRIPTION:
* User options for fortify. Changes to this file require fortify.c to be
* recompiled, but nothing else.
*/
#ifndef __UFORTIFY_H__
#define __UFORTIFY_H__
#define FORTIFY_STORAGE
#if defined MSDOS || defined __BORLANDC__ || defined __HIGHC__
# define KNOWS_POINTER_T... | 1,822 | 27.484375 | 75 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/lp_scale.h | #ifndef HEADER_lp_scale
#define HEADER_lp_scale
#include "lp_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Put function headers here */
STATIC MYBOOL scale_updatecolumns(lprec *lp, REAL *scalechange, MYBOOL updateonly);
STATIC MYBOOL scale_updaterows(lprec *lp, REAL *scalechange, MYBOOL updateonly);
STATIC MYBO... | 1,008 | 30.53125 | 83 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/lp_SOS.h | #ifndef HEADER_lp_SOS
#define HEADER_lp_SOS
/* Specially Ordered Sets (SOS) prototypes and settings */
/* ------------------------------------------------------------------------- */
#include "lp_types.h"
#include "lp_utils.h"
#include "lp_matrix.h"
/* SOS constraint defines ... | 4,627 | 41.458716 | 123 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/lp_report.h | #ifndef HEADER_lp_report
#define HEADER_lp_report
#ifdef __cplusplus
extern "C" {
#endif
/* General information functions */
char * __VACALL explain(lprec *lp, char *format, ...);
void __VACALL report(lprec *lp, int level, char *format, ...);
/* Prototypes for debugging and general data dumps */
void debug_print(lpr... | 1,436 | 32.418605 | 99 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/lp_MPS.h | #ifndef HEADER_lp_MPS
#define HEADER_lp_MPS
#include "lp_types.h"
/* For MPS file reading and writing */
#define ROWNAMEMASK "R%d"
#define ROWNAMEMASK2 "r%d"
#define COLNAMEMASK "C%d"
#define COLNAMEMASK2 "c%d"
#ifdef __cplusplus
extern "C" {
#endif
/* Read an MPS file */
MYBOOL MP... | 862 | 24.382353 | 90 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/lp_solveDLL.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__22BF6D92_917F_4BDF_B806_0954721EBA95__INCLUDED_)
#define AFX_STDAFX_H__22BF6D92_917F_4BDF_B806_0954721EBA95__INCLUDED_
#if _M... | 777 | 30.12 | 97 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/fortify.h | #ifndef __FORTIFY_H__
#define __FORTIFY_H__
/*
* FILE:
* fortify.h
*
* DESCRIPTION:
* Header file for fortify.c - A fortified shell for malloc, realloc,
* calloc, strdup, getcwd, tempnam & free
*
* WRITTEN:
* spb 29/4/94
*
* VERSION:
* 1.0 29/4/94
*/
#include <stdlib.h>
#include "declare.h"
#... | 12,477 | 41.442177 | 128 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/lpsolve.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__22BF6D92_917F_4BDF_B806_0954721EBA95__INCLUDED_)
#define AFX_STDAFX_H__22BF6D92_917F_4BDF_B806_0954721EBA95__INCLUDED_
#if _M... | 778 | 30.16 | 97 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/lp_pricePSE.h | #ifndef HEADER_lp_pricePSE
#define HEADER_lp_pricePSE
#include "lp_types.h"
#define ApplySteepestEdgeMinimum
#ifdef __cplusplus
extern "C" {
#endif
/* Price norm management routines */
STATIC MYBOOL initPricer(lprec *lp);
INLINE MYBOOL applyPricer(lprec *lp);
STATIC void simplexPricer(lprec *lp, MYBOOL isdual);
STA... | 706 | 23.37931 | 97 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/lpkit.h | #include "lp_lib.h"
#include "lp_report.h"
#define MALLOC(ptr, nr, type)\
((((nr) == 0) || ((ptr = (type *) malloc((size_t)((nr) * sizeof(*ptr)))) == NULL)) ? \
report(NULL, CRITICAL, "malloc of %d bytes failed on line %d of file %s\n",\
(nr) * sizeof(*ptr), __LINE__, __FILE__), (ptr = NULL /* (void *)... | 1,200 | 35.393939 | 105 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/lp_price.h | #ifndef HEADER_lp_price
#define HEADER_lp_price
/* Local defines */
/* ------------------------------------------------------------------------- */
#define UseSortOnBound_Improve
/*#define UseSortOnBound_Substitute*/
#if 0 /* Stricter feasibility-preserving ... | 5,135 | 50.36 | 121 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/lp_simplex.h | #ifndef HEADER_lp_simplex
#define HEADER_lp_simplex
#include "lp_types.h"
#define ForceDualSimplexInBB /* Force use/switch of dual simplex in B&B */
#define AssumeHighAccuracyInBB /* No iteration of simplex solves at infeasibility */
/*#define UseLongStepPruning*/
/*#define UseLongStepDualPhase1*/
#d... | 1,057 | 29.228571 | 92 | h |
luiaard | luiaard-master/prism/ext/lpsolve55/include/lp_presolve.h | #ifndef HEADER_lp_presolve
#define HEADER_lp_presolve
#include "lp_types.h"
#include "lp_matrix.h"
/* -------------------------------------------------------------------------------------------- */
/* Defines for various presolve options */
/* ------------------... | 4,171 | 31.850394 | 106 | h |
luiaard | luiaard-master/prism/include/dd.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 1,526 | 33.704545 | 105 | h |
luiaard | luiaard-master/prism/include/odd.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 2,178 | 28.849315 | 112 | h |
luiaard | luiaard-master/prism/include/jnipointer.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Alistair John Strachan <alistair@devzero.co.uk> (University of Edinburgh)
//
//------------------------------------------------------------------------------
//
// This file is part of PRISM.
/... | 2,058 | 28.414286 | 80 | h |
luiaard | luiaard-master/prism/include/PrismNativeGlob.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford)
//
//------------------------------------------------------------------------------
//
// This file is part of PRISM.
//
// PR... | 4,709 | 31.937063 | 120 | h |
luiaard | luiaard-master/prism/include/ExportIterations.h | //==============================================================================
//
// Copyright (c) 2016-
// Authors:
// * Joachim Klein <klein@tcs.inf.tu-dresden.de> (TU Dresden)
//
//------------------------------------------------------------------------------
//
// This file is part of PRISM.
//
// PRISM is free s... | 3,638 | 29.325 | 112 | h |
luiaard | luiaard-master/prism/include/PrismHybridGlob.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 2,181 | 37.280702 | 105 | h |
luiaard | luiaard-master/prism/include/dd_vars.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 2,046 | 48.926829 | 110 | h |
luiaard | luiaard-master/prism/include/PrismMTBDDGlob.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 2,131 | 35.135593 | 105 | h |
luiaard | luiaard-master/prism/include/DoubleVectorGlob.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 1,397 | 36.783784 | 105 | h |
luiaard | luiaard-master/prism/include/iv.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 1,952 | 35.166667 | 119 | h |
luiaard | luiaard-master/prism/include/SimulatorEngine.h | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class simulator_SimulatorEngine */
#ifndef _Included_simulator_SimulatorEngine
#define _Included_simulator_SimulatorEngine
#ifdef __cplusplus
extern "C" {
#endif
#undef simulator_SimulatorEngine_ERROR
#define simulator_SimulatorEngine... | 1,576 | 38.425 | 73 | h |
luiaard | luiaard-master/prism/include/dd_basics.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 2,601 | 37.264706 | 105 | h |
luiaard | luiaard-master/prism/include/dd_abstr.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 1,828 | 44.725 | 105 | h |
luiaard | luiaard-master/prism/include/Measures.h | //==============================================================================
//
// Copyright (c) 2016-
// Authors:
// * Dave Parker <d.a.parker@cs.bham.ac.uk> (University of Birmingham)
// * Joachim Klein <klein@tcs.inf.tu-dresden.de> (TU Dresden)
//
//---------------------------------------------------------------... | 5,283 | 26.957672 | 101 | h |
luiaard | luiaard-master/prism/include/IntervalIteration.h | //==============================================================================
//
// Copyright (c) 2016-
// Authors:
// * Joachim Klein <klein@tcs.inf.tu-dresden.de> (TU Dresden)
//
//------------------------------------------------------------------------------
//
// This file is part of PRISM.
//
// PRISM is free s... | 4,593 | 30.902778 | 93 | h |
luiaard | luiaard-master/prism/include/dd_cudd.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 1,887 | 40.043478 | 105 | h |
luiaard | luiaard-master/prism/include/dd_term.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 2,495 | 47 | 105 | h |
luiaard | luiaard-master/prism/include/PrismSparseGlob.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 2,273 | 37.542373 | 105 | h |
luiaard | luiaard-master/prism/include/dd_info.h | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 2,001 | 43.488889 | 105 | h |
luiaard | luiaard-master/prism/include/jni/dv_DoubleVector.h | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class dv_DoubleVector */
#ifndef _Included_dv_DoubleVector
#define _Included_dv_DoubleVector
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: dv_DoubleVector
* Method: DV_SetCUDDManager
* Signature: (J)V
*/
JNIEXPORT void... | 6,357 | 24.031496 | 75 | h |
luiaard | luiaard-master/prism/include/jni/dv_IntegerVector.h | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class dv_IntegerVector */
#ifndef _Included_dv_IntegerVector
#define _Included_dv_IntegerVector
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: dv_IntegerVector
* Method: IV_CreateZeroVector
* Signature: (I)J
*/
JNIEXPOR... | 1,399 | 21.580645 | 66 | h |
luiaard | luiaard-master/prism/include/jni/sparse_NDSparseMatrix.h | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class sparse_NDSparseMatrix */
#ifndef _Included_sparse_NDSparseMatrix
#define _Included_sparse_NDSparseMatrix
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: sparse_NDSparseMatrix
* Method: PS_NDGetActionIndex
* Signatur... | 1,501 | 26.814815 | 88 | h |
luiaard | luiaard-master/prism/include/jni/jdd_JDD.h | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class jdd_JDD */
#ifndef _Included_jdd_JDD
#define _Included_jdd_JDD
#ifdef __cplusplus
extern "C" {
#endif
#undef jdd_JDD_PLUS
#define jdd_JDD_PLUS 1L
#undef jdd_JDD_MINUS
#define jdd_JDD_MINUS 2L
#undef jdd_JDD_TIMES
#define jdd_JDD... | 15,900 | 21.14624 | 97 | h |
luiaard | luiaard-master/prism/include/jni/prism_PrismNative.h | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class prism_PrismNative */
#ifndef _Included_prism_PrismNative
#define _Included_prism_PrismNative
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: prism_PrismNative
* Method: PN_FreeGlobalRefs
* Signature: ()V
*/
JNIEXPO... | 5,000 | 22.369159 | 84 | h |
luiaard | luiaard-master/prism/include/jni/hybrid_PrismHybrid.h | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class hybrid_PrismHybrid */
#ifndef _Included_hybrid_PrismHybrid
#define _Included_hybrid_PrismHybrid
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: hybrid_PrismHybrid
* Method: PH_FreeGlobalRefs
* Signature: ()V
*/
JNI... | 7,929 | 29.267176 | 127 | h |
luiaard | luiaard-master/prism/include/jni/prism_NativeIntArray.h | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class prism_NativeIntArray */
#ifndef _Included_prism_NativeIntArray
#define _Included_prism_NativeIntArray
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: prism_NativeIntArray
* Method: NIA_CreateArray
* Signature: (I)J
... | 1,203 | 21.296296 | 66 | h |
luiaard | luiaard-master/prism/include/jni/odd_ODDUtils.h | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class odd_ODDUtils */
#ifndef _Included_odd_ODDUtils
#define _Included_odd_ODDUtils
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: odd_ODDUtils
* Method: ODD_SetCUDDManager
* Signature: (J)V
*/
JNIEXPORT void JNICALL Ja... | 2,008 | 20.37234 | 67 | h |
Zero-shot-RIS | Zero-shot-RIS-master/third_party/old_detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | // Copyright (c) Facebook, Inc. and its affiliates.
#pragma once
#include <cassert>
#include <cmath>
#if defined(__CUDACC__) || __HCC__ == 1 || __HIP__ == 1
// Designates functions callable from the host (CPU) and the device (GPU)
#define HOST_DEVICE __host__ __device__
#define HOST_DEVICE_INLINE HOST_DEVICE __forcei... | 10,844 | 28.231806 | 80 | h |
Zero-shot-RIS | Zero-shot-RIS-master/third_party/old_detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated.h | // Copyright (c) Facebook, Inc. and its affiliates.
#pragma once
#include <torch/types.h>
namespace detectron2 {
at::Tensor box_iou_rotated_cpu(
const at::Tensor& boxes1,
const at::Tensor& boxes2);
#if defined(WITH_CUDA) || defined(WITH_HIP)
at::Tensor box_iou_rotated_cuda(
const at::Tensor& boxes1,
... | 988 | 26.472222 | 80 | h |
Zero-shot-RIS | Zero-shot-RIS-master/third_party/old_detectron2/detectron2/layers/csrc/deformable/deform_conv.h | // Copyright (c) Facebook, Inc. and its affiliates.
#pragma once
#include <torch/types.h>
namespace detectron2 {
#if defined(WITH_CUDA) || defined(WITH_HIP)
int deform_conv_forward_cuda(
at::Tensor input,
at::Tensor weight,
at::Tensor offset,
at::Tensor output,
at::Tensor columns,
at::Tensor o... | 8,384 | 21.18254 | 66 | h |
Zero-shot-RIS | Zero-shot-RIS-master/third_party/old_detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h | // Copyright (c) Facebook, Inc. and its affiliates.
#pragma once
#include <torch/types.h>
namespace detectron2 {
at::Tensor ROIAlignRotated_forward_cpu(
const at::Tensor& input,
const at::Tensor& rois,
const float spatial_scale,
const int pooled_height,
const int pooled_width,
const int sampli... | 2,870 | 23.75 | 79 | h |
Zero-shot-RIS | Zero-shot-RIS-master/third_party/old_detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated.h | // Copyright (c) Facebook, Inc. and its affiliates.
#pragma once
#include <torch/types.h>
namespace detectron2 {
at::Tensor nms_rotated_cpu(
const at::Tensor& dets,
const at::Tensor& scores,
const double iou_threshold);
#if defined(WITH_CUDA) || defined(WITH_HIP)
at::Tensor nms_rotated_cuda(
const at... | 1,089 | 26.25 | 80 | h |
Zero-shot-RIS | Zero-shot-RIS-master/third_party/old_detectron2/detectron2/layers/csrc/cocoeval/cocoeval.h | // Copyright (c) Facebook, Inc. and its affiliates.
#pragma once
#include <pybind11/numpy.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/stl_bind.h>
#include <vector>
namespace py = pybind11;
namespace detectron2 {
namespace COCOeval {
// Annotation data for a single object instance... | 3,515 | 38.505618 | 80 | h |
Zero-shot-RIS | Zero-shot-RIS-master/third_party/old_detectron2/projects/TensorMask/tensormask/layers/csrc/SwapAlign2Nat/SwapAlign2Nat.h | // Copyright (c) Facebook, Inc. and its affiliates.
#pragma once
#include <torch/types.h>
namespace tensormask {
#if defined(WITH_CUDA) || defined(WITH_HIP)
at::Tensor SwapAlign2Nat_forward_cuda(
const at::Tensor& X,
const int lambda_val,
const float pad_val);
at::Tensor SwapAlign2Nat_backward_cuda(
... | 1,329 | 23.181818 | 62 | h |
Zero-shot-RIS | Zero-shot-RIS-master/refer/external/maskApi.c | /**************************************************************************
* Microsoft COCO Toolbox. version 2.0
* Data, paper, and tutorials available at: http://mscoco.org/
* Code written by Piotr Dollar and Tsung-Yi Lin, 2015.
* Licensed under the Simplified BSD License [see coco/license.txt]
****************... | 8,249 | 34.714286 | 75 | c |
Zero-shot-RIS | Zero-shot-RIS-master/refer/external/maskApi.h | /**************************************************************************
* Microsoft COCO Toolbox. version 2.0
* Data, paper, and tutorials available at: http://mscoco.org/
* Code written by Piotr Dollar and Tsung-Yi Lin, 2015.
* Licensed under the Simplified BSD License [see coco/license.txt]
****************... | 2,176 | 34.688525 | 75 | h |
rivuletpy | rivuletpy-master/rivuletpy/msfm/msfmmodule.c | #include <Python.h>
#include "_msfm.h"
#include "numpy/arrayobject.h"
/*This function MSFM3D calculates the shortest distance from a list of */
/*points to all other pixels in an image, using the */
/*Multistencil Fast Marching Method (MSFM). This method gives more accurate */
/*distances by using second order derivat... | 4,253 | 32.234375 | 119 | c |
rivuletpy | rivuletpy-master/rivuletpy/msfm/_msfm.h | #include "Python.h"
#include "numpy/arrayobject.h"
#include <stdbool.h>
#ifndef _MSFM
#define _MSFM
#endif
void msfm3d(npy_double *F, // The input speed image
npy_int64 *bimg,
int dims[3], // The size of the input speed image
npy_int64 *SourcePoints, // The source point... | 557 | 31.823529 | 74 | h |
SelfSupporting | SelfSupporting-master/mesh.h | #ifndef MESH_H
#define MESH_H
#include <OpenMesh/Core/IO/MeshIO.hh> // Must be included before mesh kernel
#include <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh>
#include <set>
#include <QMutex>
#include <memory>
#include <Eigen/Core>
class Solvers;
class MeshRenderer;
class Controller;
struct MyTraits : public O... | 6,290 | 30.93401 | 129 | h |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.