From 98020b5575e7f1a9fa3e75191f806ea3407788a0 Mon Sep 17 00:00:00 2001 From: Davis King Date: Thu, 4 Dec 2008 03:30:56 +0000 Subject: [PATCH] updated the docs --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402702 --- docs/docs/containers.xml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/docs/docs/containers.xml b/docs/docs/containers.xml index 1bc0863d8..3537f877c 100644 --- a/docs/docs/containers.xml +++ b/docs/docs/containers.xml @@ -702,7 +702,7 @@

Note that there is only one implementation of this object so there aren't any - different kernels to choose from when you create instances of the matrix object. + different kernels to choose from when you create instances of the tuple object. So for example, you could declare a tuple of 3 ints using the following statement: dlib::tuple<int,int,int> t; @@ -1303,18 +1303,6 @@ could declare a matrix of 2 rows and 3 columns using the following statement: dlib::matrix<float,2,3> m;

-

- It should also be noted that matrix multiplication is fastest when the two matrices - being multiplied are not complex matrix_exp objects returned from other expressions - (such as other matrix multiplies). This is because the matrix multiply operator will - evaluate each element of the matrices it is multiplying many times, and a matrix_exp - computes its elements' values each time they are queried. However, the matrix multiply - operator is the only one that evaluates its argument's elements multiple times so you can - stack up all the other operators however you want without any performance penalty. If - you want to multiply two complex matrix_exp expressions together you can easily convert them into - fully evaluated temporary matrix objects by using the tmp() function. For example, to - multiply four matrices together you should use an expression such as result = tmp(a*b)*tmp(c*d); -