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

GetColumn.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Matrix_GetColumn_h
00002 #define Impala_Core_Matrix_GetColumn_h
00003 
00004 #include "Basis/ILog.h"
00005 #include "Core/Matrix/MatFunc.h"
00006 #include "Core/Vector/VectorTem.h"
00007 
00008 namespace Impala
00009 {
00010 namespace Core
00011 {
00012 namespace Matrix
00013 {
00014 
00015 inline Vector::VectorTem<double>
00016 GetColumn(Mat* m, int index)
00017 {
00018     ILOG_VAR(Core.Matrix.GetColumn);
00019     int length = MatNrRow(m);
00020     Vector::VectorTem<double> v(length);
00021     for(int i=0 ; i<length ; ++i)
00022         v[i] = *MatE(m, i, index);
00023     return v;
00024 }
00025 
00026 } // namespace Matrix
00027 } // namespace Core
00028 } // namespace Impala
00029 
00030 #endif

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