sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
5be5115eca917f875f2ca5ab40240a24178b95a29523dc5c23e6fc794c7ec5e8 | C++ | 571 | 19 | #include <Eigen/Core>
#include <Eigen/Array>
USING_PART_OF_NAMESPACE_EIGEN
using namespace std;
// define a custom template unary functor
template<typename Scalar>
struct CwiseClampOp {
CwiseClampOp(const Scalar& inf, const Scalar& sup) : m_inf(inf), m_sup(sup) {}
const Scalar operator()(const Scalar& x) const { r... |
2f80985d21f867491d44fe2fd757bbad804c8cca71ee22831097810f14c7e539 | C++ | 572 | 26 | //
// cpp03/can_query_not_applicable_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.... |
9b29fedaaa7a1c28cf14732659858c85587d80a2553a67c182b4e9340f140428 | C++ | 572 | 24 | /*<-
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)
->*/
#ifdef BOOST_CLBL_TRTS_MSVC
// MSVC requires __cdecl for varargs, and I don't want to clutter the example
int main(){}
#else
//[ has... |
29bb5b3df70f4a8bb9ea72834ed67f3b5284381e25082317718114eda77fc279 | C++ | 575 | 15 | #include "sjAlignSplit.h"
bool sjAlignSplit(uint a1,uint aLength, const Genome &mapGen, uint &a1D, uint &aLengthD, uint &a1A, uint &aLengthA, uint &isj) {
uint sj1=(a1-mapGen.sjGstart)%mapGen.sjdbLength;
if (sj1<mapGen.sjdbOverhang && sj1+aLength>mapGen.sjdbOverhang) {//align crosses the junctions
isj=... |
33718fa6819a696c09adef1ec68fa33ab65ef2dd34dea7d5e5b728a8345ec8c1 | C++ | 576 | 25 | //
// post.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 !defined... |
6fcba568448dfb5862e324e2856b24df23a7e75d589286642b0bd5c72e53cc5c | C++ | 576 | 25 | /*
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 <boost/config.hpp>
#include <boost/algorithm/hex.hpp>
... |
92d032df4ea5b6a60325d2e050870db8ce72d55389f7a99f011b23659a0eef05 | C++ | 577 | 14 | std::string sep = "\n----------------------------------------\n";
Matrix3f m1;
m1 << 1.111111, 2, 3.33333, 4, 5, 6, 7, 8.888888, 9;
IOFormat CommaInitFmt(4, Raw, ", ", ", ", "", "", " << ", ";");
IOFormat CleanFmt(4, AlignCols, ", ", "\n", "[", "]");
IOFormat OctaveFmt(4, AlignCols, ", ", ";\n", "", "", "[", "]");
IOF... |
4d2d20c4d02f6e08cff9a87e1be6670520635c549b54e3aa6a7895bcd405c0d4 | C++ | 580 | 26 | //
// cpp14/can_query_not_applicable_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.... |
63821c95a7c57d92906ef1953bb9e075a3c34877f98b14495b1fa33674dc65f4 | C++ | 580 | 25 | //
// defer.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 !defin... |
874a73ea609d25d58df320463332b70b6425756951b72d927e8f897f37594a47 | C++ | 581 | 22 | #include "SoloRead.h"
SoloRead::SoloRead(Parameters &Pin, int32 iChunkIn) : iChunk(iChunkIn), P(Pin), pSolo(P.pSolo)
{
readBar = new SoloReadBarcode(P);
if (pSolo.type==0)
return;
if (pSolo.type==pSolo.SoloTypes::CB_samTagOut)
return;
readFeat = new SoloReadFeature*[pSolo.nFe... |
b00ba65f0831defa4a84ec8eff06af2d0d806af312354f6f8d1ef9b01daaf19c | C++ | 581 | 20 | #include <string>
#include <time.h>
std::string timeMonthDayTime() {
time_t rawTime;
char timeChar[100];
time(&rawTime);
strftime(timeChar,80,"%b %d %H:%M:%SS",localtime(&rawTime));
std::string timeString=timeChar;
timeString.erase(timeString.end()-1,timeString.end());
return timeString;
};... |
606f2688d8415f41bfc42b4ee01efd78ec2280ef00caf8065b04a73549fef799 | C++ | 583 | 29 | //
// 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)
//
#include <iostream>
#include <boost/asio.hpp>
vo... |
556417aaa4a89bf024c5faf9d5511b210ee3aeab1fecb7cf91f0f0375328db91 | C++ | 584 | 21 | /*<-
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)
->*/
//[ has_member_qualifiers
#include <type_traits>
#include <boost/callable_traits/has_member_qualifiers.hpp>
namespace ct = boost::callab... |
804b88d27e5c8fb7738ea778eeb8ba2ce13a1df7d79879d8c52ef21adca805fa | C++ | 590 | 26 | //
// cpp11/can_query_not_applicable_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.... |
1417c8fa9c97a196bc2fc963f31022d7ac1db1a55ff2afd51a88c1362822ed79 | C++ | 591 | 20 | MatrixXf mat(2,2);
mat << 1, 2, 4, 7;
cout << "Here is the matrix mat:\n" << mat << endl << endl;
mat = 2 * mat;
cout << "After 'mat = 2 * mat', mat = \n" << mat << endl << endl;
mat = mat - MatrixXf::Identity(2,2);
cout << "After the subtraction, it becomes\n" << mat << endl << endl;
ArrayXXf arr = mat;
arr = a... |
4c179cc0fc4445df8ff113fa66bae919e5cf6d4c98ea47e7c3000c7d3f7c9159 | C++ | 591 | 26 | #include <Eigen/Dense>
#include <iostream>
using namespace Eigen;
using namespace std;
int main()
{
MatrixXf m(2,2);
MatrixXf n(2,2);
MatrixXf result(2,2);
m << 1,2,
3,4;
n << 5,6,
7,8;
result = m * n;
cout << "-- Matrix m*n: --" << endl << result << endl << endl;
result = m.array() * ... |
57516760c9b633915aa3517881f5d37a9ee3786ced2d5cace277b7b890ff2a91 | C++ | 591 | 25 | //
// file_base.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.
#i... |
b32b95c2f371d27ccf3d69cbc30cff9c554d3bad3c9e67636f0f015a0e54a44a | C++ | 591 | 25 | //
// error.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 !defin... |
12414fc3d8de8a723aaa9ba066e3602b7dffdbc51f7a6b20f824d47a0301ca05 | C++ | 592 | 25 | //
// co_spawn.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 ... |
6b9fee8ef9b767ed321e5c047a50c79f67dc2d26b0437d1f18a64936bb6e71de | C++ | 592 | 25 | //
// executor.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 ... |
7108a170bba5f3a25ee942ee6d4da92d91234ea0fb358c895299165c2db66e71 | C++ | 592 | 25 | //
// dispatch.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 ... |
7c15f80fe46ad1a5cbeab87245d88e0f1c6a7de2c31aa8432ebbca2f49fcbbfc | C++ | 592 | 25 | //
// detached.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 ... |
842fa28c9d4691d933ade865d7c29b7a21d3ee5ce7604b502e05966f7c303e21 | C++ | 592 | 34 | // g++ -O3 -DNDEBUG benchmarkX.cpp -o benchmarkX && time ./benchmarkX
#include <Eigen/Core>
using namespace std;
USING_PART_OF_NAMESPACE_EIGEN
#ifndef VECTYPE
#define VECTYPE VectorXLd
#endif
#ifndef VECSIZE
#define VECSIZE 1000000
#endif
#ifndef REPEAT
#define REPEAT 1000
#endif
int main(int argc, char *argv[])
... |
38df5061f692070a6720015c62ed36ea5281be77a1059b680a29cc0feda92a2c | C++ | 596 | 25 | //
// awaitable.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.
#i... |
8888099e110b09ab23a504c11043650048ab2ce82249c2f50a5bcb0df1eabdba | C++ | 596 | 25 | //
// this_coro.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.
#i... |
1e24a9654fbfa235e652b979cbda907c4c483a5c767e95c98dbf0cb2358966ec | C++ | 599 | 25 | //
// 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.
#if !d... |
58870136990a10f746c94b19c0fc2548f4c5a15012178a332417dd1a40ecb500 | C++ | 600 | 25 | //
// associator.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.
... |
711029bd3950d1b4fa19c7f79ea730e3da47393c570a02b8de276b28fed1a323 | C++ | 600 | 20 | #include <iostream>
#include <Eigen/Dense>
using namespace std;
using namespace Eigen;
int main()
{
Matrix3f A;
A << 1, 2, 5,
2, 1, 4,
3, 0, 3;
cout << "Here is the matrix A:\n" << A << endl;
FullPivLU<Matrix3f> lu_decomp(A);
cout << "The rank of A is " << lu_decomp.rank() << endl;
c... |
df15928f259012f0f6d075268d60ea1d62589558812ca650f8878f1d9a634c97 | C++ | 600 | 25 | //
// basic_file.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.
... |
b2f88bcd8dfadbaacfbca4768b163c1199769646f4585267a7b2d9bb0a015490 | C++ | 603 | 14 | std::string sep = "\n----------------------------------------\n";
Matrix3d m1;
m1 << 1.111111, 2, 3.33333, 4, 5, 6, 7, 8.888888, 9;
IOFormat CommaInitFmt(StreamPrecision, DontAlignCols, ", ", ", ", "", "", " << ", ";");
IOFormat CleanFmt(4, 0, ", ", "\n", "[", "]");
IOFormat OctaveFmt(StreamPrecision, 0, ", ", ";\n", ... |
032204ee77e839d6a0558a482151f6d62a277bc2ea6aca2fd7261b269be1b27e | C++ | 604 | 25 | //
// wait_traits.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... |
507d843c1a5e8379090d82766383105a29889c5f9277a3804f1a6ff83c6f1ab8 | C++ | 604 | 25 | //
// time_traits.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... |
bf4dc2d332f2dd47417b106b71109171981cd6c49956c4eb1b19be67d7d2d6af | C++ | 604 | 27 | //#define BOOST_CHRONO_PROVIDES_DEPRECATED_IO_SINCE_V2_0_0
#include <iostream>
#include <unistd.h>
#include <boost/chrono.hpp>
#include <boost/chrono/chrono_io.hpp>
using namespace std;
using namespace boost::chrono;
template <typename Clock>
void test()
{
typename Clock::time_point start=Clock::now();
sleep(1);
... |
00f564b5309a7871bf31b99141eff894ba562a2da861ed8037858d2525b82d87 | C++ | 605 | 25 | //
// deferred.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 ... |
960fb05807bd8e8dc16b0ee5c71540bbad43d6f4e48e427bf7e4748f07186649 | C++ | 605 | 35 | // g++ -O3 -DNDEBUG benchmarkX.cpp -o benchmarkX && time ./benchmarkX
#include <iostream>
#include <Eigen/Core>
using namespace std;
using namespace Eigen;
#ifndef VECTYPE
#define VECTYPE VectorXLd
#endif
#ifndef VECSIZE
#define VECSIZE 1000000
#endif
#ifndef REPEAT
#define REPEAT 1000
#endif
int main(int argc, c... |
9055c1f347f074a8f97ee3327b739f4debcdca7236713e0edc19dd23e4146567 | C++ | 608 | 25 | //
// async_result.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... |
c3d8430917102b7537baf1d31f58b63e580fbc4eabf52656322df0edf678722f | C++ | 608 | 25 | //
// placeholders.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... |
d7f173ea610108033b22837d1dd0c55460f58b0576197b110c356badb896547a | C++ | 608 | 25 | //
// basic_socket.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... |
1708af83fcfdc9456fb5ab2e9756beb8157a245b75fb125425ebdace4046a94f | C++ | 612 | 25 | //
// use_awaitable.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 t... |
353d87843e0e1b340e3815540f88a37222b4469f9e9ee91721ca8b4f2196297e | C++ | 612 | 25 | //
// uses_executor.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 t... |
74df311f2a277c94f0b85416ddbdcf6d87c57326a5b3dc3ddaff9933a5bd3012 | C++ | 612 | 19 | #include <iostream>
#include <Eigen/Dense>
using namespace Eigen;
int main()
{
Matrix2d mat;
mat << 1, 2,
3, 4;
Vector2d u(-1,1), v(2,0);
std::cout << "Here is mat*mat:\n" << mat*mat << std::endl;
std::cout << "Here is mat*u:\n" << mat*u << std::endl;
std::cout << "Here is u^T*mat:\n" << u.transpo... |
a28bcb11202798ed3df36178bee975ddfc96bf2930832c680f125fd3e280b40e | C++ | 612 | 25 | //
// packaged_task.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 t... |
91e74d1929f760ef384195705e36d4938f9437d57952d9c4e0bead7b47771953 | C++ | 614 | 9 | MatrixXf m = MatrixXf::Random(3,2);
cout << "Here is the matrix m:" << endl << m << endl;
JacobiSVD<MatrixXf> svd(m, ComputeThinU | ComputeThinV);
cout << "Its singular values are:" << endl << svd.singularValues() << endl;
cout << "Its left singular vectors are the columns of the thin U matrix:" << endl << svd.matrixU(... |
8e37b2d73c17a1044df4b4372a04b0b77498ada1e6a44deb296336413a62e738 | C++ | 615 | 25 | //
// descriptor.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.
... |
909eaa8f5545437bc203f550c6473d3d49e978f18fb3fa28d6f991a6eef46c76 | C++ | 615 | 22 | /*<-
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)
->*/
//[ is_cv_member
#include <type_traits>
#include <boost/callable_traits/is_cv_member.hpp>
namespace ct = boost::callable_traits;
struct... |
97803f6de75a34917b73ea2e88adbade458a68638444f1167ca04db675c0dd81 | C++ | 615 | 25 | //
// stream_base.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... |
3d00c3056922616b71f2e5e5af7666bc49e023b2c05012c8789092a9a675eb38 | C++ | 616 | 20 | // stopclock_perf.cpp ---------------------------------------------------//
// Copyright 2009 Vicente J. Botet Escriba
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
// See http://www.boost.org/libs/chrono for documentation.
#include "clock_name.hpp"
... |
c13fc40ee651aef250ae3a907a482f55b34e8843cb383c8dc1e58fed86c190c0 | C++ | 616 | 25 | //
// redirect_error.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... |
111e6f83641b475d08fa99a6968d5a96b97f8b69c10883fec30f60a3fcb8abe7 | C++ | 619 | 25 | //
// context_base.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... |
cfe7a59685fbf4db34254e87edd2cc96ce2411ee2bc2173ee1d4ec45732af583 | C++ | 619 | 19 | // boost win32_test.cpp -----------------------------------------------------//
// Copyright 2010 Vicente J. Botet Escriba
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
// See http://www.boost.org/libs/chrono for documentation.
#include <iostream>
#in... |
17a0bcf2240464acaccdf53ddb56271520132301ec99f42a328e7075eeeca08b | C++ | 620 | 25 | /*
Copyright 2020 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.hpp>
#include <boost/core/lightweight_test.hpp>
int main()
{
static const std::size_t n = -1;
{
void* p = reinte... |
24622ae0f81aab24f91365bcd64b355962fa11a4fe84b71f287fcc4e43362bf3 | C++ | 620 | 27 | //
// cpp14/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... |
feba83921c5558b7725e9db1999caef7a9bd1ab5ac4e2acfb784dbb40cb273e6 | C++ | 620 | 25 | //
// basic_streambuf.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 un... |
52b4d42ae489360b6648fb82e99e2ba561a38acf4ebe590af5f159c98525b3da | C++ | 621 | 27 | // system functions
#include <string>
#include <fstream>
#include <sstream>
std::string linuxProcMemory()
{
std::ifstream t("/proc/self/status");
std::stringstream buffer;
buffer << t.rdbuf();
std::string outString;
while (buffer.good()) {
std::string str1;
std::getline(buffer,str... |
c8b1d055bebac1de6b5e1976f6689870d7b9dfabb177d1d3aa2f5dd0ec358ace | C++ | 622 | 23 | #include <iostream>
#include <Eigen/Dense>
using namespace std;
using namespace Eigen;
int main()
{
Matrix2f A, b;
LLT<Matrix2f> llt;
A << 2, -1, -1, 3;
b << 1, 2, 3, 1;
cout << "Here is the matrix A:\n" << A << endl;
cout << "Here is the right hand side b:\n" << b << endl;
cout << "Computing LLT... |
306ad2b59edef537a885cb277d60fb63ce1153a7c956e5dfd68488a56e5f2be9 | C++ | 624 | 25 | //
// basic_signal_set.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 ... |
331ba2527bf751e768ab1c8538b3517f4b903f1ba06f680e34bcb6ebd8c9c207 | C++ | 624 | 25 | //
// basic_raw_socket.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 ... |
53fedae46a081d2d12304d73ecc15b1503eab46c59830d5bd0a8d05c57ef6b00 | C++ | 625 | 25 | //
// basic_resolver.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... |
c751a9cc8d5fb7b25175e36bdb51b1168ccf51bb449f4d62c3678d602d63fc48 | C++ | 625 | 33 | // g++ -fopenmp -I .. -O3 -DNDEBUG -finline-limit=1000 benchmarkX.cpp -o b && time ./b
#include <Eigen/Core>
using namespace std;
USING_PART_OF_NAMESPACE_EIGEN
#ifndef MATTYPE
#define MATTYPE MatrixXLd
#endif
#ifndef MATSIZE
#define MATSIZE 400
#endif
#ifndef REPEAT
#define REPEAT 100
#endif
int main(int argc, cha... |
cfc6aa788fa5844b10ac75cdb182271dbcecbc854dd43b0c528ea2a368b74926 | C++ | 625 | 25 | //
// basic_endpoint.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... |
00055a22b809f4e46acaab9e573bf69b4176e3411e6abf61516898799de91dcf | C++ | 626 | 13 | #include "libs/serialization/src/archive_exception.cpp"
#include "libs/serialization/src/basic_archive.cpp"
#include "libs/serialization/src/basic_iarchive.cpp"
#include "libs/serialization/src/basic_iserializer.cpp"
#include "libs/serialization/src/basic_oarchive.cpp"
#include "libs/serialization/src/basic_oserializer... |
b388c2a01b921f16759cc46300cd38512450e2818e12fc83364cd5ad139e0161 | C++ | 626 | 24 | #include <include/matlab_bgl.h>
#include <algorithm>
#include <iostream>
int main(int argc, char **argv) {
mbglIndex n = 5;
mbglIndex rp[] = {0,4,8,12,16,20};
mbglIndex ci[] = {1,2,3,4,0,2,3,4,0,1,3,4,0,1,2,4,0,1,2,3};
mbglIndex ki[20];
mbglIndex kj[20];
int is_planar = 0;
mbglIndex nedges = 0;
boy... |
95143b72baab3aef697d40771358dad8d9b9e993ac34e7128ee87d9ebf2950e5 | C++ | 627 | 20 | // Copyright Antony Polukhin, 2017-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)
// This tests the issue from https://svn.boost.org/trac/boost/ticket/12052
... |
a0adb2cf44acb50fa506e9b069bdc9b3faf4528b6563e182ef4dbb21e2925e8e | C++ | 627 | 27 | //
// cpp14/can_query_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)
//
#incl... |
1945174d6ce5bb725240fd28dca9969074a0c1c1bfd63d433551eb8672e65e0d | C++ | 628 | 25 | //
// cancellation_type.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 fo... |
a880f6f7268a2faed2aa74b69d828dc1fd06bc914100c112bd5490429a6c8f8e | C++ | 628 | 25 | //
// execution_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 fo... |
effc574d65b6318a6f3c7ae3453541c0c57eee185062686fab3ecac54991870a | C++ | 628 | 25 | //
// basic_stream_file.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 fo... |
aeacbe919f381c53fe6d6de5d3623c310a7e47c3f94eeb202f309de203ba5515 | C++ | 630 | 27 | //
// cpp11/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... |
2641ec648f6134e575ab7b912d9a11cd0dd3238516e20a8cbe0957f84a240fe5 | C++ | 631 | 25 | //
// basic_endpoint.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... |
24ed7b49edc8b73ee7c15e7411daa20abb50268d7654fead51eb61f40709dd85 | C++ | 632 | 25 | //
// cancellation_state.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 ... |
bfddae9eac6a9b2b461e68cc0eee1f1cd06981f3a4851799b8a60f7c608cd347 | C++ | 632 | 27 | //
// cpp14/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_... |
71a79a9af68fb04677500c527b0f194bc5bbd1a5f97e1149669be6b173fee8f7 | C++ | 634 | 19 | // boost thread_clock.cpp -----------------------------------------------------------//
// Copyright 2010 Vicente J. Botet Escriba
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
// See http://www.boost.org/libs/chrono for documentation.
//------------... |
6f56afb1c932033cb822b9fd3f83171d3bda29e74f877ce6918ac2440bb4f445 | C++ | 635 | 20 | #include <unsupported/Eigen/Polynomials>
#include <iostream>
using namespace Eigen;
using namespace std;
int main()
{
Vector4d roots = Vector4d::Random();
cout << "Roots: " << roots.transpose() << endl;
Eigen::Matrix<double,5,1> polynomial;
roots_to_monicPolynomial( roots, polynomial );
cout << "Polynomial:... |
cf823a6add607afc6c1bbbd9b25b98bed7f8cecbaad9406ebdbde9058f587a5c | C++ | 635 | 27 | //
// cpp14/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... |
fdb397d453027e9465090557d10c9cb5fad1f898bdcc23a529691e99549bf7c9 | C++ | 635 | 25 | //
// descriptor_base.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 un... |
0197000a9dd245f207c9a11b97a31f88f997b12467e78f8c0f13b5f002be0732 | C++ | 636 | 25 | //
// basic_writable_pipe.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 autolinkin... |
11ed6565a85891e11304909020bfd03553a014b6bebafa671f612230096d5e7c | C++ | 636 | 25 | //
// associated_executor.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 autolinkin... |
294ec06d6265846fdadf5327747d8b99aa2d9340d8db34e0e2c03ffd245f6b52 | C++ | 636 | 23 | //
// 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 ... |
704f92cbe32e4cb20ffecd2414e45e912c1418f08bfac54339a801460b6d0eba | C++ | 636 | 25 | //
// basic_readable_pipe.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 autolinkin... |
ac89b318ca4d8bb2d22db9660e7b4d37676c545c417b59c458d9b784f414c10e | C++ | 636 | 25 | //
// executor_work_guard.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 autolinkin... |
b17762e7954e1cb31f72537eba4dfd6ff3dc75028a1e5f3b7397b7732fa49c6a | C++ | 636 | 25 | //
// buffer_registration.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 autolinkin... |
b773be02ea58e0da5eba251b343366bae166336bbe51cc8921942ce3b1a96ff1 | C++ | 636 | 25 | //
// basic_stream_socket.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 autolinkin... |
b97b5cb615d13b38f3763282d8e9875fc5d70efc3a2bfe89f2b759413191dffd | C++ | 636 | 25 | //
// cancellation_signal.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 autolinkin... |
321565535b03a67f7b9a45be12c966f6e90f05d5ce5c19a678541cfb66951ccc | C++ | 639 | 25 | //
// basic_descriptor.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 ... |
1454739af7283c74d68614a466281cadc7075b46a8ca9f6b8b8dc9d2cf4b5df7 | C++ | 640 | 23 | //
// 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 ... |
2a7d8ca94dcf9c836e386307387e68c81933b9de4a45aefecf81549bd8f4e551 | C++ | 640 | 25 | //
// associated_allocator.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 autolink... |
2c568232dc770e3ce813b6b55b1347d352b7bb984511e73ab43f085644aa811f | C++ | 640 | 36 | // g++ -fopenmp -I .. -O3 -DNDEBUG -finline-limit=1000 benchmarkX.cpp -o b && time ./b
#include <iostream>
#include <Eigen/Core>
using namespace std;
using namespace Eigen;
#ifndef MATTYPE
#define MATTYPE MatrixXLd
#endif
#ifndef MATSIZE
#define MATSIZE 400
#endif
#ifndef REPEAT
#define REPEAT 100
#endif
int mai... |
366fe600b988f18cbea37555314b84103a9d46a9d2a9c43d117da1dce56b6664 | C++ | 640 | 25 | //
// completion_condition.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 autolink... |
5545cf6147a2073aa921ad238f317eb098643a8f874e57a2829f062b321937a0 | C++ | 640 | 25 | //
// basic_deadline_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 autolink... |
6f1a1a05203228e6f53d7641a74d6df59aeae806769fa4640c69705d31cfae7d | C++ | 640 | 25 | //
// basic_waitable_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 autolink... |
015658019ec51a77f91b7c75245fb76264dedc8b0216b06bdf9b4ebfa9c5b0e7 | C++ | 642 | 27 | //
// cpp11/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_... |
d5a145a0a2e7d2c97760bd7fcc2557a6042ba83e96e56fd6fdfd3503a7b1375a | C++ | 644 | 25 | //
// basic_datagram_socket.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... |
e6342ba11f0b5cd0535c57b153386f6bacf12fe01595b0896827df4ed98f12c7 | C++ | 644 | 25 | //
// basic_socket_acceptor.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... |
01e27a669dd76ca18ccd36e4e04c2a4886568dc62dc9a17e36c3eca2c504120f | C++ | 645 | 25 | //
// resolver_query_base.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 autolinkin... |
d37cb6bbf98198c34d7bcdb28a18c0c92a2343fd9909716e76ed4afc66280cf5 | C++ | 645 | 34 | #include <stdio.h>
#include <stdlib.h>
#include <mex.h>
#include <math.h>
#include <matrix.h>
#include <string.h>
// Normalizes so that each column sums to one
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
//Declarations
mxArray *Aar;
double *A;
double s;
int i,j,numR,numC,... |
dd83ef215b1bb46c7a8d66986f080577b93392cdea8b6f5bc6e5074a245e9dc2 | C++ | 646 | 23 | // boost win32_test.cpp -----------------------------------------------------//
// Copyright 2010 Vicente J. Botet Escriba
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
// See http://www.boost.org/libs/chrono for documentation.
#include <iostream>
#in... |
2783b86e82eafc392aa29eb87c77964ca130a59e3242aedacb4c8584801523b2 | C++ | 647 | 25 | //
// basic_object_handle.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 autolinkin... |
953e59185fc83738c00dad3f7ce2935171ceeba3e28e9c5b88cb264f06541ded | C++ | 647 | 25 | //
// basic_stream_handle.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 autolinkin... |
2a7e277e1bd31dfb5e149581e81b3a15bfb6658cf32701ca42fada79d5c59d5e | C++ | 648 | 36 | //
// mem_fn_ref_test.cpp - reference_wrapper
//
// Copyright (c) 2009 Peter Dimov
//
// 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/mem_fn.hpp>
#include <boost/ref.hpp>
#include <boost/de... |
fe806bce712a9222b8de4cd94606867843bc8033c302fa09cd78e4c56cd0cd4a | C++ | 648 | 24 | /*
* Copyright Andrey Semashev 2015.
* 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)
*/
/*!
* \file decl_header.cpp
* \author Andrey Semashev
* \date 21.06.2015
*
* \brief This... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.