sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
d85b4afba49099e89c5f03504ddad8458a39899d8567ee86f2b4e67912a4361e | C++ | 788 | 30 | //
// steady_timer.cpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Disable autolinking for unit tes... |
1a576ad03c030e13d19e4a135bcd12df7ad186989967efd797d94720f5cab214 | C++ | 789 | 30 | //
// io_context.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Disable autolinking for unit tests.
... |
63b7ee0f974d88bac9cbbd6a478465ceea07104e6f01829dc25ea655397bccb5 | C++ | 790 | 39 | // g++ -O3 -DNDEBUG -DMATSIZE=<x> benchmark.cpp -o benchmark && time ./benchmark
#include <iostream>
#include <Eigen/Core>
#ifndef MATSIZE
#define MATSIZE 3
#endif
using namespace std;
using namespace Eigen;
#ifndef REPEAT
#define REPEAT 40000000
#endif
#ifndef SCALAR
#define SCALAR double
#endif
int main(int ar... |
a82e844594127424fdf29a20936906132e12e4624966784f998cca1746e81e12 | C++ | 791 | 26 | #include "SoloFeature.h"
#include "BAMfunctions.h"
#include "SequenceFuns.h"
void SoloFeature::addBAMtags(char *&bam0, uint32 &size0, char *bam1)
{//add extra tags to the BAM record
uint64 iread = * ((uint64*) (bam0+size0));
iread = iread >> 32; //iRead was encoded in the upper 32 bitsls
string cb="-... |
9e121a25190eb13d791e195a68cb529fc3fde6c45238cf96effb1f24e548f38c | C++ | 792 | 16 | MatrixXcf A = MatrixXcf::Random(4,4);
cout << "Here is a random 4x4 matrix, A:" << endl << A << endl << endl;
ComplexEigenSolver<MatrixXcf> ces;
ces.compute(A);
cout << "The eigenvalues of A are:" << endl << ces.eigenvalues() << endl;
cout << "The matrix of eigenvectors, V, is:" << endl << ces.eigenvectors() << endl <... |
5067c5dcd64a45dd0d083aff852cf41eacda981c524d1947eef4969ab7cd7d35 | C++ | 794 | 36 | // g++ -O3 -DNDEBUG benchmarkX.cpp -o benchmarkX && time ./benchmarkX
#include <Eigen/Array>
using namespace std;
USING_PART_OF_NAMESPACE_EIGEN
#ifndef REPEAT
#define REPEAT 10000
#endif
#ifndef SCALAR
#define SCALAR float
#endif
int main(int argc, char *argv[])
{
typedef Matrix<SCALAR, Eigen::Dynamic, Eigen::Dy... |
b94837bcd81943a736c2abe5d690b49abfae57de853337f499737a17bc0c47f8 | C++ | 796 | 30 | //
// system_context.cpp
// ~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Disable autolinking for unit... |
96731dfe17eff789dbd3f9451c18119190130511e9a334f1df22c8f75271911c | C++ | 800 | 16 | MatrixXd A = MatrixXd::Random(6,6);
cout << "Here is a random 6x6 matrix, A:" << endl << A << endl << endl;
EigenSolver<MatrixXd> es(A);
cout << "The eigenvalues of A are:" << endl << es.eigenvalues() << endl;
cout << "The matrix of eigenvectors, V, is:" << endl << es.eigenvectors() << endl << endl;
complex<double> l... |
be5d8f1bd07e0018025db984a281f2893c75cbf9b482d5790f6d906686b78836 | C++ | 805 | 29 | #include <torch/torch.h>
#include <vector>
std::vector<float*>
dynamicconv_cpu_forward(float* input, float* filters, int padding_l);
std::vector<float*> dynamicconv_cpu_backward(
float* gradOutput,
int padding_l,
float* input,
float* filters);
std::vector<float*>
dynamicconv_forward(float* input, flo... |
0e402a20684baf7eacf5515f5bb42e8bba39bf193978b9fa133d9eabc962a565 | C++ | 809 | 24 | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
501efa4b736c1585a827aea6929a600e39d731e92c8c09c1f08079b7581517a6 | C++ | 812 | 31 | // Copyright 2019 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
#define BOOST_DISABLE_CURRENT_LOCATION
#include <boost/assert/source_location.hpp>
#include <boost/core/lightweight_test.hpp>
int main()
{
{
boost::source_location loc;
... |
517de564fef70096bae49f1271e81c6dcf027a8acca62e542e4ffdc15e60d556 | C++ | 812 | 30 | //
// static_thread_pool.cpp
// ~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Disable autolinking ... |
351ef9a8eb61bfa6f925dbdb87b914331f9aa989692d24f81917a27d36c3f735 | C++ | 814 | 33 | /**
* Copyright 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <Python.h>
static PyMethodDef method_def[] = {{NULL, NULL, 0, NULL}}; // NOLINT
static struct PyModuleDef mod... |
6a0e0c786cac27492fa38f283078d2ec5dc103481d3981feba02be67fc4256c5 | C++ | 815 | 32 | /*<-
Copyright (c) 2016 Barrett Adair
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
->*/
#include <boost/callable_traits/detail/config.hpp>
#ifdef BOOST_CLBL_TRTS_DISABLE_REFERENCE_QUALIFIERS
int main(){ return 0; }
#else
//[... |
68dc70c4ca7341ddc5d7f3e9983a611bab64eb42554b46ca77a14e80239d3acd | C++ | 816 | 17 | MatrixXd X = MatrixXd::Random(5,5);
MatrixXd A = X + X.transpose();
cout << "Here is a random symmetric 5x5 matrix, A:" << endl << A << endl << endl;
SelfAdjointEigenSolver<MatrixXd> es(A);
cout << "The eigenvalues of A are:" << endl << es.eigenvalues() << endl;
cout << "The matrix of eigenvectors, V, is:" << endl << ... |
cf5a74a1e07144a94125a6ec97b5a7c1b1cbb872a9765ac8f2dfbfa20f1fa6af | C++ | 816 | 32 | // io_ex1.cpp ----------------------------------------------------------//
// Copyright 2010 Howard Hinnant
// Copyright 2010 Vicente J. Botet Escriba
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
/*
This code was adapted by Vicente J. Botet Escriba f... |
53255da24484a9934415c12dd5c1ec3109c4c5ebe85ddff7b050bcdea652704e | C++ | 820 | 34 | //
// cpp14/can_require_concept_not_applicable_member.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://... |
987a935d3dd60446eca837609812c76771d33132fbe6b9d9c9f2948302ae4148 | C++ | 824 | 30 | //
// high_resolution_timer.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Disable autoli... |
2a32d9c737b464183d581329eebfab9ee5a46a48ab4a6ab443fa3e86bd2e3b29 | C++ | 825 | 31 | //
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
#if defined(__GNUC__... |
de8db63bb3f46865e667793e57962497f7bc61534a038782a895e1eda690053c | C++ | 826 | 16 | MatrixXd X = MatrixXd::Random(5,5);
MatrixXd A = X + X.transpose();
cout << "Here is a random symmetric matrix, A:" << endl << A << endl;
X = MatrixXd::Random(5,5);
MatrixXd B = X * X.transpose();
cout << "and a random postive-definite matrix, B:" << endl << B << endl << endl;
GeneralizedSelfAdjointEigenSolver<MatrixX... |
6e1b998388fa0c690972f8e335ada135199c2f670a2f871c56981c59aec8eee4 | C++ | 827 | 40 | //
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header ... |
0169e55f2877a32bf42129c48d07a4c67c7347ff1aecf60fc508070ad424fb93 | C++ | 828 | 40 | //
// cpp03/can_require_concept_unsupported.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENS... |
4034ffc63438b6ae4292e0104f42ac1fd0c17a426997dc2bc74559263ea14024 | C++ | 830 | 34 | //
// cpp11/can_require_concept_not_applicable_member.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://... |
132c1c5eeeb03bd13b29776ae21ef30bb4a9b4330143fadae5a308b55eddad8f | C++ | 832 | 31 | //
// cpp14/can_require_concept_not_applicable_static.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://... |
9f2a89a6b7d1c9f4de1926938109f6c6cfd3ed558d37697586b11a7264ca0c65 | C++ | 832 | 34 | //
// cpp14/can_require_concept_not_applicable_free.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.... |
b28f48dd4378de41d8601c9dc303c3a99f54d5c35ddc1232d195459be8f4e1ff | C++ | 835 | 38 | // g++ -O3 -DNDEBUG benchmarkX.cpp -o benchmarkX && time ./benchmarkX
#include <iostream>
#include <Eigen/Core>
using namespace std;
using namespace Eigen;
#ifndef REPEAT
#define REPEAT 10000
#endif
#ifndef SCALAR
#define SCALAR float
#endif
int main(int argc, char *argv[])
{
typedef Matrix<SCALAR, Eigen::Dynam... |
bc8354ccde3ad8358bf5a5d6eb23990568484c28171211b1e36f999e7a289b9e | C++ | 835 | 38 | //
// connection_manager.cpp
// ~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "connection_ma... |
780bce22fc81c19e14503f0270b9b2074406c30b681ea4205ceb4ad5eab60faf | C++ | 836 | 24 | // Copyright Kevlin Henney, 2000, 2001. All rights reserved.
// Copyright Antony Polukhin, 2013-2022.
// Copyright Ruslan Arutyunyan, 2019-2021.
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "boost... |
3987ad9148b57367fae5e536d9cce1fd8bbcfee4fb9eee5d79c3803dd8e0b6ee | C++ | 838 | 38 | /*
Copyright (c) Marshall Clow 2011-2012.
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
For more information, see http://www.boost.org
*/
#include <iostream>
#include <boost/config.hpp>
#include <boost... |
3b5c8f66d3d3fe0487be9546b5402cabc333d5f739f04d1e7ca0f957e805b9eb | C++ | 842 | 34 | //
// cpp11/can_require_concept_not_applicable_free.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.... |
1f8145be310edbbda455269a8d67191e697873df25eb3f2faa8c9fe5b20f8bff | C++ | 843 | 38 | /* Copyright (c) 2002,2003 CrystalClear Software, Inc.
* Use, modification and distribution is subject to the
* Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
* Author: Jeff Garland, Bart Garst
* $Date$
*/
#ifndef BOOST_DATE_TIME_SOURCE
... |
09b265831c6be59f2ea1acfed922c96ab3eceb53c673fbac8c64cd5eb16e2826 | C++ | 848 | 40 | //
// cpp14/can_require_concept_unsupported.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENS... |
f7e8c2e06495434755b76f81a9ca58ccafd46b4d5d7fc6d83a4beabea4d9e2ac | C++ | 848 | 40 | //
// cpp11/can_require_concept_unsupported.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENS... |
0c887b8010f5b152ce20ec28d28463aa687e4e736ad6a86e78587fc34e619166 | C++ | 850 | 30 | #include <stdint.h>
#include <iostream>
#include <lsl_cpp.h>
// define a packed sample struct (here a stereo sample).
#pragma pack(1)
struct stereo_sample {
int16_t l, r;
};
int main(int, char* []) {
try {
// resolve the stream of interest & make an inlet
lsl::stream_inlet inlet(lsl::resolve_stream("name", "M... |
d41b4a7447dd3df9d471e7e1e33ab4ecd3752219700c68f6f48f022712fb0e79 | C++ | 850 | 29 | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
0f0116960f2f3178c7812a4b26fd507dab8c37df42f39025721a422d20f6b749 | C++ | 852 | 45 | //
// mime_types.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "mime_types.hpp"
namespace ht... |
f62f512009cd2a39ee48c840d4dfaba463205dda84f57bf5dd85c740a63933d5 | C++ | 852 | 20 | typedef Matrix<double, 5, 3> Matrix5x3;
typedef Matrix<double, 5, 5> Matrix5x5;
Matrix5x3 m = Matrix5x3::Random();
cout << "Here is the matrix m:" << endl << m << endl;
Eigen::LU<Matrix5x3> lu(m);
cout << "Here is, up to permutations, its LU decomposition matrix:"
<< endl << lu.matrixLU() << endl;
cout << "Here is... |
964fb86d7445f25574ad335ef8f3fd0cd8774e4f961571450d398cc129cd91d2 | C++ | 857 | 40 | //
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header ... |
5dcef95039294e5ef50fd67f9c222de6dc44b7a032de37239bf78ecfdcea9238 | C++ | 859 | 33 | /**
* @license
* Copyright 2021 William Silversmith
* 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 applicabl... |
51d286213f1cc32dd3bf89fb884e046f4cc109084511dbb4ef1f8632c2dba5a1 | C++ | 860 | 30 | //---------------------------------------------------------------------------//
// Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
// See http://boostorg.gi... |
6ff52e653fa669df2958280b36f3f4aeea0df927620046484ff1447f18504471 | C++ | 864 | 30 | /**
* @license
* Copyright 2026 William Silversmith
* 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 applicabl... |
5dbc748da8f44624f32cade98ab96f3c5c51958d95fc9e32f531868bb4dff3a2 | C++ | 865 | 35 | //
// cpp14/can_require_concept_member.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)... |
c1f636d3dd627b1e8e0778d95ba5bbddc033c10e8004acdb717a6f4e8dd6f6c8 | C++ | 865 | 43 | /*
Copyright 2015 Glen Joseph Fernandes
(glenjofe@gmail.com)
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/align/align_up.hpp>
#include <boost/align/is_aligned.hpp>
#include <boost/core/lightweight_test.hpp>
template<std::size_t Alignment>
void te... |
1d5f784191ae6cc84635589afd79f56bea39599bd22b3a030051733eccae1990 | C++ | 869 | 61 | /*
Copyright 2015 Glen Joseph Fernandes
(glenjofe@gmail.com)
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/align/assume_aligned.hpp>
void* test1(void* p)
{
BOOST_ALIGN_ASSUME_ALIGNED(p, 1);
return p;
}
void* test2(void* p)
{
BOOST_ALI... |
22010140a8b1d3f38c08cc4b35b1bf3df4ed4ecf0915e083bb89016cadec8eb8 | C++ | 872 | 42 | /*!<-
Copyright (c) 2016 Barrett Adair
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
->*/
#include <boost/callable_traits/detail/config.hpp>
#ifdef BOOST_CLBL_TRTS_DISABLE_ABOMINABLE_FUNCTIONS
int main(){ return 0; }
#else
//... |
f2a50fe154df7402b20250722fe1e9110b5f5aafc4156201ca9cb897c0b0e0ce | C++ | 873 | 43 | //
// cpp03/can_query_not_applicable_static.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENS... |
98d56435d1b7d75fc27f597d0cb7ced517107a80d09b9059462a41b60f27c1f5 | C++ | 874 | 35 |
/* Copyright (c) 2002-2004 CrystalClear Software, Inc.
* Use, modification and distribution is subject to the
* Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
* Author: Jeff Garland
* $Date$
*/
//File doesn't have a current purpose excep... |
171b3f17ebd90d55ff1f09328ec5ccab9e9fd7c13a1f140b247c1f62f2baf079 | C++ | 875 | 28 | //---------------------------------------------------------------------------//
// Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
// See http://boosto... |
1018a19872fbc69c1dcf1be9b43593537d6042524c44f334d0b210dad292d74a | C++ | 876 | 43 | //
// cpp03/can_query_not_applicable_member.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENS... |
d5cfff298634b5bc6d0ce3aa053c7181a62c242629ce7e2af08fb1480e1d58ca | C++ | 877 | 32 | //
// cpp14/can_require_concept_static.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)... |
db98553096f9cff857ceed964e4cd51af1fa7cb488cbe927cfee8f9d890ed7c6 | C++ | 877 | 35 | //
// cpp14/can_require_concept_free.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
... |
b8137a447cbae2265c66149421646ad61f1ad87c9589624dc258546a1823e5db | C++ | 878 | 20 | const int size = 6;
MatrixXd mat1(size, size);
mat1.topLeftCorner(size/2, size/2) = MatrixXd::Zero(size/2, size/2);
mat1.topRightCorner(size/2, size/2) = MatrixXd::Identity(size/2, size/2);
mat1.bottomLeftCorner(size/2, size/2) = MatrixXd::Identity(size/2, size/2);
mat1.bottomRightCorner(size/2, size/2) = Matri... |
db3b39b7bbf12d9fdce1cdc8032e2292faceafd28b984bc62f52fbacc2feaa20 | C++ | 880 | 33 | //
// netfwd.cpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Disable autolinking for unit tests.
#if !def... |
716ac12bff037d74592ae8d34fb2b0f4a78903ed9cb4f9680ca464534f099772 | C++ | 883 | 32 | /*<-
Copyright (c) 2016 Barrett Adair
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
->*/
#include <boost/callable_traits/detail/config.hpp>
#ifdef BOOST_CLBL_TRTS_DISABLE_REFERENCE_QUALIFIERS
int main(){ return 0; }
#else
//... |
d72dbfb371160b4ad1ec5d3fe4b82e966871e7f03fd7369d42a513b921f6042d | C++ | 883 | 43 | /*
Copyright 2015 Glen Joseph Fernandes
(glenjofe@gmail.com)
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/align/align_down.hpp>
#include <boost/align/is_aligned.hpp>
#include <boost/core/lightweight_test.hpp>
template<std::size_t Alignment>
void ... |
e792f7cad260194a10195591030a5ffe9b6f88d68081ff6546f54eb67ef22496 | C++ | 884 | 40 | //
// cpp14/query_member.cpp
// ~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/asio/qu... |
5acd74fdb3b31fc0078c97f22496866c25ca27bc8db73b719ea09714ea465824 | C++ | 886 | 43 | //
// cpp03/can_query_not_applicable_free.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_... |
f2d4d6abd426d2fc22882a87f5c06fd7396f3c2df8d483d491718ea056ceeaf8 | C++ | 887 | 45 | //
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header ... |
9a022871d9f774180fcaf5ecbf51a7de076036fb031dbb26acd3a901005170fc | C++ | 888 | 31 | /*<-
Copyright (c) 2016 arett Adair
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
->*/
#include <boost/callable_traits/apply_member_pointer.hpp>
#include "test.hpp"
struct foo;
template<typename Input, typename Output>
void... |
1cc7658cc160da74fe760f8965439d7e76dff3b305621a32b90b8f087bbc7c8f | C++ | 890 | 22 | /**
* @license
* Copyright 2016 Google 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... |
fc4d2d87aa6913769f9d6690ce4e9af2ce02a3a81b5869c8bffd80c15e8e145c | C++ | 894 | 26 | #include <iostream>
#include <lsl_cpp.h>
#include <vector>
/**
* This is a minimal example that demonstrates how a multi-channel stream (here 128ch) of a
* particular name (here: SimpleStream) can be resolved into an inlet, and how the raw sample data &
* time stamps are pulled from the inlet. This example does not... |
0ffe0ca58947848083701525d8f27f5e60b66d955302acab97b64a85cda05234 | C++ | 895 | 24 | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
fc3792ef0698c2680ade6d5cd54e3a2b2b28bdea28bc3330468f36604e82e1a8 | C++ | 896 | 40 | //
// cpp14/query_free.cpp
// ~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/asio/query.... |
fce127fc96d34d9e2539b1e05feb85f25a14a40d54365c8f570066c40d00e983 | C++ | 896 | 29 | #include "sjdbLoadFromStream.h"
void sjdbLoadFromStream(ifstream &sjdbStreamIn, SjdbClass &sjdbLoci) {
while (sjdbStreamIn.good()) {
string oneLine,chr1;
uint u1,u2;
char str1;
getline(sjdbStreamIn,oneLine);
istringstream oneLineStream (oneLine);
oneLineStream >> chr1... |
db0ab5b84b8d33462b9df5d7c575c637a166e1c1b9cca5f10fb1831d79a1f4f7 | C++ | 897 | 44 | //
// daytime_client.cpp
// ~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <iostream>
#include <s... |
1723a542a24269c413656fd9ef5df91a5594cf6ae75a9bbb6fe479607ceaedb8 | C++ | 899 | 40 | //
// cpp14/query_static.cpp
// ~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/asio/qu... |
33a23785d74d6acec153b7ee2886ef0a5fb8c1f71a00cb64b16f70b2833c88dc | C++ | 899 | 39 | /* tests using constexpr on boost:array
* (C) Copyright Marshall Clow 2012
* Distributed under the Boost Software License, Version 1.0. (See
* accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
#include <string>
#include <iostream>
#include <boost/array.hpp>
#include <algorith... |
27e695f0b752d5e36871a1f72a081c1420f749c1a4c05e282d907e7f8ccafaf9 | C++ | 901 | 21 | #include "ReadAlign.h"
void ReadAlign::mappedFilter() {//filter mapped read, add to stats
unmapType=-1;//mark as mapped
if ( nW==0 ) {//no good windows
statsRA.unmappedOther++;
unmapType=0;
} else if ( (trBest->maxScore < P.outFilterScoreMin) || (trBest->maxScore < (intScore) (P.outFilterSc... |
34fad77433901647cec5cd182f871e9c6bf2eaf44cc59569d515ba51ce010ead | C++ | 901 | 44 | // Copyright 2022 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// Reduced from a boost::system::result test; codegen bug
// in GCC < 5 which is somehow triggered by __PRETTY_FUNCTION__
// and throwing an exception
#include <boost/assert/source_locat... |
f9cebf59ac49b7228e4826970d5cf78f72ec59a039fc8d4f052508bfe41b1d0c | C++ | 901 | 36 | // io_ex2.cpp ----------------------------------------------------------//
// Copyright 2010 Howard Hinnant
// Copyright 2010 Vicente J. Botet Escriba
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
/*
This code was adapted by Vicente J. Botet Escriba f... |
0285394eac284d0f4e396c8f4753f40060843d4ae7d56cc67929784ee3598a45 | C++ | 902 | 30 | #include <chrono>
#include <thread>
#include <lsl_cpp.h>
/**
* This is a minimal example of how a multi-channel data stream can be sent to LSL.
* Here, the stream is named SimpleStream, has content-type EEG, 8 channels, and 200 Hz.
* The transmitted samples contain random numbers.
*/
const int nchannels = 8;
int... |
7d648169bd4c48fab613ad4ab62f7381b16a957d384113e85c33e79976f7a0ab | C++ | 903 | 40 | //
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header ... |
1a2aa0ee28783e111b232116dcfda2eff965532cdce896fa193831bc80f5622b | C++ | 906 | 29 | //---------------------------------------------------------------------------//
// Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
// See http://boosto... |
b9be30835f7892c0562f24059bbe9a74e6caf49a5b7c5ed8d14ddfd5e3796e4a | C++ | 909 | 46 | //
// mime_types.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "mime_types.hpp"
namespace ht... |
c4aa776fbe202772d8fa48c211008b750059641634cf5ad0972601fa3809d93a | C++ | 909 | 43 | //
// cpp11/can_query_not_applicable_static.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENS... |
d2da420dbd45f0a3511791e5f726473b204b137654a7a9bebdd801e3c1f90b52 | C++ | 909 | 32 | /*<-
Copyright (c) 2016 Barrett Adair
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
->*/
#include <boost/callable_traits/detail/config.hpp>
#ifdef BOOST_CLBL_TRTS_DISABLE_ABOMINABLE_FUNCTIONS
int main(){ return 0; }
#else
//... |
1535a5ee476322c3bc697f404b561da43319ac07136212249aae63500efbeac5 | C++ | 911 | 30 | //
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header ... |
20d41616958bdbf4928120c2595e21458c400cf7b2a4ce615ba473595fe6d7ea | C++ | 911 | 46 | //
// mime_types.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "mime_types.hpp"
namespace ht... |
593b41bf51079ae99bbfd9d3256266e467e3b01f6ead08457571904decfb4ac4 | C++ | 911 | 46 | //
// mime_types.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "mime_types.hpp"
namespace ht... |
b322ab9d428af4acd79e570d36e1d847dac389d38bf6ca072271e30047127354 | C++ | 911 | 46 | //
// mime_types.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "mime_types.hpp"
namespace ht... |
07a325cece1003220f922f8d9c5468e688b4f8bcf6922d457a6828733a68c805 | C++ | 916 | 48 | //
// cpp03/prefer_unsupported.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <b... |
950ea492666e6db7fee772fe2d6b8b085062bbb2f3aacc9b3fe2b487ea07ee45 | C++ | 923 | 40 | // Copyright 2003-2008 Jan Gaspar.
// Copyright 2013 Paul A. Bristow. Added some Quickbook snippet markers.
// Distributed under the Boost Software License, Version 1.0.
// (See the accompanying file LICENSE_1_0.txt
// or a copy at <http://www.boost.org/LICENSE_1_0.txt>.)
#undef BOOST_CB_ENABLE_DEBUG
//[circular_b... |
d0f7ee2afedb5992320129b6586db76122cd2d7e2df7b2789a0bbd80df91c28c | C++ | 924 | 36 | /*<-
Copyright (c) 2016 Barrett Adair
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
->*/
#include <boost/callable_traits/detail/config.hpp>
#include "test.hpp"
#include <boost/callable_traits/remove_noexcept.hpp>
template<ty... |
1425a94cdbc7434208b7de11bbbb6ca4e5517706b0bcc27b15dbc67343df7526 | C++ | 927 | 33 | /*<-
Copyright (c) 2016 Barrett Adair
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
->*/
#include <boost/callable_traits/detail/config.hpp>
#ifndef BOOST_CLBL_TRTS_ENABLE_NOEXCEPT_TYPES
int main(){}
#else
//[ is_noexcept
#in... |
4d7ed0cc9bcfebbc8537e4df6b80ae4c619b564f13274e5ae416912e9dc4db4a | C++ | 927 | 27 | #include <catch2/catch.hpp>
#include <lsl_cpp.h>
#include <thread>
namespace {
TEST_CASE("streaminfo", "[streaminfo][basic]") {
CHECK_THROWS(lsl::stream_info("", "emptyname"));
REQUIRE(std::string("The name of a stream must be non-empty.") == lsl_last_error());
}
TEST_CASE("multithreaded lsl_last_error", "[threadi... |
dd1864b1bd0d3672dfd674a8c3cc70cf1d40f2915def69c07bc22c8ede92888f | C++ | 927 | 44 | //
// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header ... |
f793e8bca4d26019727865c8145d1018839c34ce41a495787557bf7843217a50 | C++ | 928 | 43 | #include "binarySearch2.h"
int binarySearch2(uint x, uint y, uint *X, uint *Y, int N) {
//binary search in the sorted list to find the junction
//check the boundaries first
if (N==0 || x>X[N-1] || x<X[0]) return -1;
int i1=0, i2=N-1, i3=N/2;
while (i2>i1+1) {//binary search
i3=(i1+i2)/2;
... |
950c8f8ed17b6368e667ad8b9f9f4ca50f34bbd174d6d5482347d9635b17a08a | C++ | 931 | 39 | //
// Copyright (c) 2018 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header file ... |
2a96cc884d2c8cb7ed787340e2aab74294537f1260658c0159044fd210611054 | C++ | 935 | 43 | //
// cpp03/can_require_concept_not_applicable_static.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://... |
fafae55c924054cf51da95b807adf8ed0cd32026f2d9f39cf5a0d5b036d5b358 | C++ | 936 | 32 | // chrono_unit_test.cpp ----------------------------------------------------//
// Copyright 2008 Beman Dawes
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
#define _CRT_SECURE_NO_WARNINGS // disable VC++ foolishness
#include <boost/chrono/chrono.hpp>
... |
b40aa9f099b092a6bc046c2df9869879b275720351b5bf7927d9279426b8c378 | C++ | 937 | 50 | //
// cpp03/can_query_static.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost... |
bd174a6f34d78fee8b9f2a00028eb67cb53308dde2898699c2cafcfbeabd004d | C++ | 938 | 45 |
#include <stdio.h>
#include <stdlib.h>
#include <mex.h>
#include <math.h>
#include <matrix.h>
#include <string.h>
// outmap = mexVectorToMap( v , dim )
//
// name dim description
// -------------------------------------------------------------------------
// v MN x 1 values of map in linear... |
85a43260c12a7f48988594b92b6e72fc34fccbd263e9ec5482bbb4612218bbfd | C++ | 940 | 50 | //
// cpp03/can_query_member.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost... |
44cee4dc22e84f9595ff960941cc46295e9a8ca975b648ffd13ee26f4e1d801e | C++ | 941 | 32 | /*<-
Copyright (c) 2016 Barrett Adair
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
->*/
#include <boost/callable_traits/detail/config.hpp>
#ifdef BOOST_CLBL_TRTS_DISABLE_REFERENCE_QUALIFIERS
int main(){ return 0; }
#else
//... |
c7139d7c8b4a6cefa122a8efd43a5d3b929e614593d47f509784258864e0e141 | C++ | 941 | 32 | /*<-
Copyright (c) 2016 Barrett Adair
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
->*/
#include <boost/callable_traits/detail/config.hpp>
#ifdef BOOST_CLBL_TRTS_DISABLE_REFERENCE_QUALIFIERS
int main(){ return 0; }
#else
//... |
b43f398aea671f84bd04a8c9b5b49c4157e042cfd22441db78d5ef179cab1ec4 | C++ | 942 | 27 | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
2317b4d74fbe6b6d04a0ae4e305d1ad71e66b3a3c4c28da8598a666cf4d44edb | C++ | 946 | 33 | //---------------------------------------------------------------------------//
// Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
// See http://boosto... |
36f30203a814ca27172cc78402e17d63f56466de967327c869c592427b334775 | C++ | 946 | 34 | // Copyright (c) 2018 Andrey Semashev
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// The test verifies that atomic<T> has an implicit conversion constructor from T.
// This can only be tested in C++17 ... |
d46e774d64c96a706044c817bf95cf8eea3cc32cab10dc7ab01524240196ba43 | C++ | 950 | 50 | //
// cpp03/can_query_free.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/asi... |
c2fa17e9cd02f2584f941f0a9e49077d561f784c1bf40ce79c469e584b01394e | C++ | 952 | 39 |
#include <include/matlab_bgl.h>
#include <stdio.h>
#include "libmbgl_funcs_test.h"
int test_layout_1() {
const mbglIndex n = 9;
mbglIndex rp[] = {0,3,7,10,14,19,23,26,30,33};
mbglIndex ci[] = {0,1,3,0,1,2,4,1,2,5,0,3,4,6,1,3,4,5,7,2,4,5,8,3,6,7,4,6,7,8,5,7,8};
double w[33], X[2*n], dists[n*n], springs[n*n];
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.