New pages
From ProgrammingExamples
(newest | oldest) View (newer 50 | older 50) (20 | 50 | 100 | 250 | 500)
- 21:21, 21 November 2016 CPP/OpenMP/ParallelFor (hist) [616 bytes] Daviddoria (Talk | contribs) (Created page with "==ParallelFor.cpp== <source lang="cpp"> #include <iostream> int main(int,char*[]) { #pragma omp parallel for for(int x=0; x < 100; x++) { std::cout << x <...")
- 21:21, 21 November 2016 OpenMP (hist) [81 bytes] Daviddoria (Talk | contribs) (Created page with "Simple OpenMP examples. * Perform a parallel for loop")
- 08:59, 20 November 2016 CPP/decltype (hist) [566 bytes] Daviddoria (Talk | contribs) (Created page with "==decltype.cpp== <source lang="cpp"> #include <iostream> void variable() { float a = 1.2f; decltype(a) b = a + .3; std::cout << b << std::endl; } float f() {...")
- 09:49, 19 November 2016 CPP/bind (hist) [810 bytes] Daviddoria (Talk | contribs) (Created page with "==bind.cpp== <source lang="cpp"> #include <iostream> #include <functional> void add(int a, int b) { std::cout << "a: " << a << " b: " << b << std::endl; } int main(int,c...")
- 07:45, 10 November 2016 CPP/Boost/BGL/PrimMST (hist) [2,728 bytes] Daviddoria (Talk | contribs) (Created page with "==DijkstraDirected.cpp== <source lang="cpp"> #include <iostream> #include <boost/graph/graph_traits.hpp> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/prim_...")
- 09:02, 15 May 2015 OpenCV/ImageProcessing/ExtractChannel (hist) [1,027 bytes] Daviddoria (Talk | contribs) (Created page with "You will want to make sure that you include the imgproc, highgui, and core, libraries in your project settings. ==ExtractChannel.cpp== <source lang="cpp"> #include "highgui.h...")
- 06:20, 15 May 2015 CPP/Eigen/SimplicialLDLT (hist) [1,484 bytes] Daviddoria (Talk | contribs) (Created page with "==SimplicialLDLT.cpp== <source lang="cpp"> #include <iostream> #include <Eigen/Sparse> int main(int, char *[]) { // Create matrix typedef Eigen::SparseMatrix<double> Spa...")
- 15:36, 12 May 2015 CPP/Boost/ClassFunctionPointer (hist) [876 bytes] Daviddoria (Talk | contribs) (Created page with "==Function.cpp== <source lang="cpp"> #include <boost/function.hpp> #include <boost/bind.hpp> #include <iostream> class MyClass { private: double Update1() { std::cou...")
- 11:38, 21 March 2013 Matlab/ReadTextFile (hist) [116 bytes] Daviddoria (Talk | contribs) (Created page with '==ReadTextFile.m== <source lang="bash"> data=textread('LocalizationError.txt'); plot(data(:,1), data(:,2)) </source>')
- 11:38, 21 March 2013 Matlab (hist) [72 bytes] Daviddoria (Talk | contribs) (Created page with '* Read a space separated text file into a matrix')
- 13:45, 25 September 2012 CPP/Boost/Geometry/CoordinateConversion (hist) [2,150 bytes] Daviddoria (Talk | contribs) (Created page with '==Spherical.cpp== <source lang="cpp"> #include <boost/geometry/geometry.hpp> #include <iostream> static void CartesianToSpherical(); static void SphericalToCartesian(); int ma…')
- 11:32, 18 September 2012 Qt/Utilities/Settings (hist) [1,587 bytes] Daviddoria (Talk | contribs) (Created page with '==Settings.cpp== <source lang="cpp"> #include <QtCore> #include <iostream> void LocalUsage(); void GlobalUsage(); int main(int argc, char *argv[]) { QCoreApplication app(arg…')
- 13:42, 16 September 2012 Building on Windows (hist) [1,620 bytes] Daviddoria (Talk | contribs) (Created page with 'A typical CMakeLists.txt file on this site looks like this: <source lang="cmake"> cmake_minimum_required(VERSION 2.6) PROJECT(FileMenu) FIND_PACKAGE(Qt4 REQUIRED) INCLUDE(${QT_…')
- 09:58, 12 September 2012 Qt/Events/Resize (hist) [2,712 bytes] Daviddoria (Talk | contribs) (Created page with '==main.cpp== <source lang="cpp"> #include <QApplication> #include "form.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); Form form; form.sho…')
- 17:35, 5 September 2012 CPP/Boost/Heap/IndirectCompare (hist) [2,033 bytes] Daviddoria (Talk | contribs) (Created page with '<syntaxhighlight lang="cpp"> #include <boost/heap/binomial_heap.hpp> #include <boost/pending/indirect_cmp.hpp> #include <boost/array.hpp> #include <boost/graph/grid_graph.hpp> #i…')
- 10:42, 3 September 2012 CPP/Boost/BGL/IndirectPriorityQueue (hist) [5,530 bytes] Daviddoria (Talk | contribs) (Created page with '==IndirectPriorityQueue.cpp== <source lang="cpp"> #include <iostream> #include <iomanip> #include <boost/graph/grid_graph.hpp> #include <boost/graph/detail/d_ary_heap.hpp> #incl…')
- 13:39, 13 July 2012 CPP/C++0x/Lambda (hist) [1,321 bytes] Daviddoria (Talk | contribs) (Created page with '==Lambda.cpp== <source lang="cpp"> #include <iostream> #include <unordered_set> // must use -std=c++0x flag int main(int argc, char* argv[]) { // Create a set std::unorder…')
- 10:47, 13 July 2012 CPP/STL/Set/BoundedInsert (hist) [994 bytes] Daviddoria (Talk | contribs) (Created page with '==BoundedInsert.cpp== <source lang="cpp"> #include <set> #include <iterator> #include <iostream> #include <algorithm> template<typename T> std::set<T>& bounded_insert(std::set<…')
- 16:40, 6 July 2012 Qt/Utilities/EventFilter (hist) [2,204 bytes] Daviddoria (Talk | contribs) (Created page with '==main.cpp== <source lang="cpp"> #include <QProgressDialog> #include <QApplication> #include "form.h" int main( int argc, char **argv ) { QApplication app(argc, argv); Main…')
- 09:04, 10 June 2012 CPP/Pragma (hist) [387 bytes] Daviddoria (Talk | contribs) (Created page with '==Pragma.cpp== <source lang="cpp"> #include <iostream> #include <typeinfo> #define STR(x) STR2(x) #define STR2(x) #x #define FOO 3 int main(int, char*[]) { #pragma message("…')