MCPcopy Create free account
hub / github.com/astra-toolbox/astra-toolbox / initialize

Method initialize

src/SparseMatrix.cpp:64–77  ·  view source on GitHub ↗

---------------------------------------------------------------------------------------- initialize

Source from the content-addressed store, hash-verified

62//----------------------------------------------------------------------------------------
63// initialize
64bool CSparseMatrix::initialize(unsigned int _iHeight, unsigned int _iWidth,
65 unsigned long _lSize)
66{
67 m_iHeight = _iHeight;
68 m_iWidth = _iWidth;
69 m_lSize = _lSize;
70
71 m_pfValues = new float32[_lSize];
72 m_piColIndices = new unsigned int[_lSize];
73 m_plRowStarts = new unsigned long[_iHeight+1];
74 m_bInitialized = true;
75
76 return m_bInitialized;
77}
78
79
80std::string CSparseMatrix::description() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected