Davis King
f672e45459
Cleaned up the PCA code slightly.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402724
2008-12-12 00:31:47 +00:00
Davis King
279e4d40f2
Added more stuff to the example.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402723
2008-12-12 00:16:25 +00:00
Davis King
0f89c0f601
- Changed the range() stuff so that it works with ranges of the form
...
range(1,5) as well as range(5,1)
- Added overloads of colm(), rowm(), set_colm(), and set_rowm() that
can work with ranges.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402722
2008-12-12 00:06:34 +00:00
Davis King
53ea098dc9
Cleaned up the matrix_assign() stuff a little more. Also added some stuff
...
particular to gcc to control how things get inlined.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402721
2008-12-11 04:18:37 +00:00
Davis King
dd83589a4c
- Moved the matrix_assign() totally into the matrix_assign.h file
...
- Updated matrix regression tests.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402720
2008-12-11 03:30:46 +00:00
Davis King
c4512e6809
Updated the diag() spec.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402719
2008-12-11 03:15:43 +00:00
Davis King
f2f4e57497
Updated the matrix example.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402718
2008-12-11 03:13:46 +00:00
Davis King
1d2ecc9d4b
Changed the comma based matrix assignment to use operator= instead
...
of operator<<.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402717
2008-12-11 03:13:19 +00:00
Davis King
4c0d826baa
Split the matrix tests into two files to speed up compilation of the regression tests.
...
--HG--
rename : dlib/test/matrix.cpp => dlib/test/matrix2.cpp
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402716
2008-12-09 03:09:17 +00:00
Davis King
1797da9aed
Fixed compiler warning
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402715
2008-12-09 03:03:46 +00:00
Davis King
acb0cae086
Updated the matrix example to use operator<< for matrix initialization.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402714
2008-12-09 02:54:49 +00:00
Davis King
3ad81a5a64
Added a more convenient way to initialize a matrix using the operator<<.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402713
2008-12-09 02:54:14 +00:00
Davis King
a9a073aae0
Added another matrix test.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402712
2008-12-08 01:43:10 +00:00
Davis King
b556ebf587
Simplified the matrix_assign() function a bit.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402711
2008-12-08 01:42:49 +00:00
Davis King
13f0b4338a
Fixed typo in spec
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402710
2008-12-08 01:31:46 +00:00
Davis King
30dbb5d796
Added some code to cause the user to get a compiler error if they accidentally
...
try to combine a quantum gate with an integer.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402709
2008-12-06 21:53:05 +00:00
Davis King
36e7c35875
Fixed a bug in the apply_gate_to() function. Also clarified the spec.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402708
2008-12-06 21:27:39 +00:00
Davis King
3aef484e8a
Changed code so that it compiles in gcc 4.3
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402707
2008-12-06 00:46:52 +00:00
Davis King
a1d0f3e4a5
Changed the code slightly to avoid warnings from gcc 4.3.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402706
2008-12-05 23:11:06 +00:00
Davis King
e0fac30c52
Fixed ohloh badge
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402705
2008-12-05 23:01:22 +00:00
Davis King
d55f589e6c
Changed the matrix so that it isn't forced to use the one matrix_data object. Now
...
it has a template argument that lets you supply any kind of matrix layout object
you want.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402704
2008-12-05 03:09:22 +00:00
Davis King
dc85ffd1cc
Changed the code to avoid a compiler warning from the Intel compiler.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402703
2008-12-04 22:12:09 +00:00
Davis King
98020b5575
updated the docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402702
2008-12-04 03:30:56 +00:00
Davis King
30cfab2e05
Added a comparison of the dlib::matrix to Matlab and also just generally
...
improved the example as a whole.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402701
2008-12-04 03:15:49 +00:00
Davis King
485ac90e7c
Added an overload of set_subm() that can operate on ranges.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402700
2008-12-04 01:44:22 +00:00
Davis King
c3496c645b
Fixed some comments.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402699
2008-12-03 23:41:12 +00:00
Davis King
8be672486d
updated the docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402698
2008-12-03 23:40:40 +00:00
Davis King
7206a12c44
- Added the tmax, tmin, and tabs templates
...
- Changed the diag() function so that it is allowed to take
non-square matrices.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402697
2008-12-03 23:36:11 +00:00
Davis King
cae2fb2867
Added the range() function and an overload of subm() that allows you to
...
pick out slices of matrices like in Matlab.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402696
2008-12-03 22:41:04 +00:00
Davis King
f9f34de593
Added some more things to the svn:ignore list.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402695
2008-12-03 01:04:19 +00:00
Davis King
0d3bbca64d
Fixed a problem with draw_line where it didn't always redraw the line properly.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402694
2008-12-02 03:52:40 +00:00
Davis King
ec9fb516f9
Added a function to the gate_exp() to return a matrix object for the gate.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402693
2008-12-02 00:46:18 +00:00
Davis King
dae75ab855
Fixed the deadlock I just introduced a few minutes ago.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402692
2008-12-01 22:19:52 +00:00
Davis King
4adb16ccde
Added missing mutex lock
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402691
2008-12-01 21:57:39 +00:00
Davis King
1f0633063a
Fixed typo in spec
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402690
2008-12-01 21:56:03 +00:00
Davis King
d31b2a4a17
Changed the future object so that its destructor waits
...
for any tasks in a thread_pool that use the future to stop
before letting a future go out of scope.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402689
2008-11-30 21:04:35 +00:00
Davis King
504382e11c
Fixed typos in spec
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402688
2008-11-30 16:17:13 +00:00
Davis King
b58c05f5e2
Fixed a bug in the measurement functions and also cleaned up the spec.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402687
2008-11-30 13:50:22 +00:00
Davis King
04a5f72459
More code cleanup
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402686
2008-11-29 16:54:00 +00:00
Davis King
45c56bb270
Cleaned up the code more and fully filled out the spec.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402685
2008-11-29 16:10:32 +00:00
Davis King
0b6dad8911
Cleaned up this code a little.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402684
2008-11-29 13:27:03 +00:00
Davis King
42344c5e42
Adding a rough version of the quantum computing simulation code.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402683
2008-11-29 03:32:31 +00:00
Davis King
13cd76065a
Clarified the spec for the thread_pool.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402682
2008-11-28 17:13:23 +00:00
Davis King
e1809547df
Added some more tests for the thread_pool object.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402681
2008-11-28 16:54:22 +00:00
Davis King
bbf90ce00f
Added the ability to use function objects as tasks and also the ability to
...
set the number of threads in a thread pool to 0.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402680
2008-11-28 16:53:07 +00:00
Davis King
381e450bef
Added the ability to bind function objects as well as normal C style functions
...
and member function pointers.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402679
2008-11-28 16:09:27 +00:00
Davis King
2d3e8dd358
changed code so that it compiles in visual studio
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402678
2008-11-28 03:37:48 +00:00
Davis King
e41954400d
Added tests for the thread_pool and future objects.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402677
2008-11-28 02:56:54 +00:00
Davis King
1f896c1fee
Changed code to avoid compiler warning.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402676
2008-11-28 02:51:46 +00:00
Davis King
99913d4b7d
updated the docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402675
2008-11-28 01:55:37 +00:00