Lines Matching refs:pMat
172 ScMatrixRef pMat = PopMatrix(); in ScGCD() local
173 if (pMat) in ScGCD()
176 pMat->GetDimensions(nC, nR); in ScGCD()
184 if (!pMat->IsValue(j)) in ScGCD()
189 fx = ::rtl::math::approxFloor( pMat->GetDouble(j)); in ScGCD()
264 ScMatrixRef pMat = PopMatrix(); in ScLCM() local
265 if (pMat) in ScLCM()
268 pMat->GetDimensions(nC, nR); in ScLCM()
276 if (!pMat->IsValue(j)) in ScLCM()
281 fx = ::rtl::math::approxFloor( pMat->GetDouble(j)); in ScLCM()
306 ScMatrix* pMat = new ScMatrix( nC, nR); in GetNewMat() local
307 pMat->SetErrorInterpreter( this); in GetNewMat()
310 pMat->SetImmutable( false); in GetNewMat()
312 pMat->GetDimensions( nCols, nRows); in GetNewMat()
316 pMat->Delete(); in GetNewMat()
317 pMat = NULL; in GetNewMat()
319 return pMat; in GetNewMat()
327 ScMatrixRef pMat = NULL; in CreateMatrixFromDoubleRef() local
337 pMat = static_cast<ScToken*>((*aIter).second.get())->GetMatrix(); in CreateMatrixFromDoubleRef()
342 pMat = GetNewMat( nMatCols, nMatRows); in CreateMatrixFromDoubleRef()
343 if (pMat && !nGlobalError) in CreateMatrixFromDoubleRef()
369 pMat->PutEmpty( nC, nR); in CreateMatrixFromDoubleRef()
386 pMat->PutEmpty( static_cast<SCSIZE>(nThisCol-nCol1), in CreateMatrixFromDoubleRef()
398 pMat->PutDouble( fVal, in CreateMatrixFromDoubleRef()
410 pMat->PutDouble( fVal, in CreateMatrixFromDoubleRef()
415 pMat->PutString( aStr, in CreateMatrixFromDoubleRef()
428 pMat->PutEmpty( nC, nR); in CreateMatrixFromDoubleRef()
435 pToken, new ScMatrixToken( pMat))); in CreateMatrixFromDoubleRef()
441 return pMat; in CreateMatrixFromDoubleRef()
448 ScMatrixRef pMat = NULL; in GetMatrix() local
455 pMat = GetNewMat(1, 1); in GetMatrix()
456 if (pMat) in GetMatrix()
460 pMat->PutEmpty( 0 ); in GetMatrix()
462 pMat->PutDouble(GetCellValue(aAdr, pCell), 0); in GetMatrix()
467 pMat->PutString(aStr, 0); in GetMatrix()
479 pMat = CreateMatrixFromDoubleRef( p, nCol1, nRow1, nTab1, in GetMatrix()
484 pMat = PopMatrix(); in GetMatrix()
491 pMat = GetNewMat( 1, 1); in GetMatrix()
492 if ( pMat ) in GetMatrix()
499 pMat->PutDouble( fVal, 0); in GetMatrix()
506 pMat = GetNewMat( 1, 1); in GetMatrix()
507 if ( pMat ) in GetMatrix()
512 pMat->PutDouble( fVal, 0); in GetMatrix()
516 pMat->PutString( aStr, 0); in GetMatrix()
525 return pMat; in GetMatrix()
550 const ScMatrix* pMat = ((ScFormulaCell*)pCell)->GetMatrix(); in ScMatValue() local
551 CalculateMatrixValue(pMat,nC,nR); in ScMatValue()
589 ScMatrixRef pMat = PopMatrix(); in ScMatValue() local
590 CalculateMatrixValue(pMat,nC,nR); in ScMatValue()
600 void ScInterpreter::CalculateMatrixValue(const ScMatrix* pMat,SCSIZE nC,SCSIZE nR) in CalculateMatrixValue() argument
603 if (pMat) in CalculateMatrixValue()
606 pMat->GetDimensions(nCl, nRw); in CalculateMatrixValue()
610 const ScMatrixValue* pMatVal = pMat->Get( nC, nR,nMatValType); in CalculateMatrixValue()
819 ScMatrixRef pMat = GetMatrix(); in ScMatDet() local
820 if (!pMat) in ScMatDet()
825 if ( !pMat->IsNumeric() ) in ScMatDet()
831 pMat->GetDimensions(nC, nR); in ScMatDet()
837 ScMatrixRef xLU = pMat->Clone(); in ScMatDet()
866 ScMatrixRef pMat = GetMatrix(); in ScMatInv() local
867 if (!pMat) in ScMatInv()
872 if ( !pMat->IsNumeric() ) in ScMatInv()
878 pMat->GetDimensions(nC, nR); in ScMatInv()
884 ScMatrixRef xLU = pMat->Clone(); in ScMatInv()
932 lcl_MFastMult( pMat, pY, pR, nR, nR, nR); in ScMatInv()
1018 ScMatrixRef pMat = GetMatrix(); in ScMatTrans() local
1020 if (pMat) in ScMatTrans()
1023 pMat->GetDimensions(nC, nR); in ScMatTrans()
1027 pMat->MatTrans(*pRMat); in ScMatTrans()
1231 ScMatrixRef pMat = pMat1; in CalculateAddSub() local
1232 if (!pMat) in CalculateAddSub()
1235 pMat = pMat2; in CalculateAddSub()
1244 pMat->GetDimensions(nC, nR); in CalculateAddSub()
1253 if (pMat->IsValue(i)) in CalculateAddSub()
1254 …->PutDouble( _bSub ? ::rtl::math::approxSub( fVal, pMat->GetDouble(i)) : ::rtl::math::approxAdd( p… in CalculateAddSub()
1262 { if (pMat->IsValue(i)) in CalculateAddSub()
1263 pResMat->PutDouble( ::rtl::math::approxSub( pMat->GetDouble(i), fVal), i); in CalculateAddSub()
1316 ScMatrixRef pMat = pMat1; in ScAmpersand() local
1317 if (!pMat) in ScAmpersand()
1320 pMat = pMat2; in ScAmpersand()
1329 pMat->GetDimensions(nC, nR); in ScAmpersand()
1343 sal_uInt16 nErr = pMat->GetErrorIfNotString( i); in ScAmpersand()
1349 aTmp += pMat->GetString( *pFormatter, i); in ScAmpersand()
1358 sal_uInt16 nErr = pMat->GetErrorIfNotString( i); in ScAmpersand()
1363 String aTmp( pMat->GetString( *pFormatter, i)); in ScAmpersand()
1434 ScMatrixRef pMat = pMat1; in ScMul() local
1435 if (!pMat) in ScMul()
1438 pMat = pMat2; in ScMul()
1443 pMat->GetDimensions(nC, nR); in ScMul()
1449 if (pMat->IsValue(i)) in ScMul()
1450 pResMat->PutDouble(pMat->GetDouble(i)*fVal, i); in ScMul()
1510 ScMatrixRef pMat = pMat1; in ScDiv() local
1511 if (!pMat) in ScDiv()
1514 pMat = pMat2; in ScDiv()
1523 pMat->GetDimensions(nC, nR); in ScDiv()
1530 if (pMat->IsValue(i)) in ScDiv()
1531 pResMat->PutDouble( div( fVal, pMat->GetDouble(i)), i); in ScDiv()
1537 if (pMat->IsValue(i)) in ScDiv()
1538 pResMat->PutDouble( div( pMat->GetDouble(i), fVal), i); in ScDiv()
1592 ScMatrixRef pMat = pMat1; in ScPow() local
1593 if (!pMat) in ScPow()
1596 pMat = pMat2; in ScPow()
1605 pMat->GetDimensions(nC, nR); in ScPow()
1612 if (pMat->IsValue(i)) in ScPow()
1613 pResMat->PutDouble(pow(fVal,pMat->GetDouble(i)), i); in ScPow()
1619 if (pMat->IsValue(i)) in ScPow()
1620 pResMat->PutDouble(pow(pMat->GetDouble(i),fVal), i); in ScPow()
1642 ScMatrixRef pMat = NULL; in ScSumProduct() local
1652 pMat = pMat2; in ScSumProduct()
1668 ScMatrixRef pResMat = lcl_MatrixCalculation(aMul,pMat1, pMat,this); in ScSumProduct()
1675 pMat = pResMat; in ScSumProduct()
1678 SCSIZE nCount = pMat->GetElementCount(); in ScSumProduct()
1681 if (!pMat->IsString(j)) in ScSumProduct()
1682 fSum += pMat->GetDouble(j); in ScSumProduct()
2145 double lcl_GetMeanOverAll(ScMatrixRef pMat, SCSIZE nN) in lcl_GetMeanOverAll() argument
2149 fSum += pMat->GetDouble(i); in lcl_GetMeanOverAll()
2183 void lcl_CalculateColumnsDelta(ScMatrixRef pMat, ScMatrixRef pColumnMeans, in lcl_CalculateColumnsDelta() argument
2188 pMat->PutDouble( ::rtl::math::approxSub in lcl_CalculateColumnsDelta()
2189 (pMat->GetDouble(i,k) , pColumnMeans->GetDouble(i) ) , i, k); in lcl_CalculateColumnsDelta()
2192 void lcl_CalculateRowsDelta(ScMatrixRef pMat, ScMatrixRef pRowMeans, in lcl_CalculateRowsDelta() argument
2197 pMat->PutDouble( ::rtl::math::approxSub in lcl_CalculateRowsDelta()
2198 ( pMat->GetDouble(i,k) , pRowMeans->GetDouble(k) ) , i, k); in lcl_CalculateRowsDelta()
3184 const ScMatrix* pMat = pCell->GetMatrix(); in ScMatRef() local
3185 if( pMat ) in ScMatRef()
3188 pMat->GetDimensions( nCols, nRows ); in ScMatRef()
3196 const ScMatrixValue* pMatVal = pMat->Get( nC, nR, nMatValType); in ScMatRef()