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

template<class ArrayT>
ArrayT* Impala::Core::Matrix::MatEye ( int  n  )  [inline]

Definition at line 15 of file MatEye.h.

References MatE().

00016 {
00017     ArrayT* res = MatCreate<ArrayT>(n, n);
00018     for(int i = 0; i < n; i++)
00019     {
00020         for(int j = 0; j < n; j++)
00021         {
00022             if(i == j)
00023                 *MatE(res, i, j) = 1.0;
00024             else
00025                 *MatE(res, i, j) = 0.0;
00026         }
00027     }
00028     return res;
00029 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:20:12 2011 for ImpalaSrc by  doxygen 1.5.1