gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/server/asobj/flash/geom Matrix_as.cpp


From: Benjamin Wolsey
Subject: [Gnash-commit] gnash/server/asobj/flash/geom Matrix_as.cpp
Date: Mon, 09 Jun 2008 20:22:54 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Benjamin Wolsey <bwy>   08/06/09 20:22:54

Modified files:
        server/asobj/flash/geom: Matrix_as.cpp 

Log message:
                * server/asobj/flash/geom/Matrix_as.cpp: specify template 
arguments
                  for matrix factorization, see if it fixes strk's problem. 
Round
                  two will be catching the exception.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/Matrix_as.cpp?cvsroot=gnash&r1=1.9&r2=1.10

Patches:
Index: Matrix_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/Matrix_as.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- Matrix_as.cpp       9 Jun 2008 11:55:38 -0000       1.9
+++ Matrix_as.cpp       9 Jun 2008 20:22:54 -0000       1.10
@@ -384,12 +384,12 @@
 
        ublas::permutation_matrix<double> pm(currentMatrix.size1());
 
-       int valid = ublas::lu_factorize(currentMatrix, pm);
+       int valid = ublas::lu_factorize<ublas::c_matrix<double, 3, 3> 
>(currentMatrix, pm);
        
        if( valid == 0 )
        {
            // We can invert.
-           boost::numeric::ublas::lu_substitute(currentMatrix, pm, 
inverseMatrix);
+           ublas::lu_substitute<ublas::c_matrix<double, 3, 3> >(currentMatrix, 
pm, inverseMatrix);
        }
 
     // Returns the identity matrix if unsuccessful.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]