Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

MatDiv.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Matrix_MatDiv_h
00002 #define Impala_Core_Matrix_MatDiv_h
00003 
00004 #include "Core/Matrix/MatFunc.h"
00005 
00006 namespace Impala
00007 {
00008 namespace Core
00009 {
00010 namespace Matrix
00011 {
00012 
00013 
00014 template<class ArrayT>
00015 inline void
00016 MatDiv(ArrayT* m, typename ArrayT::ArithType val)
00017 {
00018     typename ArrayT::StorType* ptr = MatE(m, 0, 0);
00019     int nr = MatNrElem(m);
00020     for (int i=0 ; i<nr ; i++)
00021         ptr[i] /= val;
00022 }
00023 
00024 } // namespace Matrix
00025 } // namespace Core
00026 } // namespace Impala
00027 
00028 #endif

Generated on Fri Mar 19 09:31:15 2010 for ImpalaSrc by  doxygen 1.5.1