Lines Matching refs:nR
175 SCSIZE nC, nR; in ScGCD() local
176 pMat->GetDimensions(nC, nR); in ScGCD()
177 if (nC == 0 || nR == 0) in ScGCD()
181 SCSIZE nCount = nC * nR; in ScGCD()
267 SCSIZE nC, nR; in ScLCM() local
268 pMat->GetDimensions(nC, nR); in ScLCM()
269 if (nC == 0 || nR == 0) in ScLCM()
273 SCSIZE nCount = nC * nR; in ScLCM()
303 ScMatrixRef ScInterpreter::GetNewMat(SCSIZE nC, SCSIZE nR) in GetNewMat() argument
306 ScMatrix* pMat = new ScMatrix( nC, nR); in GetNewMat()
313 if ( nCols != nC || nRows != nR ) in GetNewMat()
366 for (SCSIZE nR = nNextRow - nRow1; nR < in CreateMatrixFromDoubleRef() local
367 nMatStopRow; ++nR) in CreateMatrixFromDoubleRef()
369 pMat->PutEmpty( nC, nR); in CreateMatrixFromDoubleRef()
426 for (SCSIZE nR = nNextRow - nRow1; nR < nMatRows; ++nR) in CreateMatrixFromDoubleRef() local
428 pMat->PutEmpty( nC, nR); in CreateMatrixFromDoubleRef()
534 SCSIZE nR = static_cast<SCSIZE>(::rtl::math::approxFloor(GetDouble())); in ScMatValue() local
551 CalculateMatrixValue(pMat,nC,nR); in ScMatValue()
567 if (nCol2 - nCol1 >= static_cast<SCCOL>(nR) && in ScMatValue()
571 ScAddress aAdr( sal::static_int_cast<SCCOL>( nCol1 + nR ), in ScMatValue()
590 CalculateMatrixValue(pMat,nC,nR); in ScMatValue()
600 void ScInterpreter::CalculateMatrixValue(const ScMatrix* pMat,SCSIZE nC,SCSIZE nR) in CalculateMatrixValue() argument
607 if (nC < nCl && nR < nRw) in CalculateMatrixValue()
610 const ScMatrixValue* pMatVal = pMat->Get( nC, nR,nMatValType); in CalculateMatrixValue()
830 SCSIZE nC, nR; in ScMatDet() local
831 pMat->GetDimensions(nC, nR); in ScMatDet()
832 if ( nC != nR || nC == 0 || (sal_uLong) nC * nC > ScMatrix::GetElementsMax() ) in ScMatDet()
842 ::std::vector< SCSIZE> P(nR); in ScMatDet()
843 int nDetSign = lcl_LUP_decompose( xLU, nR, P); in ScMatDet()
852 for (SCSIZE i=0; i < nR; ++i) in ScMatDet()
877 SCSIZE nC, nR; in ScMatInv() local
878 pMat->GetDimensions(nC, nR); in ScMatInv()
879 if ( nC != nR || nC == 0 || (sal_uLong) nC * nC > ScMatrix::GetElementsMax() ) in ScMatInv()
886 ScMatrixRef xY = GetNewMat( nR, nR); in ScMatInv()
891 ::std::vector< SCSIZE> P(nR); in ScMatInv()
892 int nDetSign = lcl_LUP_decompose( xLU, nR, P); in ScMatInv()
899 ::std::vector< double> B(nR); in ScMatInv()
900 ::std::vector< double> X(nR); in ScMatInv()
901 for (SCSIZE j=0; j < nR; ++j) in ScMatInv()
903 for (SCSIZE i=0; i < nR; ++i) in ScMatInv()
906 lcl_LUP_solve( xLU, nR, P, B, X); in ScMatInv()
907 for (SCSIZE i=0; i < nR; ++i) in ScMatInv()
928 ScMatrixRef xR = GetNewMat( nR, nR); in ScMatInv()
932 lcl_MFastMult( pMat, pY, pR, nR, nR, nR); in ScMatInv()
936 for (SCSIZE i=0; i < nR; ++i) in ScMatInv()
938 for (SCSIZE j=0; j < nR; ++j) in ScMatInv()
1022 SCSIZE nC, nR; in ScMatTrans() local
1023 pMat->GetDimensions(nC, nR); in ScMatTrans()
1024 pRMat = GetNewMat(nR, nC); in ScMatTrans()
1243 SCSIZE nC, nR; in CalculateAddSub() local
1244 pMat->GetDimensions(nC, nR); in CalculateAddSub()
1245 ScMatrixRef pResMat = GetNewMat(nC, nR); in CalculateAddSub()
1248 SCSIZE nCount = nC * nR; in CalculateAddSub()
1328 SCSIZE nC, nR; in ScAmpersand() local
1329 pMat->GetDimensions(nC, nR); in ScAmpersand()
1330 ScMatrixRef pResMat = GetNewMat(nC, nR); in ScAmpersand()
1333 SCSIZE nCount = nC * nR; in ScAmpersand()
1442 SCSIZE nC, nR; in ScMul() local
1443 pMat->GetDimensions(nC, nR); in ScMul()
1444 ScMatrixRef pResMat = GetNewMat(nC, nR); in ScMul()
1447 SCSIZE nCount = nC * nR; in ScMul()
1522 SCSIZE nC, nR; in ScDiv() local
1523 pMat->GetDimensions(nC, nR); in ScDiv()
1524 ScMatrixRef pResMat = GetNewMat(nC, nR); in ScDiv()
1527 SCSIZE nCount = nC * nR; in ScDiv()
1604 SCSIZE nC, nR; in ScPow() local
1605 pMat->GetDimensions(nC, nR); in ScPow()
1606 ScMatrixRef pResMat = GetNewMat(nC, nR); in ScPow()
1609 SCSIZE nCount = nC * nR; in ScPow()
1650 SCSIZE nR, nR1; in ScSumProduct() local
1651 pMat2->GetDimensions(nC, nR); in ScSumProduct()
1663 if (nC1 != nC || nR1 != nR) in ScSumProduct()
1874 double lcl_GetColumnEuclideanNorm( ScMatrixRef pMatA, SCSIZE nC, SCSIZE nR, SCSIZE nN ) in lcl_GetColumnEuclideanNorm() argument
1877 for (SCSIZE row=nR; row<nN; row++) in lcl_GetColumnEuclideanNorm()
1884 double lcl_TGetColumnEuclideanNorm( ScMatrixRef pMatA, SCSIZE nR, SCSIZE nC, SCSIZE nN ) in lcl_TGetColumnEuclideanNorm() argument
1888 fNorm += (pMatA->GetDouble(col,nR)) * (pMatA->GetDouble(col,nR)); in lcl_TGetColumnEuclideanNorm()
1895 double lcl_GetColumnMaximumNorm( ScMatrixRef pMatA, SCSIZE nC, SCSIZE nR, SCSIZE nN ) in lcl_GetColumnMaximumNorm() argument
1898 for (SCSIZE row=nR; row<nN; row++) in lcl_GetColumnMaximumNorm()
1906 double lcl_TGetColumnMaximumNorm( ScMatrixRef pMatA, SCSIZE nR, SCSIZE nC, SCSIZE nN ) in lcl_TGetColumnMaximumNorm() argument
1910 if (fNorm < fabs(pMatA->GetDouble(col,nR))) in lcl_TGetColumnMaximumNorm()
1911 fNorm = fabs(pMatA->GetDouble(col,nR)); in lcl_TGetColumnMaximumNorm()
1919 SCSIZE nCb, SCSIZE nR, SCSIZE nN ) in lcl_GetColumnSumProduct() argument
1922 for (SCSIZE row=nR; row<nN; row++) in lcl_GetColumnSumProduct()
2054 void lcl_TApplyHouseholderTransformation(ScMatrixRef pMatA, SCSIZE nR, in lcl_TApplyHouseholderTransformation() argument
2058 double fDenominator = lcl_TGetColumnSumProduct(pMatA, nR, pMatA, nR, nR, nN); in lcl_TApplyHouseholderTransformation()
2059 double fNumerator = lcl_TGetColumnSumProduct(pMatA, nR, pMatY, 0, nR, nN); in lcl_TApplyHouseholderTransformation()
2061 for (SCSIZE col = nR; col < nN; col++) in lcl_TApplyHouseholderTransformation()
2063 pMatY->GetDouble(col) - fFactor * pMatA->GetDouble(col,nR), col); in lcl_TApplyHouseholderTransformation()
2156 SCSIZE nC, SCSIZE nR) in lcl_CalculateColumnMeans() argument
2162 for (SCSIZE k=0; k < nR; k++) in lcl_CalculateColumnMeans()
2164 pResMat ->PutDouble( fSum/static_cast<double>(nR),i); in lcl_CalculateColumnMeans()
2171 SCSIZE nC, SCSIZE nR) in lcl_CalculateRowMeans() argument
2174 for (SCSIZE k=0; k < nR; k++) in lcl_CalculateRowMeans()
2184 SCSIZE nC, SCSIZE nR) in lcl_CalculateColumnsDelta() argument
2187 for (SCSIZE k = 0; k < nR; k++) in lcl_CalculateColumnsDelta()
2193 SCSIZE nC, SCSIZE nR) in lcl_CalculateRowsDelta() argument
2195 for (SCSIZE k = 0; k < nR; k++) in lcl_CalculateRowsDelta()
3190 SCSIZE nR = static_cast<SCSIZE>(aPos.Row() - aAdr.Row()); in ScMatRef() local
3191 if ((nCols <= nC && nCols != 1) || (nRows <= nR && nRows != 1)) in ScMatRef()
3196 const ScMatrixValue* pMatVal = pMat->Get( nC, nR, nMatValType); in ScMatRef()