repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
rmlmcfadden/triumfpp
include/triumf/constants/codata_2002.hpp
<filename>include/triumf/constants/codata_2002.hpp #ifndef TRIUMF_CONSTANTS_CODATA_2002_HPP #define TRIUMF_CONSTANTS_CODATA_2002_HPP #include <cmath> #include <type_traits> // TRIUMF: Canada's particle accelerator centre namespace triumf { // namespace constants { // Committee on Data (CODATA) of the International ...
rmlmcfadden/triumfpp
examples/plot_field_penetration_pippard.cpp
<reponame>rmlmcfadden/triumfpp<filename>examples/plot_field_penetration_pippard.cpp #include <triumf/superconductivity/bcs.hpp> #include <triumf/superconductivity/pippard.hpp> double pippard_reduced_field_penetration(const double *x, const double *par) { return std::abs( triumf::superconductivity::pippard::reduced...
rmlmcfadden/triumfpp
include/triumf/constants/codata_2018.hpp
#ifndef TRIUMF_CONSTANTS_CODATA_2018_HPP #define TRIUMF_CONSTANTS_CODATA_2018_HPP #include <cmath> #include <type_traits> // TRIUMF: Canada's particle accelerator centre namespace triumf { // namespace constants { // Committee on Data (CODATA) of the International Science Council (ISC) // recommended values of fund...
rmlmcfadden/triumfpp
examples/test_depth_averaging.cpp
// C++ standard library headers #include <algorithm> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <limits> #include <numeric> #include <vector> // Boost headers #include <boost/math/interpolators/pchip.hpp> #include <boost/math/quadrature/tanh_sinh.hpp> // triumf++ headers #incl...
rmlmcfadden/triumfpp
tests/codata_2018.cpp
<gh_stars>0 #define BOOST_TEST_MODULE CODATA_2018 #include <boost/test/included/unit_test.hpp> #include <cmath> #include <tuple> typedef std::tuple<float, double, long double> test_types; #include <triumf/constants/codata_2018.hpp> // alpha particle-electron mass ratio // (7294.29954142 ± 2.4e-07) BOOST_AUTO_TEST_C...
rmlmcfadden/triumfpp
include/triumf/bnmr/slr/sq_exp.hpp
<filename>include/triumf/bnmr/slr/sq_exp.hpp #ifndef TRIUMF_BNMR_SLR_SQ_EXP_HPP #define TRIUMF_BNMR_SLR_SQ_EXP_HPP #include <boost/math/constants/constants.hpp> #include <cmath> #include <triumf/bnmr/slr/common.hpp> // TRIUMF: Canada's particle accelerator centre namespace triumf { // β-detected nuclear magnetic res...
rmlmcfadden/triumfpp
include/triumf/srim/pdf.hpp
<reponame>rmlmcfadden/triumfpp #ifndef TRIUMF_SRIM_PDF_HPP #define TRIUMF_SRIM_PDF_HPP #include <boost/math/constants/constants.hpp> // #include <boost/math/distributions/lognormal.hpp> // #include <boost/math/distributions/skew_normal.hpp> #include <boost/math/quadrature/tanh_sinh.hpp> #include <boost/math/special_f...
rmlmcfadden/triumfpp
examples/test_depth_averaging3.cpp
// C++ standard library headers #include <algorithm> #include <cmath> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <limits> #include <numeric> #include <vector> // triumf++ headers // #include <triumf/bnmr/srf/local.hpp> #include <triumf/bnmr/srf/nonlocal.hpp> #include <triumf/...
rmlmcfadden/triumfpp
examples/plot_field_penetration.cpp
#include <triumf/superconductivity/bcs.hpp> #include <triumf/superconductivity/pippard.hpp> double pippard_reduced_field_penetration(const double *x, const double *par) { return std::abs(triumf::superconductivity::pippard::reduced_field_penetration<double>( *x, par[0], par[1], par[2], par[3], par[4], par[5], p...
rmlmcfadden/triumfpp
tmp/nonlocal.hpp
#ifndef TRIUMF_SUPERCONDUCTIVITY_NONLOCAL_HPP #define TRIUMF_SUPERCONDUCTIVITY_NONLOCAL_HPP #include <cmath> #include <boost/math/constants/constants.hpp> #include <boost/math/quadrature/ooura_fourier_integrals.hpp> #include <triumf/superconductivity/bcs.hpp> #include <triumf/superconductivity/london.hpp> #include <...
rmlmcfadden/triumfpp
tests/superconductivity_pippard.cpp
#define BOOST_TEST_MODULE SRF #include <boost/test/included/unit_test.hpp> #include <limits> #include <tuple> typedef std::tuple<float, double, long double> test_types; #include "triumf/superconductivity/bcs.hpp" #include "triumf/superconductivity/pippard.hpp" // BOOST_AUTO_TEST_CASE_TEMPLATE(pippard_g, T, test_typ...
rmlmcfadden/triumfpp
include/triumf/superconductivity/dynes.hpp
#ifndef TRIUMF_SUPERCONDUCTIVITY_DYNES_HPP #define TRIUMF_SUPERCONDUCTIVITY_DYNES_HPP #include <cmath> #include <complex> // TRIUMF: Canada's particle accelerator centre namespace triumf { // namespace superconductivity { // namespace dynes { // density of states w/ broadening term Gamma // <NAME> al., "Direct mea...
rmlmcfadden/triumfpp
include/triumf/global_chi2.hpp
<reponame>rmlmcfadden/triumfpp #ifndef TRIUMF_GLOBAL_CHI2_HPP #define TRIUMF_GLOBAL_CHI2_HPP #include <vector> #include <Fit/BinData.h> #include <Fit/Chi2FCN.h> // TRIUMF: Canada's particle accelerator centre namespace triumf { /// class for calculating the "global" chi2 using ROOT's fitting utilities class global_...
rmlmcfadden/triumfpp
tests/superconductivity_phenomenology.cpp
<reponame>rmlmcfadden/triumfpp<gh_stars>0 #define BOOST_TEST_MODULE SRF #include <boost/test/included/unit_test.hpp> #include <limits> #include <tuple> typedef std::tuple<float, double, long double> test_types; #include <triumf/numpy.hpp> #include <triumf/superconductivity/phenomenology.hpp> // BOOST_AUTO_TEST_CASE...
rmlmcfadden/triumfpp
examples/test_depth_averaging2.cpp
<filename>examples/test_depth_averaging2.cpp<gh_stars>0 // C++ standard library headers #include <algorithm> #include <cmath> #include <cstdlib> #include <iomanip> #include <iostream> #include <limits> #include <numeric> #include <vector> // triumf++ headers #include <triumf/bnmr/srf.hpp> #include <triumf/numpy.hpp> #...
rmlmcfadden/triumfpp
include/triumf/math/pdf.hpp
#ifndef TRIUMF_MATH_PDF_HPP #define TRIUMF_MATH_PDF_HPP #include <boost/math/constants/constants.hpp> #include <boost/math/distributions.hpp> // TRIUMF: Canada's particle accelerator centre namespace triumf { // namespace math { // probability density function (PDF) namespace pdf { /// exponentially modified Gauss...
rmlmcfadden/triumfpp
tests/codata_2006.cpp
#define BOOST_TEST_MODULE CODATA_2006 #include <boost/test/included/unit_test.hpp> #include <cmath> #include <tuple> typedef std::tuple<float, double, long double> test_types; #include <triumf/constants/codata_2006.hpp> // lattice spacing of silicon // (1.920155762e-10 ± 5e-18) m BOOST_AUTO_TEST_CASE_TEMPLATE(latti...
rmlmcfadden/triumfpp
include/triumf/bnmr/slr/mod_str_exp.hpp
<reponame>rmlmcfadden/triumfpp #ifndef TRIUMF_BNMR_SLR_MOD_STR_EXP_HPP #define TRIUMF_BNMR_SLR_MOD_STR_EXP_HPP #include <boost/math/quadrature/tanh_sinh.hpp> #include <cmath> #include <triumf/bnmr/slr/common.hpp> // TRIUMF: Canada's particle accelerator centre namespace triumf { // β-detected nuclear magnetic resona...
rmlmcfadden/triumfpp
include/triumf/bnmr/srf/local.hpp
#ifndef TRIUMF_BNMR_SRF_LOCAL_HPP #define TRIUMF_BNMR_SRF_LOCAL_HPP // C++ standard library headers #include <algorithm> #include <cmath> #include <limits> #include <numeric> #include <vector> // Boost headers #include <boost/math/interpolators/pchip.hpp> #include <boost/math/quadrature/tanh_sinh.hpp> // triumf++ he...
rmlmcfadden/triumfpp
include/triumf/bnmr/slr/magnesium_31/decay_corrections.hpp
<reponame>rmlmcfadden/triumfpp // // Author: <NAME> // // 31Mg radioactive decay function for fitting β-NMR SLR spectra, see: // <NAME> et al. JPS Conf. Proc. 21, 011047 (2018). // https://doi.org/10.7566/JPSCP.21.011047 // // General solutions to the rate equations computed with: // Maxima, a Computer Algebra System /...
rmlmcfadden/triumfpp
include/triumf/nmr/spectral_density.hpp
#ifndef TRIUMF_NMR_SPECTRAL_DENSITY_HPP #define TRIUMF_NMR_SPECTRAL_DENSITY_HPP // Author: <NAME> // NMR spectral density functions for spin-lattice relaxation in solids. // // For additional details see: // // <NAME>, <NAME>, and <NAME>, "Relaxation Effects in // Nuclear Magnetic Resonance Absorption", Phys. Rev. 73,...
rmlmcfadden/triumfpp
include/triumf/nmr/hebel_slichter.hpp
#ifndef TRIUMF_NMR_HEBEL_SLICHTER_HPP #define TRIUMF_NMR_HEBEL_SLICHTER_HPP #include <cmath> #include <complex> #include <boost/math/quadrature/exp_sinh.hpp> #include <boost/math/quadrature/gauss_kronrod.hpp> #include <triumf/constants/codata_2018.hpp> #include <triumf/statistical_mechanics/fermi_dirac.hpp> #include...
rmlmcfadden/triumfpp
include/triumf/bnmr/slr/common.hpp
#ifndef TRIUMF_BNMR_SLR_COMMON_HPP #define TRIUMF_BNMR_SLR_COMMON_HPP #include <cmath> // TRIUMF: Canada's particle accelerator centre namespace triumf { // β-detected nuclear magnetic resonance (β-NMR) namespace bnmr { // spin-lattice relaxation (SLR) namespace slr { /// normalization for integration template <ty...
rmlmcfadden/triumfpp
include/triumf/bnmr/slr/str_exp.hpp
#ifndef TRIUMF_BNMR_SLR_STR_EXP_HPP #define TRIUMF_BNMR_SLR_STR_EXP_HPP #include <boost/math/quadrature/tanh_sinh.hpp> #include <cmath> #include <triumf/bnmr/slr/common.hpp> // TRIUMF: Canada's particle accelerator centre namespace triumf { // β-detected nuclear magnetic resonance (β-NMR) namespace bnmr { // spin-l...
rmlmcfadden/triumfpp
tests/codata_2010.cpp
<gh_stars>0 #define BOOST_TEST_MODULE CODATA_2010 #include <boost/test/included/unit_test.hpp> #include <cmath> #include <tuple> typedef std::tuple<float, double, long double> test_types; #include <triumf/constants/codata_2010.hpp> // {220} lattice spacing of silicon // (1.920155714e-10 ± 3.2e-18) m BOOST_AUTO_TEST...
rmlmcfadden/triumfpp
include/triumf/nmr/dipole_dipole.hpp
<reponame>rmlmcfadden/triumfpp #ifndef TRIUMF_NMR_DIPOLE_DIPOLE_HPP #define TRIUMF_NMR_DIPOLE_DIPOLE_HPP #include <cmath> // TRIUMF: Canada's particle accelerator centre namespace triumf { // Nuclear Magnetic Resonance (NMR) namespace nmr { // dipole-dipole spin-lattice relaxation namespace dipole_dipole { // gene...
rmlmcfadden/triumfpp
examples/test_depth_averaging4.cpp
// C++ standard library headers #include <algorithm> #include <cmath> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <limits> #include <numeric> #include <vector> // triumf++ headers #include <triumf/bnmr/srf/local.hpp> // #include <triumf/bnmr/srfnonlocal.hpp> #include <triumf/n...
wisdark/SocksOverRDP
SocksOverRDP-Server/SocksOverRDP-Server.cpp
<filename>SocksOverRDP-Server/SocksOverRDP-Server.cpp<gh_stars>100-1000 /* * MIT License * * Copyright(c) 2018 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files(the "Software"), to deal * in the Software without restricti...
wisdark/SocksOverRDP
SocksOverRDP-Plugin/compreg.cpp
// compreg.cpp : Implementation of CCompReg #include "stdafx.h" #include "compreg.h" // CCompReg
wisdark/SocksOverRDP
SocksOverRDP-Plugin/SocksOverRDP-Plugin.cpp
<gh_stars>100-1000 /* * MIT License * * Copyright(c) 2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files(the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, ...
wisdark/SocksOverRDP
SocksOverRDP-Server/SocksServer.cpp
<reponame>wisdark/SocksOverRDP<filename>SocksOverRDP-Server/SocksServer.cpp /* TODO: check closing flag at negotiation phases - two functions. TODO: slotevent hslot passed from socksoverrdp-server.cpp */ #include <winsock2.h> #include <Ws2tcpip.h> #include <windows.h> #include <stdio.h> #include <process.h> #include ...
jeremyletang/sqlb
include/sqlb/sqlb.hpp
<filename>include/sqlb/sqlb.hpp // Copyright 2017 <NAME>. // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distribute...
jeremyletang/sqlb
tests/main.cpp
// Copyright 2017 <NAME>. // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those t...
ABHI2598/Learn-Cpp
assignment3/src/assignment3.cpp
//============================================================================ // Name : rodgersA3.cpp // Author : <NAME> // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #i...
ABHI2598/Learn-Cpp
assignment6/src/queue1.cpp
<reponame>ABHI2598/Learn-Cpp /* * queue1.cpp * * Created on: Dec 31, 2019 * Author: tylerrodgers */ #include "queue1.h" template<class ItemType> QueType<ItemType>::QueType(int max) // Paramaterized class constructor // Post: maxQue, front, and rear have been initialized. // The array to hold the qu...
ABHI2598/Learn-Cpp
assignment3/src/LinkedListTemplate.cpp
<gh_stars>1-10 /* * LinkedListTemplate.cpp * * Created on: Oct 4, 2019 * Author: tylerrodgers */ #include "LinkedListTemplate.h" template <class T> LinkedList<T>::LinkedList() { // initialize head node to null this->head = nullptr; } template <class T> void LinkedList<T>::push_front(T newData) { LLnode<T> ...
ABHI2598/Learn-Cpp
assignment7/src/assignment7.cpp
<reponame>ABHI2598/Learn-Cpp //============================================================================ // Name : rodgersA7.cpp // Author : <NAME> // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //===================================================...
ABHI2598/Learn-Cpp
assignment4/src/rodgersA5.cpp
<reponame>ABHI2598/Learn-Cpp<gh_stars>1-10 //============================================================================ // Name : rodgersA5.cpp // Author : <NAME> // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //=====================================...
ABHI2598/Learn-Cpp
assignment1/src/assignment1.cpp
<filename>assignment1/src/assignment1.cpp //============================================================================ // Name : assignment1.cpp // Author : <NAME> // Version : // Copyright : my code. not yours. // Description : Hello World in C++, Ansi-style //======================================...
ABHI2598/Learn-Cpp
assignment8/src/assignment8.cpp
//============================================================================ // Name : rodgersA8.cpp // Author : <NAME> // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #i...
aishaaqeel/DS-Algo-Point
DijkstraAlgo.cpp
<reponame>aishaaqeel/DS-Algo-Point // Dijkstra's Algorithm in C++ #include <iostream> #include <vector> #define INT_MAX 10000000 using namespace std; void DijkstrasTest(); int main() { DijkstrasTest(); return 0; } class Node; class Edge; void Dijkstras(); vector<Node*>* AdjacentRemainingN...
rishusingh022/Codechef-Solution
April 2021/theif_police.cpp
<reponame>rishusingh022/Codechef-Solution<filename>April 2021/theif_police.cpp<gh_stars>0 #include <iostream> using namespace std; int main() { int t; cin>>t; while(t--){ int n,m; int x,y; int a,b; cin>>n>>m>>x>>y>>a>>b; int min_thief=(n-x)+(m-y); int min_police=(n-a)+(m-b) -...
rishusingh022/Codechef-Solution
March 2021/Space_Arrays.cpp
<gh_stars>0 #include <iostream> #include<bits/stdc++.h> using namespace std; int main() { freopen("input.txt", "w", stdin); int t; cin>>t; while(t--) { int n; cin>>n; int a[n]; for(int i=0;i<n;i++) { cin>>a[i]; } sort(a,a+n); int turn=0; int host=0; for ...
rishusingh022/Codechef-Solution
April 2021/LunchTime/Chef_In_Heaven.cpp
#include<iostream> #include <cmath> using namespace std; int main(){ int t; cin>>t; while(t--){ int l; cin>>l; string s; cin>>s; int count_0=0; int count_1=0; int j=0; for(int i=0;i<l;i++){ if(s[i]=='0'){ ...
rishusingh022/Codechef-Solution
April 2021/Passing_marks.cpp
<filename>April 2021/Passing_marks.cpp #include <bits/stdc++.h> using namespace std; int main(){ int test_case; cin>>test_case; while(test_case>0){ int a,b,c,amin,bmin,cmin,t; cin>>amin>>bmin>>cmin>>t>>a>>b>>c; if(a>=amin && b>=bmin && c>=cmin){ if(a+b+c>=t){ ...
rishusingh022/Codechef-Solution
April 2021/Hiring_Test.cpp
#include <iostream> #include <map> using namespace std; int main(){ int t; cin>>t; while (t--){ int n,m; int x,y; cin>>n>>m; cin>>x>>y; while (n--){ string str; cin>>str; map<char,int> mp; mp['U'] = 0; ...
rishusingh022/Codechef-Solution
April 2021/WorthyMAtrix.cpp
#include<bits/stdc++.h> using namespace std; #define ll long long int #define ld long double int main() { int t; cin>>t; if(t>=1 && t<=10){ while(t--){ ll n,m; ld k; cin>>n>>m>>k; ll B=1; ll count=0; ld sum=0; ...
rishusingh022/Codechef-Solution
April 2021/LunchTime/EquinoxStrings.cpp
<gh_stars>0 #include<iostream> using namespace std; int main(){ int t; cin>>t; while(t--){ long long n,a,b; cin>>n>>a>>b; long long Sarthak_points=0,Anuradha_points=0; for(int i=0;i<n;i++){ string s; cin>>s; //EQUINOX ...
rishusingh022/Codechef-Solution
April 2021/Long challenege/ChefandDice.cpp
#include<iostream> #include <cmath> using namespace std; int main(){ int test_case; cin>>test_case; while(test_case>0){ int n; cin>>n; if(n==0){ cout<<"0"<<endl; break; } else if(n==1){ cout<<"20"<<endl; b...
rishusingh022/Codechef-Solution
March 2021/No_Time_to_Wait.cpp
#include<iostream> using namespace std; int main(){ int x,h,n; cin>>n>>h>>x; int arr[n]; for(int i=0;i<n;i++){ cin>>arr[i]; } int flag=0; for(int i=0;i<n;i++){ if((arr[i]+x)>=h){ flag=1; break; } } if(flag==1){ cout<<"YES"; ...
rishusingh022/Codechef-Solution
March 2021/Chef_and_Groups.cpp
<reponame>rishusingh022/Codechef-Solution #include <bits/stdc++.h> using namespace std; void count_subgroup(string n,int size){ int count=0; for(int i=0;i<size-1;i++){ if(n[i] == '0' && n[i + 1] == '1'){ count=count+1; } } if(n[0] == '1'){ count=count+1; ...
rishusingh022/Codechef-Solution
March 2021/Interesting_XOR_.cpp
<filename>March 2021/Interesting_XOR_.cpp #include <bits/stdc++.h> using namespace std; # define endl "\n" int main() { int t; cin>>t; while (t--) { int c, a=0, b=0; const int bit =64; cin>>c; string b_c=bitset<bit>(c).to_string(); string b_a=bitset<bit>(a).to_string(); string b_b=bitse...
rishusingh022/Codechef-Solution
April 2021/coldplay.cpp
#include<iostream> using namespace std; int main(){ int t; cin>>t; while(t--){ int m,s; cin>>m>>s; int ans=m/s; cout<<ans<<endl; } }
rishusingh022/Codechef-Solution
April 2021/SSCRIPT.cpp
<gh_stars>0 #include<iostream> using namespace std; int main(){ int test_case; cin>>test_case; while(test_case>0){ int n,k; cin>>n>>k; string s; cin>>s; int count=0; int ans=0; for(int i=0;i<n;i++){ if(s[i]=='*'){ ...
rishusingh022/Codechef-Solution
April 2021/chocolate_manager.cpp
<reponame>rishusingh022/Codechef-Solution #include <bits/stdc++.h> using namespace std; int main(){ int test_case; cin>>test_case; while(test_case>0){ long long int n,x; cin>>n>>x; vector<long long int> flavors; for(int i=0;i<n;i++){ long long temp; ...
rishusingh022/Codechef-Solution
April 2021/Long challenege/BOLT.cpp
<reponame>rishusingh022/Codechef-Solution #include<iostream> #include <cmath> using namespace std; int main(){ int test_case; cin>>test_case; while(test_case>0){ float k1,k2,k3,v; cin>>k1>>k2>>k3>>v; float speed=k1*k2*k3*v; float val=100/speed; int result=r...
rishusingh022/Codechef-Solution
April 2021/Long challenege/BinaryStringMEX.cpp
<filename>April 2021/Long challenege/BinaryStringMEX.cpp #include <bits/stdc++.h> using namespace std; bool solve(string t, string s) { if(s == t) return true; long long int n = s.size(); long long int m = t.size(); long long int j = 0; for(long long int i = 0; i < n; i++){ ...
rishusingh022/Codechef-Solution
April 2021/array_rotation.cpp
#include<iostream> #include <numeric> using namespace std; #define mod 1000000007 #define int long long int32_t main(){ int n; cin>>n; int sum=0; for(int i=0;i<n;i++){ int x; cin>>x; sum=(sum+x)%mod; } int q; cin>>q; while(q--){ int t; ...
rishusingh022/Codechef-Solution
April 2021/LunchTime/BenchPress.cpp
<reponame>rishusingh022/Codechef-Solution #include<iostream> #include<map> using namespace std; #define int long long int32_t main(){ int t; cin>>t; while(t--){ int n,w,wr; cin>>n>>w>>wr; map<int,int> mp; int arr[n]; for(int i=0;i<n;i++){ ci...
rishusingh022/Codechef-Solution
April 2021/SOCKS1.cpp
<reponame>rishusingh022/Codechef-Solution #include<iostream> #include<vector> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a>=1 && a<=10 && b>=1 && b<=10 && c>=1 && c<=10){ if(a==b||a==c||b==c){ cout<<"YES"; } else{ cout<<"NO"; ...
rishusingh022/Codechef-Solution
April 2021/chef_on_island.cpp
<gh_stars>0 #include<iostream> using namespace std; int main(){ int t; cin>>t; while(t--){ int x,y; float xr,yr,d; cin>>x>>y>>xr>>yr>>d; float xn=x/xr; float yn=y/yr; float nn=min(xn,yn); if(nn>=d){ cout<<"YES"<<endl; ...
rishusingh022/Codechef-Solution
April 2021/Cookoff/Body_builder.cpp
#include <bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ long long int n, r; cin>>n>>r; long long int time[n], value[n]; for(long long int i=0;i<n;i++){ cin>>time[i]; } for(long long int i=0;i<n;i++){ ...
vehsakul/gtl
Samples/Geometrics/IntersectTriangleBox/IntersectTriangleBoxWindow.cpp
<gh_stars>0 // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include "IntersectTriangleBoxWind...
vehsakul/gtl
Source/Graphics/GteIndexBuffer.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <Mathematics...
vehsakul/gtl
Source/Mathematics/GteETManifoldMesh.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <LowLevel/Gt...
vehsakul/gtl
Samples/Graphics/Picking/PickingWindow.cpp
<filename>Samples/Graphics/Picking/PickingWindow.cpp<gh_stars>0 // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3....
vehsakul/gtl
Samples/Geometrics/TriangulationEC/TriangulationECWindow.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include "TriangulationECWindow.h" int main(i...
vehsakul/gtl
Source/Graphics/GteTexture3.cpp
<reponame>vehsakul/gtl // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h...
vehsakul/gtl
Source/Applications/MSW/DX11/GteWindowSystem.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <Application...
vehsakul/gtl
Source/Graphics/GteLighting.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <Mathematics...
vehsakul/gtl
Samples/Graphics/TextureArrays/TextureArraysWindow.cpp
<reponame>vehsakul/gtl<gh_stars>0 // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include "Te...
vehsakul/gtl
Tools/GenerateOpenGLWrapper/GteOpenGL.cpp
<gh_stars>1-10 // Geometric Tools LLC, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: This file is automatically generated. #include <Graphi...
vehsakul/gtl
Source/Graphics/GL4/GteGL4InputLayoutManager.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <LowLevel/Gt...
vehsakul/gtl
Samples/Graphics/GeometryShaders/GeometryShadersWindow.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include "GeometryShadersWindow.h" int main(i...
vehsakul/gtl
Source/Graphics/GteTexture1Array.cpp
<gh_stars>0 // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include ...
vehsakul/gtl
Source/Applications/MSW/WGL/GteWindowSystem.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <Application...
vehsakul/gtl
Source/Graphics/GteFont.cpp
<filename>Source/Graphics/GteFont.cpp // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.1 (2016/06/26) #include...
vehsakul/gtl
Source/Physics/GteFluid2SolvePoisson.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <Physics/Gte...
vehsakul/gtl
Source/Graphics/DX11/GteHLSLConstantBuffer.cpp
<gh_stars>0 // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.1 (2016/09/12) #include <GTEnginePCH.h> #include ...
vehsakul/gtl
Source/Mathematics/MSW/GteIntelSSE.cpp
<reponame>vehsakul/gtl // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h...
vehsakul/gtl
Samples/Mathematics/BSplineSurfaceFitter/BSplineSurfaceFitterWindow.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include "BSplineSurfaceFitterWindow.h" int m...
vehsakul/gtl
Samples/Physics/WaterDropFormation/WaterDropFormationWindow.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.1.0 (yyyy/mm/dd) #include "WaterDropFormationWindow.h" namespa...
vehsakul/gtl
Source/Graphics/DX11/GteHLSLVisualProgram.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <Graphics/DX...
vehsakul/gtl
Samples/Physics/FlowingSkirt/FlowingSkirtWindow.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.1 (2016/08/25) #include "FlowingSkirtWindow.h" //#define SIN...
vehsakul/gtl
Source/Graphics/GL4/GteGL4TextureRT.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <LowLevel/Gt...
vehsakul/gtl
Samples/DX11/SharedTextures/SharedTexturesWindow.cpp
<filename>Samples/DX11/SharedTextures/SharedTexturesWindow.cpp<gh_stars>0 // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File V...
vehsakul/gtl
Source/Graphics/GteShader.cpp
<filename>Source/Graphics/GteShader.cpp // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #inclu...
vehsakul/gtl
Source/Graphics/DX11/GteDX11IndexBuffer.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <Graphics/DX...
vehsakul/gtl
Source/Graphics/GteVertexFormat.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <LowLevel/Gt...
vehsakul/gtl
Tools/GenerateOpenGLWrapper/GenerateOpenGLWrapper.cpp
<reponame>vehsakul/gtl<gh_stars>0 // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.1 (2016/07/01) #include <ca...
vehsakul/gtl
Source/Graphics/GteSkinController.cpp
<reponame>vehsakul/gtl // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h...
vehsakul/gtl
Samples/Mathematics/ApproximateEllipseByArcs/ApproximateEllipsesByArcsWindow.cpp
<gh_stars>0 // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include "ApproximateEllipsesByArc...
vehsakul/gtl
Source/Physics/GteFluid2UpdateState.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <Physics/Gte...
vehsakul/gtl
Samples/Graphics/CubeMaps/CubeMapEffect.cpp
<filename>Samples/Graphics/CubeMaps/CubeMapEffect.cpp // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/...
vehsakul/gtl
Source/Graphics/DX11/GteHLSLStructuredBuffer.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.1 (2016/09/12) #include <GTEnginePCH.h> #include <Graphics/DX...
vehsakul/gtl
Samples/Basics/IEEEFloatingPoint/IEEEFloatingPoint.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEngine.h> #if defined(__LINUX__) #...
vehsakul/gtl
Source/Graphics/GteDepthStencilState.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <Graphics/Gt...
vehsakul/gtl
Samples/Geometrics/MinimumVolumeBox3D/MinimumVolumeBox3DWindow.cpp
<reponame>vehsakul/gtl // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include "MinimumVolume...
vehsakul/gtl
Source/Graphics/GteTransform.cpp
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 3.0.0 (2016/06/19) #include <GTEnginePCH.h> #include <Graphics/Gt...
vehsakul/gtl
Samples/Mathematics/SymmetricEigensolver3x3/SymmetricEigensolver3x3.cpp
<filename>Samples/Mathematics/SymmetricEigensolver3x3/SymmetricEigensolver3x3.cpp // <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2016 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt /...