Definition at line 60 of file VirtualMatrixFactory.h. References Impala::Core::Array::ARRAY2DSCALARREAL32, Impala::Core::Array::ARRAY2DSCALARREAL64, ILOG_ERROR, Impala::Core::Array::ReadRaw(), Impala::Core::Array::ReadRawArrayType(), and Impala::Core::Array::Set(). Referenced by Impala::Application::Precompute::Precompute(). 00061 { 00062 Matrix::Mat* m = 0; 00063 Matrix::Mat32* m32 = 0; 00064 Array::ArrayType at = Array::ReadRawArrayType(file); 00065 if (at == Array::ARRAY2DSCALARREAL32) 00066 { 00067 Array::ReadRaw(m32, file); 00068 } 00069 else if (at == Array::ARRAY2DSCALARREAL64) 00070 { 00071 Array::ReadRaw(m, file); 00072 } 00073 else 00074 { 00075 ILOG_ERROR("[ConstructMemory] Couldn't read matrix"); 00076 return 0; 00077 } 00078 00079 if ((m == 0) && (m32 == 0)) 00080 { 00081 ILOG_ERROR_NODE("[ConstructMemory] Couldn't read matrix"); 00082 return 0; 00083 } 00084 00085 if (employ32 && (m32 == 0)) 00086 { 00087 Array::Set(m32, m); 00088 delete m; 00089 m = 0; 00090 } 00091 00092 if (m) 00093 return ConstructMemory<Matrix::Mat>(m); 00094 else 00095 return ConstructMemory<Matrix::Mat32>(m32); 00096 }
Here is the call graph for this function:
|