Home | History | Annotate | Download | only in SparseLU

Lines Matching refs:Index

39 template<typename Index>
40 inline Index LUnumTempV(Index& m, Index& w, Index& t, Index& b)
45 template< typename Scalar, typename Index>
46 inline Index LUTempSpace(Index&m, Index& w)
48 return (2*w + 4 + LUNoMarker) * m * sizeof(Index) + (w + 1) * m * sizeof(Scalar);
62 template <typename Scalar, typename Index>
64 Index SparseLUImpl<Scalar,Index>::expand(VectorType& vec, Index& length, Index nbElts, Index keep_prev, Index& num_expansions)
68 Index new_len; // New size of the allocated memory
73 new_len = (std::max)(length+1,Index(alpha * length));
106 Index tries = 0; // Number of attempts
110 new_len = (std::max)(length+1,Index(alpha * length));
151 template <typename Scalar, typename Index>
152 Index SparseLUImpl<Scalar,Index>::memInit(Index m, Index n, Index annz, Index lwork, Index fillratio, Index panel_size, GlobalLU_t& glu)
154 Index& num_expansions = glu.num_expansions; //No memory expansions so far
157 glu.nzlmax = (std::max)(Index(4), fillratio) * annz / 4; // estimated nnz in L factor
159 Index tempSpace;
160 tempSpace = (2*panel_size + 4 + LUNoMarker) * m * sizeof(Index) + (panel_size + 1) * m * sizeof(Scalar);
163 Index estimated_size;
164 estimated_size = (5 * n + 5) * sizeof(Index) + tempSpace
165 + (glu.nzlmax + glu.nzumax) * sizeof(Index) + (glu.nzlumax+glu.nzumax) * sizeof(Scalar) + n;
208 template <typename Scalar, typename Index>
210 Index SparseLUImpl<Scalar,Index>::memXpand(VectorType& vec, Index& maxlen, Index nbElts, MemType memtype, Index& num_expansions)
212 Index failed_size;