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 |
|---|---|---|---|---|---|---|
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Source/byteswap_utilities.c | /////////////////////////////////////////////////////////////////////////////
//
//! @file byteswap_utilities.c
//! @author Nathan Miller
//! @version 1.1
//
//! @description Utility functions for byteswapping
//
// External dependencies:
//
// mip_types.h
//
//!@copyright 2014 Lord Microstrain Sensing Systems. ... | 2,630 | 21.878261 | 87 | c |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_gx3_35.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_gx3_35.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description MIP GX3-35 Specific Structures and Definitions
//
// External dependencies:
//
// mip_types.h
//
//!@copyright 2014 Lord Microstrain Sensing Syste... | 3,478 | 25.157895 | 87 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/byteswap_utilities.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file byteswap_utilities.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description Utility functions for byteswapping
//
// External dependencies:
//
// mip_types.h
//
//!@copyright 2014 Lord Microstrain Sensing Systems. ... | 1,941 | 24.552632 | 87 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_gx4_15.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_gx4_15.h -
//! @author Nathan Miller
//! @version 1.1
//
//! @description MIP GX4 Specific Structures and Definitions
//
// External dependencies:
//
// None
//
//!@copyright 2014 Lord Microstrain Sensing Systems.
//
... | 3,254 | 23.291045 | 87 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_gx4_25.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_gx4_25.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description MIP GX4-25 Specific Structures and Definitions
//
// External dependencies:
//
// mip_types.h
//
//!@copyright 2014 Lord Microstrain Sensing Syste... | 3,262 | 23.533835 | 87 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_sdk_gps.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_sdk_gps.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description MIP GPS Descriptor Set Definitions
//
// External dependencies:
//
//
//
//!@copyright 2014 Lord Microstrain Sensing Systems.
//
//!@section CH... | 13,149 | 26.568134 | 120 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_sdk_user_functions.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_sdk_user_functions.h
//! @author Nathan Miller
//! @version 1.0
//
//! @description Target-Specific, User-Defined Functions Definitions
//
// External dependencies:
//
//
//
//! @copyright 2011 Microstrain.
//
//!@se... | 2,445 | 27.44186 | 105 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_sdk_base.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_sdk_base.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description MIP BASE Descriptor Set Definitions
//
// External dependencies:
//
//
//
//!@copyright 2014 Lord Microstrain Sensing Systems.
//
//!@section ... | 4,618 | 32.471014 | 124 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_gx4_45.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_gx4_45.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description MIP GX4-45 Specific Structures and Definitions
//
// External dependencies:
//
// mip_types.h
//
//!@copyright 2014 Lord Microstrain Sensing Syste... | 3,542 | 23.604167 | 87 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_rq1.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_rq1.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description MIP RQ1 Specific Structures and Definitions
//
// External dependencies:
//
// mip_types.h
//
//!@copyright 2014 Lord Microstrain Sensing Systems.
/... | 3,566 | 22.939597 | 87 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_sdk_ahrs.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_sdk_ahrs.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description MIP AHRS Descriptor Set Definitions
//
// External dependencies:
//
//
//
//!@copyright 2014 Lord Microstrain Sensing Systems.
//
//!@section ... | 8,506 | 26.266026 | 112 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_gx3_45.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_gx3_45.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description MIP GX3-45 Specific Structures and Definitions
//
// External dependencies:
//
// mip_types.h
//
//!@copyright 2014 Lord Microstrain Sensing Syste... | 3,451 | 25.151515 | 87 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_sdk_system.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_sdk_system.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description MIP SYSTEM Descriptor Set Definitions
//
// External dependencies:
//
//
//
//!@copyright 2014 Lord Microstrain Sensing Systems.
//
//!@sect... | 2,711 | 28.802198 | 93 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description MIP Definition, Packet Parsing, and Construction Functions
//
// External dependencies:
//
// mip_types.h
//
//!@copyright 2014 Lord Microstrain Sensing ... | 5,827 | 27.851485 | 109 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_gx4_imu.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_gx4_imu.h
//! @authors Gregg Carpenter and Nathan Miller
//! @version 1.1
//
//! @description MIP GX4 IMU Specific Structures and Definitions
//
// External dependencies:
//
// None
//
//!@copyright 2014 Lord Microstrain... | 3,256 | 23.30597 | 87 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_sdk.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_sdk.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description Top-level Include file for MIP SDK
//
// External dependencies:
//
//
//
//!@copyright 2014 Lord Microstrain Sensing Systems.
//
//!@section CHANGE... | 1,478 | 22.109375 | 87 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_types.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_types.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description MIP Data Type Definition File
//
// External dependencies:
//
//
//
//!@copyright 2014 Lord Microstrain Sensing Systems.
//
//!@section CHANGES
/... | 1,918 | 24.586667 | 87 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_rq1_imu.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_rq1_imu.h
//! @authors Nathan Miller and Gregg Carpenter
//! @version 1.1
//
//! @description MIP RQ1_IMU Specific Structures and Definitions
//
// External dependencies:
//
// mip_types.h
//
//!@copyright 2014 Lord Mi... | 3,264 | 23.923664 | 87 | h |
Cheetah-Software | Cheetah-Software-master/third-party/lord_imu/Include/mip_sdk_config.h | /////////////////////////////////////////////////////////////////////////////
//
//! @file mip_sdk_config.h
//! @author Nathan Miller
//! @version 1.1
//
//! @description Target-Specific Configuration
//
// External dependencies:
//
//
//
//!@copyright 2014 Lord Microstrain Sensing Systems.
//
//!@section CHAN... | 2,579 | 26.157895 | 131 | h |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/SparseMatrixMath.h | /*!
* @file: SparseMatrixMath.h
*
*
*/
#ifndef PROJECT_SPARSEMATRIXMATH_H
#define PROJECT_SPARSEMATRIXMATH_H
#include "types.h"
/*!
* Compressed Sparse Column format for matrix
*/
template<typename T>
struct MatCSC {
u32 nnz, m, n;
T* values = nullptr;
u32* colPtrs = nullptr;
u32* rowIdx = nullptr;
... | 2,558 | 20.871795 | 91 | h |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/CholeskySparseSolver.h | #ifndef QPSOLVER_CHOLESKYSPARSESOLVER_H
#define QPSOLVER_CHOLESKYSPARSESOLVER_H
#include "types.h"
#include "SparseMatrixMath.h"
template<typename T>
class CholeskySparseSolver
{
public:
CholeskySparseSolver() = default;
void preSetup(const DenseMatrix<T>& kktMat, bool b_print = true);
void preSetup(const st... | 1,295 | 22.563636 | 88 | h |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/src/amd_order.c | /* ========================================================================= */
/* === AMD_order =========================================================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 6,037 | 29.19 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/src/SuiteSparse_config.c | /* ========================================================================== */
/* === SuiteSparse_config =================================================== */
/* ========================================================================== */
/* SuiteSparse configuration : memory manager and printf functions. */
/* C... | 12,320 | 28.76087 | 80 | c |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/src/amd_preprocess.c | /* ========================================================================= */
/* === AMD_preprocess ====================================================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 3,808 | 31.008403 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/src/amd_post_tree.c | /* ========================================================================= */
/* === AMD_post_tree ======================================================= */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 3,703 | 29.61157 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/src/amd_1.c | /* ========================================================================= */
/* === AMD_1 =============================================================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 5,712 | 30.563536 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/src/amd_control.c | /* ========================================================================= */
/* === AMD_control ========================================================= */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 1,870 | 27.784615 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/src/amd_valid.c | /* ========================================================================= */
/* === AMD_valid =========================================================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 2,980 | 31.053763 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/src/amd_aat.c | /* ========================================================================= */
/* === AMD_aat ============================================================= */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 4,854 | 25.243243 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/src/amd_postorder.c | /* ========================================================================= */
/* === AMD_postorder ======================================================= */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 5,509 | 25.618357 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/src/amd_defaults.c | /* ========================================================================= */
/* === AMD_defaults ======================================================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 1,255 | 32.052632 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/src/amd_info.c | /* ========================================================================= */
/* === AMD_info ============================================================ */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 4,295 | 34.8 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/include/amd.h | /* ========================================================================= */
/* === AMD: approximate minimum degree ordering =========================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 17,829 | 43.353234 | 81 | h |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/include/SuiteSparse_config.h | /* ========================================================================== */
/* === SuiteSparse_config =================================================== */
/* ========================================================================== */
/* Configuration file for SuiteSparse: a Suite of Sparse matrix packages
* ... | 8,928 | 35.594262 | 99 | h |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/include/amd_internal.h | /* ========================================================================= */
/* === amd_internal.h ====================================================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 8,253 | 23.936556 | 80 | h |
Cheetah-Software | Cheetah-Software-master/third-party/JCQP/amd/include/glob_opts.h | #ifndef GLOB_OPTS_H
# define GLOB_OPTS_H
# ifdef __cplusplus
extern "C" {
# endif /* ifdef __cplusplus */
/*
Define OSQP compiler flags
*/
// cmake generated compiler flags
#include "osqp_configure.h"
/* DATA CUSTOMIZATIONS (depending on memory manager)----------------------- */
// We do not need memory allo... | 4,507 | 23.5 | 80 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/examples/osqp_demo.c | #include "stdio.h"
#include "osqp.h"
int main(int argc, char **argv) {
// Load problem data
c_float P_x[4] =
{ 4.00000000000000000000, 1.00000000000000000000, 1.00000000000000000000,
2.00000000000000000000, };
c_int P_nnz = 4;
c_int P_i[4] = { 0, 1, 0, 1, };
c_int P_p[3] = { 0, 2, 4, };
c_flo... | 1,601 | 23.646154 | 78 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/src/proj.c | #include "proj.h"
void project(OSQPWorkspace *work, c_float *z) {
c_int i, m;
m = work->data->m;
for (i = 0; i < m; i++) {
z[i] = c_min(c_max(z[i],
work->data->l[i]), // Between lower
work->data->u[i]); // and upper bounds
}
}
void project_normalcone(OSQPWo... | 660 | 21.033333 | 70 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/src/kkt.c | #include "kkt.h"
#ifndef EMBEDDED
csc* form_KKT(const csc *P,
const csc *A,
c_int format,
c_float param1,
c_float *param2,
c_int *PtoKKT,
c_int *AtoKKT,
c_int **Pdiag_idx,
c_in... | 6,777 | 30.091743 | 80 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/src/util.c | #include "util.h"
#include <string.h>
/***************
* Versioning *
***************/
const char* osqp_version(void) {
return OSQP_VERSION;
}
/************************************
* Printing Constants to set Layout *
************************************/
#ifdef PRINTING
# define HEADER_LINE_LEN 65
#endif /* ifde... | 10,371 | 22.734554 | 74 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/src/polish.c | #include "polish.h"
#include "lin_alg.h"
#include "util.h"
#include "auxil.h"
#include "lin_sys.h"
#include "kkt.h"
#include "proj.h"
/**
* Form reduced matrix A that contains only rows that are active at the
* solution.
* Ared = vstack[Alow, Aupp]
* Active constraints are guessed from the primal and dual solution... | 9,988 | 31.326861 | 84 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/src/lin_sys.c | #include "lin_sys.h"
#include "qdldl_interface.h" // Include only this solver in the same directory
#ifdef ENABLE_MKL_PARDISO
# include "pardiso_interface.h"
# include "pardiso_loader.h"
#endif /* ifdef ENABLE_MKL_PARDISO */
#ifndef EMBEDDED
// Load linear system solver shared library
c_int load_linsys_solver(enum... | 2,523 | 28.694118 | 78 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/src/cs.c | #include "cs.h"
static void* csc_malloc(c_int n, c_int size) {
return c_malloc(n * size);
}
static void* csc_calloc(c_int n, c_int size) {
return c_calloc(n, size);
}
csc* csc_matrix(c_int m, c_int n, c_int nzmax, c_float *x, c_int *i, c_int *p)
{
csc *M = (csc *)c_malloc(sizeof(csc));
M->m = m;
M->n... | 8,479 | 25.835443 | 80 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/src/scaling.c | #include "scaling.h"
#if EMBEDDED != 1
// Set values lower than threshold SCALING_REG to 1
void limit_scaling(c_float *D, c_int n) {
c_int i;
for (i = 0; i < n; i++) {
D[i] = D[i] < MIN_SCALING ? 1.0 : D[i];
D[i] = D[i] > MAX_SCALING ? MAX_SCALING : D[i];
}
}
/**
* Compute infinite norm of the colum... | 5,827 | 27.019231 | 80 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/pardiso/pardiso_loader.h | #ifndef PARDISOLOADER_H
#define PARDISOLOADER_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* Tries to load a shared library with Pardiso.
* Return a failure if the library cannot be loaded or not all Pardiso symbols are found.
* @param libname The name under which the Pardiso lib can be found, or OSQP_NULL to us... | 645 | 20.533333 | 126 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/pardiso/pardiso_interface.c | #include "pardiso_interface.h"
#define MKL_INT c_int
// Single Dynamic library interface
#define MKL_INTERFACE_LP64 0x0
#define MKL_INTERFACE_ILP64 0x1
// Solver Phases
#define PARDISO_SYMBOLIC (11)
#define PARDISO_NUMERIC (22)
#define PARDISO_SOLVE (33)
#define PARDISO_CLEANUP (-1)
// Prototypes for Par... | 8,369 | 33.73029 | 125 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/pardiso/pardiso_loader.c | #include "lib_handler.h"
#include "pardiso_loader.h"
#include "glob_opts.h"
#include "constants.h"
#ifdef IS_WINDOWS
#define PARDISOLIBNAME "mkl_rt." SHAREDLIBEXT
#else
#define PARDISOLIBNAME "libmkl_rt." SHAREDLIBEXT
#endif
typedef void (*voidfun)(void);
voidfun lh_load_sym (soHandle_t h, const char *symName);
/... | 3,150 | 29.592233 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/qdldl_sources/examples/c/example.c | #include "qdldl.h"
#include <stdlib.h>
#include <stdio.h>
void print_arrayi(const QDLDL_int* data, QDLDL_int n,char* varName);
void print_arrayf(const QDLDL_float* data, QDLDL_int n, char* varName);
void print_line(void);
const QDLDL_int An = 10;
const QDLDL_int Ap[] = {0, 1, 2, 4, 5, 6, 8, 10, 12, 14, 17};
con... | 4,513 | 24.359551 | 81 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/qdldl_sources/src/qdldl.c | #include "qdldl.h"
#define QDLDL_UNKNOWN (-1)
#define QDLDL_USED (1)
#define QDLDL_UNUSED (0)
// //DEBUG
// #include <stdio.h>
// void qdprint_arrayi(const QDLDL_int* data, QDLDL_int n,char* varName){
// QDLDL_int i;
// printf("%s = [",varName);
// for(i=0; i< n; i++){
// printf("%lli,",data[i]);
// }
//... | 7,902 | 25.880952 | 87 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/qdldl_sources/tests/test_basic.h | static char* test_basic()
{
//A matrix data
QDLDL_int Ap[] = {0, 1, 2, 4, 5, 6, 8, 10, 12, 14, 17};
QDLDL_int Ai[] = {0, 1, 1, 2, 3, 4, 1, 5, 0, 6, 3, 7, 6, 8, 1, 2, 9};
QDLDL_float Ax[] = {1.0, 0.460641, -0.121189, 0.417928, 0.177828,
0.1, -0.0290058, -1.0, 0.350321, -0.441092, -0.08453... | 871 | 35.333333 | 81 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/qdldl_sources/tests/test_identity.h | static char* test_identity()
{
//A matrix data
QDLDL_int Ap[] = {0, 1, 2, 3, 4};
QDLDL_int Ai[] = {0, 1, 2, 3};
QDLDL_float Ax[] = {1.0, 1.0, 1.0, 1.0};
QDLDL_int An = 4;
// RHS and solution to Ax = b
QDLDL_float b[] = {2,2,2,2};
QDLDL_float xsol[] = {2,2,2,2};
//x replaces b during solve
int... | 511 | 23.380952 | 81 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/qdldl_sources/tests/test_zero_on_diag.h | static char* test_zero_on_diag()
{
//A matrix data
QDLDL_int Ap[] = {0, 1, 2, 5};
QDLDL_int Ai[] = {0 ,0, 0, 1, 2};
QDLDL_float Ax[] = {4,1,2,1,-3};
QDLDL_int An = 3;
// RHS and solution to Ax = b
QDLDL_float b[] = {6,9,12};
QDLDL_float xsol[] = {17,-46,-8};
//x replaces b during solve (should ... | 593 | 26 | 81 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/qdldl_sources/tests/qdldl_tester.c | /* OSQP TESTER MODULE */
/* THE CODE FOR MINIMAL UNIT TESTING HAS BEEN TAKEN FROM
http://www.jera.com/techinfo/jtns/jtn002.html */
#include <stdio.h>
#include <stdlib.h>
#include "minunit.h"
#include "qdldl.h"
//utility functions for solves
QDLDL_float vec_diff_norm(QDLDL_float* x, QDLDL_float* y, QDLDL_int len);... | 4,494 | 24.39548 | 87 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/qdldl_sources/include/qdldl.h | #ifndef QDLDL_H
#define QDLDL_H
// Include qdldl type options
#include "qdldl_types.h"
# ifdef __cplusplus
extern "C" {
# endif // ifdef __cplusplus
/**
* Compute the elimination tree for a quasidefinite matrix
* in compressed sparse column form, where the input matrix is
* assumed to contain data for the uppe... | 6,443 | 35.202247 | 83 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/src/amd_order.c | /* ========================================================================= */
/* === AMD_order =========================================================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 6,037 | 29.19 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/src/SuiteSparse_config.c | /* ========================================================================== */
/* === SuiteSparse_config =================================================== */
/* ========================================================================== */
/* SuiteSparse configuration : memory manager and printf functions. */
/* C... | 12,320 | 28.76087 | 80 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/src/amd_preprocess.c | /* ========================================================================= */
/* === AMD_preprocess ====================================================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 3,808 | 31.008403 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/src/amd_post_tree.c | /* ========================================================================= */
/* === AMD_post_tree ======================================================= */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 3,703 | 29.61157 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/src/amd_1.c | /* ========================================================================= */
/* === AMD_1 =============================================================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 5,712 | 30.563536 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/src/amd_control.c | /* ========================================================================= */
/* === AMD_control ========================================================= */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 1,870 | 27.784615 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/src/amd_valid.c | /* ========================================================================= */
/* === AMD_valid =========================================================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 2,980 | 31.053763 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/src/amd_aat.c | /* ========================================================================= */
/* === AMD_aat ============================================================= */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 4,854 | 25.243243 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/src/amd_postorder.c | /* ========================================================================= */
/* === AMD_postorder ======================================================= */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 5,509 | 25.618357 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/src/amd_defaults.c | /* ========================================================================= */
/* === AMD_defaults ======================================================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 1,255 | 32.052632 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/src/amd_info.c | /* ========================================================================= */
/* === AMD_info ============================================================ */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 4,295 | 34.8 | 79 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/include/amd.h | /* ========================================================================= */
/* === AMD: approximate minimum degree ordering =========================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 17,829 | 43.353234 | 81 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/include/SuiteSparse_config.h | /* ========================================================================== */
/* === SuiteSparse_config =================================================== */
/* ========================================================================== */
/* Configuration file for SuiteSparse: a Suite of Sparse matrix packages
* ... | 8,928 | 35.594262 | 99 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/lin_sys/direct/qdldl/amd/include/amd_internal.h | /* ========================================================================= */
/* === amd_internal.h ====================================================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 8,239 | 24.045593 | 80 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/tests/osqp_tester.h | // Utilities for testing
#ifndef EMBEDDED
c_float* csc_to_dns(csc *M)
{
c_int i, j = 0; // Predefine row index and column index
c_int idx;
// Initialize matrix of zeros
c_float *A = (c_float *)c_calloc(M->m * M->n, sizeof(c_float));
// Allocate elements
for (idx = 0; idx < M->p[M->n]; idx++)
{
// ... | 1,161 | 21.346154 | 73 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/tests/osqp_tester.c | /* OSQP TESTER MODULE */
/* THE CODE FOR MINIMAL UNIT TESTING HAS BEEN TAKEN FROM
http://www.jera.com/techinfo/jtns/jtn002.html */
#include <stdio.h>
#include "minunit.h"
#include "osqp.h"
#include "osqp_tester.h"
// Include tests
#include "lin_alg/test_lin_alg.h"
#include "solve_linsys/test_solve_linsys.h"
#inc... | 1,242 | 22.45283 | 69 | c |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/tests/solve_linsys/test_solve_linsys.h | #include <stdio.h>
#include "osqp.h"
#include "cs.h"
#include "util.h"
#include "minunit.h"
#include "lin_sys.h"
#include "solve_linsys/data.h"
static char* test_solveKKT() {
c_int m, exitflag = 0;
c_float *rho_vec;
LinSysSolver *p; // Private structure to form KKT factorization
OSQPSettings *settings = (O... | 3,942 | 30.798387 | 102 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/tests/basic_qp2/test_basic_qp2.h | #include "osqp.h" // OSQP API
#include "minunit.h" // Basic testing script header
#include "basic_qp2/data.h"
static char* test_basic_qp2_solve()
{
/* local variables */
c_int exitflag = 0; // No errors
// Problem settings
OSQPSettings *settings = (OSQPSettings *)c_malloc(sizeof(OSQPSettings));
// St... | 6,471 | 26.65812 | 122 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/tests/lin_alg/test_lin_alg.h | #include <stdio.h>
#include "osqp.h"
#include "minunit.h"
#include "lin_alg/data.h"
static char* test_constr_sparse_mat() {
c_float *Adns; // Conversion to dense matrix
lin_alg_sols_data *data = generate_problem_lin_alg_sols_data();
// Convert sparse to dense
Adns = csc_to_dns(data->test_sp_matrix_A);
/... | 11,914 | 36.586751 | 112 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/tests/non_cvx/test_non_cvx.h | #include "osqp.h" // OSQP API
#include "minunit.h" // Basic testing script header
#include "non_cvx/data.h"
static char* test_non_cvx_solve()
{
/* local variables */
c_int exitflag = 0; // No errors
// Problem settings
OSQPSettings *settings = (OSQPSettings *)c_malloc(sizeof(OSQPSettings));
// Struct... | 1,777 | 22.706667 | 83 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/tests/basic_qp/test_basic_qp.h | #include "osqp.h" // OSQP API
#include "cs.h" // CSC data structure
#include "util.h" // Utilities for testing
#include "minunit.h" // Basic testing script header
#include "basic_qp/data.h"
static char* test_basic_qp_solve()
{
// Problem settings
OSQPSettings *settings = (OSQPSettings *)c_malloc(sizeo... | 17,037 | 28.682927 | 93 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/tests/unconstrained/test_unconstrained.h | #include "osqp.h" // OSQP API
#include "minunit.h" // Basic testing script header
#include "unconstrained/data.h"
static char* test_unconstrained_solve()
{
/* local variables */
c_int exitflag = 0; // No errors
// Problem settings
OSQPSettings *settings = (OSQPSettings *)c_malloc(sizeof(OSQPSettings));
... | 1,742 | 23.549296 | 74 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/tests/primal_dual_infeasibility/test_primal_dual_infeasibility.h | #include "osqp.h"
#include "cs.h"
#include "util.h"
#include "minunit.h"
#include "primal_dual_infeasibility/data.h"
static char* test_optimal()
{
// Structures
OSQPWorkspace *work; // Workspace
OSQPData *problem; // Problem data
OSQPSettings *settings; // Settings
primal_dual_infeasibility_sols_da... | 6,390 | 25.300412 | 81 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/tests/update_matrices/test_update_matrices.h | #include <stdio.h>
#include "osqp.h"
#include "cs.h"
#include "util.h"
#include "minunit.h"
#include "kkt.h"
#include "lin_sys.h"
#include "update_matrices/data.h"
static char* test_form_KKT() {
update_matrices_sols_data *data;
c_float sigma, *rho_vec, *rho_inv_vec;
c_int m, *PtoKKT, *AtoKKT, *Pdiag_idx, Pd... | 12,621 | 29.561743 | 82 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/tests/primal_infeasibility/test_primal_infeasibility.h | #include "osqp.h" // OSQP API
#include "cs.h" // CSC data structure
#include "util.h" // Utilities for testing
#include "minunit.h" // Basic testing script header
#include "primal_infeasibility/data.h"
static char* test_primal_infeasible_qp_solve()
{
// Problem settings
OSQPSettings *settings = (OSQPS... | 1,575 | 22.176471 | 80 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/include/lin_sys.h | #ifndef LIN_SYS_H
# define LIN_SYS_H
/* KKT linear system definition and solution */
# ifdef __cplusplus
extern "C" {
# endif // ifdef __cplusplus
# include "types.h"
# ifndef EMBEDDED
/**
* Load linear system solver shared library
* @param linsys_solver Linear system solver
* @return Zero on success, nonzero... | 1,617 | 25.52459 | 77 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/include/kkt.h | #ifndef KKT_H
# define KKT_H
# ifdef __cplusplus
extern "C" {
# endif // ifdef __cplusplus
# include "types.h"
# ifndef EMBEDDED
# include "cs.h"
/**
* Form square symmetric KKT matrix of the form
*
* [P + param1 I, A';
* A -diag(param2)]
*
* NB: Only the upper triangular part is stu... | 3,266 | 28.7 | 80 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/include/auxil.h | #ifndef AUXIL_H
# define AUXIL_H
# ifdef __cplusplus
extern "C" {
# endif // ifdef __cplusplus
# include "types.h"
/***********************************************************
* Auxiliary functions needed to compute ADMM iterations * *
***********************************************************/
# if EMBEDDED != 1
... | 3,796 | 20.451977 | 79 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/include/constants.h | #ifndef CONSTANTS_H
# define CONSTANTS_H
# ifdef __cplusplus
extern "C" {
# endif // ifdef __cplusplus
/*******************
* OSQP Versioning *
*******************/
# define OSQP_VERSION ("0.5.0") /* string literals automatically null-terminated
*/
/******************
* Solver St... | 3,729 | 29.080645 | 80 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/include/types.h | #ifndef OSQP_TYPES_H
# define OSQP_TYPES_H
# ifdef __cplusplus
extern "C" {
# endif // ifdef __cplusplus
# include "glob_opts.h"
# include "constants.h"
/******************
* Internal types *
******************/
/**
* Matrix in compressed-column or triplet form
*/
typedef struct {
c_int nzmax; ///< maximum... | 10,923 | 30.572254 | 82 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/include/glob_opts.h | #ifndef GLOB_OPTS_H
# define GLOB_OPTS_H
# ifdef __cplusplus
extern "C" {
# endif /* ifdef __cplusplus */
/*
Define OSQP compiler flags
*/
// cmake generated compiler flags
#include "osqp_configure.h"
/* DATA CUSTOMIZATIONS (depending on memory manager)----------------------- */
// We do not need memory allo... | 4,507 | 23.5 | 80 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/include/lin_alg.h | #ifndef LIN_ALG_H
# define LIN_ALG_H
# ifdef __cplusplus
extern "C" {
# endif // ifdef __cplusplus
# include "types.h"
/* VECTOR FUNCTIONS ----------------------------------------------------------*/
# ifndef EMBEDDED
/* copy vector a into output (Uses MALLOC)*/
c_float* vec_copy(c_float *a,
c_... | 5,677 | 25.165899 | 80 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/include/cs.h | #ifndef CS_H
# define CS_H
# ifdef __cplusplus
extern "C" {
# endif // ifdef __cplusplus
# include "types.h" // CSC matrix type
# include "lin_alg.h" // Vector copy operations
/*****************************************************************************
* Create and free CSC Matrices ... | 4,997 | 26.61326 | 78 | h |
Cheetah-Software | Cheetah-Software-master/third-party/osqp/include/osqp.h | #ifndef OSQP_H
# define OSQP_H
# ifdef __cplusplus
extern "C" {
# endif // ifdef __cplusplus
/* Includes */
# include "types.h"
# include "util.h" // Needed for osqp_set_default_settings functions
// Library to deal with sparse matrices enabled only if embedded not defined
# ifndef EMBEDDED
# include "cs.h"
# endi... | 11,755 | 26.276102 | 79 | h |
Cheetah-Software | Cheetah-Software-master/third-party/SOEM/oshw/linux/oshw.c | /*
* Simple Open EtherCAT Master Library
*
* File : oshw.c
* Version : 1.3.1
* Date : 11-03-2015
* Copyright (C) 2005-2015 Speciaal Machinefabriek Ketels v.o.f.
* Copyright (C) 2005-2015 Arthur Ketels
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
* Copyright (C) 2012-2015 rt-labs AB , ... | 4,677 | 28.2375 | 83 | c |
Cheetah-Software | Cheetah-Software-master/third-party/SOEM/oshw/linux/nicdrv.c | /*
* Simple Open EtherCAT Master Library
*
* File : nicdrv.c
* Version : 1.3.1
* Date : 11-03-2015
* Copyright (C) 2005-2015 Speciaal Machinefabriek Ketels v.o.f.
* Copyright (C) 2005-2015 Arthur Ketels
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
* Copyright (C) 2014-2015 rt-labs AB ... | 22,638 | 32.195015 | 118 | c |
Cheetah-Software | Cheetah-Software-master/third-party/SOEM/oshw/linux/nicdrv.h | /*
* Simple Open EtherCAT Master Library
*
* File : nicdrv.h
* Version : 1.3.1
* Date : 11-03-2015
* Copyright (C) 2005-2015 Speciaal Machinefabriek Ketels v.o.f.
* Copyright (C) 2005-2015 Arthur Ketels
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
* Copyright (C) 2014-2015 rt-labs AB ... | 4,799 | 29.573248 | 83 | h |
Cheetah-Software | Cheetah-Software-master/third-party/SOEM/oshw/linux/oshw.h | /*
* Simple Open EtherCAT Master Library
*
* File : oshw.h
* Version : 1.3.1
* Date : 11-03-2015
* Copyright (C) 2005-2015 Speciaal Machinefabriek Ketels v.o.f.
* Copyright (C) 2005-2015 Arthur Ketels
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
* Copyright (C) 2012-2015 rt-labs AB , ... | 2,313 | 33.029412 | 83 | h |
Cheetah-Software | Cheetah-Software-master/third-party/SOEM/soem/ethercatcoe.h | /*
* Simple Open EtherCAT Master Library
*
* File : ethercatcoe.h
* Version : 1.3.1
* Date : 11-03-2015
* Copyright (C) 2005-2015 Speciaal Machinefabriek Ketels v.o.f.
* Copyright (C) 2005-2015 Arthur Ketels
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
* Copyright (C) 2014-2015 rt-lab... | 5,455 | 40.333333 | 111 | h |
Cheetah-Software | Cheetah-Software-master/third-party/SOEM/soem/ethercatprint.h | /*
* Simple Open EtherCAT Master Library
*
* File : ethercatprint.h
* Version : 1.3.1
* Date : 11-03-2015
* Copyright (C) 2005-2015 Speciaal Machinefabriek Ketels v.o.f.
* Copyright (C) 2005-2015 Arthur Ketels
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
* Copyright (C) 2014-2015 rt-l... | 2,347 | 33.028986 | 83 | h |
Cheetah-Software | Cheetah-Software-master/third-party/SOEM/soem/ethercattype.h | /*
* Simple Open EtherCAT Master Library
*
* File : ethercattype.h
* Version : 1.3.1
* Date : 11-03-2015
* Copyright (C) 2005-2015 Speciaal Machinefabriek Ketels v.o.f.
* Copyright (C) 2005-2015 Arthur Ketels
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
* Copyright (C) 2014-2015 rt-la... | 17,283 | 28.097643 | 83 | h |
Cheetah-Software | Cheetah-Software-master/third-party/SOEM/soem/ethercatfoe.c | /*
* Simple Open EtherCAT Master Library
*
* File : ethercatfoe.c
* Version : 1.3.1
* Date : 11-03-2015
* Copyright (C) 2005-2015 Speciaal Machinefabriek Ketels v.o.f.
* Copyright (C) 2005-2015 Arthur Ketels
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
* Copyright (C) 2014-2015 rt-lab... | 14,672 | 34.875306 | 119 | c |
Cheetah-Software | Cheetah-Software-master/third-party/SOEM/soem/ethercatfoe.h | /*
* Simple Open EtherCAT Master Library
*
* File : ethercatfoe.h
* Version : 1.3.1
* Date : 11-03-2015
* Copyright (C) 2005-2015 Speciaal Machinefabriek Ketels v.o.f.
* Copyright (C) 2005-2015 Arthur Ketels
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
* Copyright (C) 2014-2015 rt-lab... | 2,646 | 36.814286 | 120 | h |
Cheetah-Software | Cheetah-Software-master/third-party/SOEM/soem/ethercatconfig.h | /*
* Simple Open EtherCAT Master Library
*
* File : ethercatconfig.h
* Version : 1.3.1
* Date : 11-03-2015
* Copyright (C) 2005-2015 Speciaal Machinefabriek Ketels v.o.f.
* Copyright (C) 2005-2015 Arthur Ketels
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
* Copyright (C) 2014-2015 rt-... | 2,747 | 34.688312 | 83 | h |
Cheetah-Software | Cheetah-Software-master/third-party/SOEM/soem/ethercatsoe.h | /*
* Simple Open EtherCAT Master Library
*
* File : ethercatsoe.h
* Version : 1.3.1
* Date : 11-03-2015
* Copyright (C) 2005-2015 Speciaal Machinefabriek Ketels v.o.f.
* Copyright (C) 2005-2015 Arthur Ketels
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
* Copyright (C) 2014-2015 rt-lab... | 5,211 | 30.39759 | 134 | h |
Cheetah-Software | Cheetah-Software-master/third-party/SOEM/soem/ethercatprint.c | /*
* Simple Open EtherCAT Master Library
*
* File : ethercatprint.c
* Version : 1.3.1
* Date : 11-03-2015
* Copyright (C) 2005-2015 Speciaal Machinefabriek Ketels v.o.f.
* Copyright (C) 2005-2015 Arthur Ketels
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
* Copyright (C) 2014-2015 rt-l... | 14,982 | 36.271144 | 118 | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.