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

MatCopy.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Matrix_MatCopy_h
00002 #define Impala_Core_Matrix_MatCopy_h
00003 
00004 #include "Core/Matrix/MatFunc.h"
00005 #include "Core/Matrix/MatSet.h"
00006 
00007 namespace Impala
00008 {
00009 namespace Core
00010 {
00011 namespace Matrix
00012 {
00013 
00014 
00015 template<class ArrayT>
00016 inline ArrayT*
00017 MatCopy(ArrayT* src)
00018 {
00019     ArrayT* res = MatCreate<ArrayT>(MatNrRow(src), MatNrCol(src));
00020     MatSet(res, src);
00021     return res;
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