Lines Matching refs:i
651 for (SCSIZE i = 0; i < n; i++) in MEMat() local
652 mM->PutDouble(1.0, i, i); in MEMat()
680 for (SCSIZE i=0; i < n; ++i) in lcl_LUP_decompose() local
685 double fTmp = fabs( mA->GetDouble( j, i)); in lcl_LUP_decompose()
691 aScale[i] = 1.0 / fMax; in lcl_LUP_decompose()
694 for (SCSIZE i=0; i < n; ++i) in lcl_LUP_decompose() local
695 P[i] = i; in lcl_LUP_decompose()
705 for (SCSIZE i = k; i < n; ++i) in lcl_LUP_decompose() local
707 double fTmp = fScale * fabs( mA->GetDouble( k, i)); in lcl_LUP_decompose()
711 kp = i; in lcl_LUP_decompose()
729 for (SCSIZE i=0; i < n; ++i) in lcl_LUP_decompose() local
731 double fMatTmp = mA->GetDouble( i, k); in lcl_LUP_decompose()
732 mA->PutDouble( mA->GetDouble( i, kp), i, k); in lcl_LUP_decompose()
733 mA->PutDouble( fMatTmp, i, kp); in lcl_LUP_decompose()
737 for (SCSIZE i = k+1; i < n; ++i) in lcl_LUP_decompose() local
739 double fTmp = mA->GetDouble( k, i) / mA->GetDouble( k, k); in lcl_LUP_decompose()
740 mA->PutDouble( fTmp, k, i); in lcl_LUP_decompose()
742 mA->PutDouble( mA->GetDouble( j, i) - fTmp * mA->GetDouble( j, in lcl_LUP_decompose()
743 k), j, i); in lcl_LUP_decompose()
748 for (SCSIZE i=0; i < n; ++i) in lcl_LUP_decompose() local
751 fprintf( stderr, "%8.2g ", mA->GetDouble( j, i)); in lcl_LUP_decompose()
761 for (SCSIZE i=0; i < n && !bSingular; i++) in lcl_LUP_decompose() local
762 bSingular = (mA->GetDouble(i,i) == 0.0); in lcl_LUP_decompose()
782 for (SCSIZE i=0; i < n; ++i) in lcl_LUP_solve() local
784 double fSum = B[P[i]]; in lcl_LUP_solve()
791 for (SCSIZE j = nFirst; j < i; ++j) in lcl_LUP_solve()
792 fSum -= mLU->GetDouble( j, i) * X[j]; // X[j] === y[j] in lcl_LUP_solve()
795 nFirst = i; in lcl_LUP_solve()
796 X[i] = fSum; // X[i] === y[i] in lcl_LUP_solve()
799 for (SCSIZE i = n; i--; ) in lcl_LUP_solve() local
801 double fSum = X[i]; // X[i] === y[i] in lcl_LUP_solve()
802 for (SCSIZE j = i+1; j < n; ++j) in lcl_LUP_solve()
803 fSum -= mLU->GetDouble( j, i) * X[j]; // X[j] === x[j] in lcl_LUP_solve()
804 X[i] = fSum / mLU->GetDouble( i, i); // X[i] === x[i] in lcl_LUP_solve()
808 for (SCSIZE i=0; i < n; ++i) in lcl_LUP_solve() local
809 fprintf( stderr, "%8.2g ", X[i]); in lcl_LUP_solve()
853 for (SCSIZE i=0; i < nR; ++i) in ScMatDet() local
854 fDet *= pLU->GetDouble( i, i); in ScMatDet()
904 for (SCSIZE i=0; i < nR; ++i) in ScMatInv() local
905 B[i] = 0.0; in ScMatInv()
908 for (SCSIZE i=0; i < nR; ++i) in ScMatInv() local
909 pY->PutDouble( X[i], j, i); in ScMatInv()
937 for (SCSIZE i=0; i < nR; ++i) in ScMatInv()
941 double fTmp = pR->GetDouble( j, i); in ScMatInv()
945 if (fabs( fTmp - (i == j)) > fInvEpsilon) in ScMatInv()
988 for (SCSIZE i = 0; i < nR1; i++) in ScMatMult() local
995 sum += pMat1->GetDouble(k,i)*pMat2->GetDouble(j,k); in ScMatMult()
997 pRMat->PutDouble(sum, j, i); in ScMatMult()
1061 SCSIZE i, j; in lcl_MatrixCalculation() local
1070 for (i = 0; i < nMinC; i++) in lcl_MatrixCalculation()
1074 if (pMat1->IsValueOrEmpty(i,j) && pMat2->IsValueOrEmpty(i,j)) in lcl_MatrixCalculation()
1076 double d = _pOperation(pMat1->GetDouble(i,j),pMat2->GetDouble(i,j)); in lcl_MatrixCalculation()
1077 pResMat->PutDouble( d, i, j); in lcl_MatrixCalculation()
1080 pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i, j); in lcl_MatrixCalculation()
1092 SCSIZE i, j; in MatConcat() local
1101 for (i = 0; i < nMinC; i++) in MatConcat()
1105 sal_uInt16 nErr = pMat1->GetErrorIfNotString( i, j); in MatConcat()
1107 nErr = pMat2->GetErrorIfNotString( i, j); in MatConcat()
1109 pResMat->PutError( nErr, i, j); in MatConcat()
1112 String aTmp( pMat1->GetString( *pFormatter, i, j)); in MatConcat()
1113 aTmp += pMat2->GetString( *pFormatter, i, j); in MatConcat()
1114 pResMat->PutString( aTmp, i, j); in MatConcat()
1252 for ( SCSIZE i = 0; i < nCount; i++ ) in CalculateAddSub() local
1254 if (pMat->IsValue(i)) in CalculateAddSub()
1255 … ::rtl::math::approxSub( fVal, pMat->GetDouble(i)) : ::rtl::math::approxAdd( pMat->GetDouble(i), f… in CalculateAddSub()
1257 pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i); in CalculateAddSub()
1262 for ( SCSIZE i = 0; i < nCount; i++ ) in CalculateAddSub() local
1263 { if (pMat->IsValue(i)) in CalculateAddSub()
1264 pResMat->PutDouble( ::rtl::math::approxSub( pMat->GetDouble(i), fVal), i); in CalculateAddSub()
1266 pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i); in CalculateAddSub()
1337 for ( SCSIZE i = 0; i < nCount; i++ ) in ScAmpersand() local
1338 pResMat->PutError( nGlobalError, i); in ScAmpersand()
1342 for ( SCSIZE i = 0; i < nCount; i++ ) in ScAmpersand() local
1344 sal_uInt16 nErr = pMat->GetErrorIfNotString( i); in ScAmpersand()
1346 pResMat->PutError( nErr, i); in ScAmpersand()
1350 aTmp += pMat->GetString( *pFormatter, i); in ScAmpersand()
1351 pResMat->PutString( aTmp, i); in ScAmpersand()
1357 for ( SCSIZE i = 0; i < nCount; i++ ) in ScAmpersand() local
1359 sal_uInt16 nErr = pMat->GetErrorIfNotString( i); in ScAmpersand()
1361 pResMat->PutError( nErr, i); in ScAmpersand()
1364 String aTmp( pMat->GetString( *pFormatter, i)); in ScAmpersand()
1366 pResMat->PutString( aTmp, i); in ScAmpersand()
1449 for ( SCSIZE i = 0; i < nCount; i++ ) in ScMul() local
1450 if (pMat->IsValue(i)) in ScMul()
1451 pResMat->PutDouble(pMat->GetDouble(i)*fVal, i); in ScMul()
1453 pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i); in ScMul()
1530 { for ( SCSIZE i = 0; i < nCount; i++ ) in ScDiv() local
1531 if (pMat->IsValue(i)) in ScDiv()
1532 pResMat->PutDouble( div( fVal, pMat->GetDouble(i)), i); in ScDiv()
1534 pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i); in ScDiv()
1537 { for ( SCSIZE i = 0; i < nCount; i++ ) in ScDiv() local
1538 if (pMat->IsValue(i)) in ScDiv()
1539 pResMat->PutDouble( div( pMat->GetDouble(i), fVal), i); in ScDiv()
1541 pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i); in ScDiv()
1612 { for ( SCSIZE i = 0; i < nCount; i++ ) in ScPow() local
1613 if (pMat->IsValue(i)) in ScPow()
1614 pResMat->PutDouble(pow(fVal,pMat->GetDouble(i)), i); in ScPow()
1616 pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i); in ScPow()
1619 { for ( SCSIZE i = 0; i < nCount; i++ ) in ScPow() local
1620 if (pMat->IsValue(i)) in ScPow()
1621 pResMat->PutDouble(pow(pMat->GetDouble(i),fVal), i); in ScPow()
1623 pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i); in ScPow()
1655 for (sal_uInt16 i = 1; i < nParamCount; i++) in ScSumProduct() local
1701 SCSIZE i, j; in CalculateSumX2MY2SumX2DY2() local
1719 for (i = 0; i < nC1; i++) in CalculateSumX2MY2SumX2DY2()
1721 if (!pMat1->IsString(i,j) && !pMat2->IsString(i,j)) in CalculateSumX2MY2SumX2DY2()
1723 fVal = pMat1->GetDouble(i,j); in CalculateSumX2MY2SumX2DY2()
1725 fVal = pMat2->GetDouble(i,j); in CalculateSumX2MY2SumX2DY2()
1774 for (SCSIZE i = 0; i < nCount; i++) in ScSumXMY2() local
1775 if (!pResMat->IsString(i)) in ScSumXMY2()
1777 fVal = pResMat->GetDouble(i); in ScSumXMY2()
1824 SCSIZE i = 0; in ScFrequency() local
1828 while (i < nDataSize && aDataArray[i] <= aBinArray[j]) in ScFrequency()
1831 ++i; in ScFrequency()
1835 pResMat->PutDouble(static_cast<double>(nDataSize-i), j); in ScFrequency()
1867 for (SCSIZE i=0; i<nM; i++) in lcl_GetSumProduct() local
1868 fSum += pMatA->GetDouble(i) * pMatB->GetDouble(i); in lcl_GetSumProduct()
2149 for (SCSIZE i=0 ; i<nN; i++) in lcl_GetMeanOverAll() local
2150 fSum += pMat->GetDouble(i); in lcl_GetMeanOverAll()
2160 for (SCSIZE i=0; i < nC; i++) in lcl_CalculateColumnMeans() local
2164 fSum += pX->GetDouble(i,k); // GetDouble(Column,Row) in lcl_CalculateColumnMeans()
2165 pResMat ->PutDouble( fSum/static_cast<double>(nR),i); in lcl_CalculateColumnMeans()
2178 for (SCSIZE i=0; i < nC; i++) in lcl_CalculateRowMeans() local
2179 fSum += pX->GetDouble(i,k); // GetDouble(Column,Row) in lcl_CalculateRowMeans()
2187 for (SCSIZE i = 0; i < nC; i++) in lcl_CalculateColumnsDelta() local
2190 (pMat->GetDouble(i,k) , pColumnMeans->GetDouble(i) ) , i, k); in lcl_CalculateColumnsDelta()
2197 for (SCSIZE i = 0; i < nC; i++) in lcl_CalculateRowsDelta() local
2199 ( pMat->GetDouble(i,k) , pRowMeans->GetDouble(k) ) , i, k); in lcl_CalculateRowsDelta()
2210 for (SCSIZE i=0; i<nN; i++) in lcl_GetSSresid() local
2212 fTemp = pMatY->GetDouble(i) - fSlope * pMatX->GetDouble(i); in lcl_GetSSresid()
2234 for ( SCSIZE i = 0; i < nCountY; i++ ) in CheckMatrix() local
2236 if (!pMatY->IsValue(i)) in CheckMatrix()
2264 for ( SCSIZE i = 0; i < nCountX; i++ ) in CheckMatrix() local
2265 if (!pMatX->IsValue(i)) in CheckMatrix()
2317 for ( SCSIZE i = 1; i <= nCountY; i++ ) in CheckMatrix() local
2318 pMatX->PutDouble(static_cast<double>(i), i-1); in CheckMatrix()
2428 for (SCSIZE i=2; i<K+1; i++) in CalulateRGPRKP() local
2430 pResMat->PutString(ScGlobal::GetRscString(STR_NV_STR), i, 2 ); in CalulateRGPRKP()
2431 pResMat->PutString(ScGlobal::GetRscString(STR_NV_STR), i, 3 ); in CalulateRGPRKP()
2432 pResMat->PutString(ScGlobal::GetRscString(STR_NV_STR), i, 4 ); in CalulateRGPRKP()
2452 for (SCSIZE i=0; i<N; i++) in CalulateRGPRKP() local
2454 pMatY->PutDouble( ::rtl::math::approxSub(pMatY->GetDouble(i),fMeanY), i ); in CalulateRGPRKP()
2465 for (SCSIZE i=0; i<N; i++) in CalulateRGPRKP() local
2467 pMatX->PutDouble( ::rtl::math::approxSub(pMatX->GetDouble(i),fMeanX), i ); in CalulateRGPRKP()
2595 for (SCSIZE i = 0; i < K; i++) in CalulateRGPRKP() local
2596 pResMat->PutDouble(_bRKP ? exp(pSlopes->GetDouble(i)) in CalulateRGPRKP()
2597 : pSlopes->GetDouble(i) , K-1-i, 0); in CalulateRGPRKP()
2632 for (SCSIZE i=0; i<K; i++) in CalulateRGPRKP() local
2633 pResMat->PutDouble(0.0, K-1-i, 1); in CalulateRGPRKP()
2754 for (SCSIZE i = 0; i < K; i++) in CalulateRGPRKP() local
2755 pResMat->PutDouble(_bRKP ? exp(pSlopes->GetDouble(i)) in CalulateRGPRKP()
2756 : pSlopes->GetDouble(i) , K-1-i, 0); in CalulateRGPRKP()
2791 for (SCSIZE i=0; i<K; i++) in CalulateRGPRKP() local
2792 pResMat->PutDouble(0.0, K-1-i, 1); in CalulateRGPRKP()
2967 for ( SCSIZE i = 0; i < nCountXN; i++ ) in CalculateTrendGrowth() local
2968 if (!pMatNewX->IsValue(i)) in CalculateTrendGrowth()
3005 for (SCSIZE i=0; i<N; i++) in CalculateTrendGrowth() local
3007 pMatY->PutDouble( ::rtl::math::approxSub(pMatY->GetDouble(i),fMeanY), i ); in CalculateTrendGrowth()
3018 for (SCSIZE i=0; i<N; i++) in CalculateTrendGrowth() local
3020 pMatX->PutDouble( ::rtl::math::approxSub(pMatX->GetDouble(i),fMeanX), i ); in CalculateTrendGrowth()
3036 for (SCSIZE i = 0; i < nCountXN; i++) in CalculateTrendGrowth() local
3038 fHelp = pMatNewX->GetDouble(i)*fSlope + fIntercept; in CalculateTrendGrowth()
3039 pResMat->PutDouble(_bGrowth ? exp(fHelp) : fHelp, i); in CalculateTrendGrowth()
3044 for (SCSIZE i = 0; i < nCountXN; i++) in CalculateTrendGrowth() local
3046 fHelp = pMatNewX->GetDouble(i)*fSlope; in CalculateTrendGrowth()
3047 pResMat->PutDouble(_bGrowth ? exp(fHelp) : fHelp, i); in CalculateTrendGrowth()
3107 for (SCSIZE i = 0; i < nRXN; i++) in CalculateTrendGrowth() local
3108 pResMat->PutDouble(exp(pResMat->GetDouble(i)), i); in CalculateTrendGrowth()
3166 for (SCSIZE i = 0; i < nCXN; i++) in CalculateTrendGrowth() local
3167 pResMat->PutDouble(exp(pResMat->GetDouble(i)), i); in CalculateTrendGrowth()