Lines Matching refs:maxmn
2065 PetscInt i, j, maxmn; in PetscFVLeastSquaresPseudoInverseSVD_Static() local
2073 maxmn = PetscMax(m, n); in PetscFVLeastSquaresPseudoInverseSVD_Static()
2074 for (j = 0; j < maxmn; j++) { in PetscFVLeastSquaresPseudoInverseSVD_Static()
2075 for (i = 0; i < maxmn; i++) Brhs[i + j * maxmn] = 1.0 * (i == j); in PetscFVLeastSquaresPseudoInverseSVD_Static()
2081 PetscCall(PetscBLASIntCast(maxmn, &ldb)); in PetscFVLeastSquaresPseudoInverseSVD_Static()
2169 PetscInt maxmn = PetscMax(numFaces, dim); in PetscFVComputeGradient_LeastSquares() local
2173 for (d = 0; d < dim; ++d) grad[f * dim + d] = ls->Binv[d + maxmn * f]; in PetscFVComputeGradient_LeastSquares()
2219 PetscInt dim, m, n, nrhs, minmn, maxmn; in PetscFVLeastSquaresSetMaxFaces_LS() local
2230 maxmn = PetscMax(m, n); in PetscFVLeastSquaresSetMaxFaces_LS()
2231 ls->workSize = 3 * minmn + PetscMax(2 * minmn, PetscMax(maxmn, nrhs)); /* required by LAPACK */ in PetscFVLeastSquaresSetMaxFaces_LS()
2232 …PetscCall(PetscMalloc4(m * n, &ls->B, maxmn * maxmn, &ls->Binv, minmn, &ls->tau, ls->workSize, &ls… in PetscFVLeastSquaresSetMaxFaces_LS()