Lines Matching refs:Ap
345 RsBlasDiag Diag, const sp<Allocation>& Ap, const sp<Allocation>& X, int incX) {
346 if (!Ap->getType()->getElement()->isCompatible(e) ||
354 if (Ap->getType()->getY() > 1) {
355 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Ap must have a Y dimension of 0 or 1");
358 int N = sqrt((double)Ap->getType()->getX() * 2);
359 if ((int)Ap->getType()->getX() != ((N * (N+1)) / 2)) {
360 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Invalid dimension for Ap");
463 const sp<Allocation>& Ap, const sp<Allocation>& X, int incX) {
464 int N = validateTPMV(mRS, Element::F32(mRS), Uplo, TransA, Diag, Ap, X, incX);
467 Ap->getID(), X->getID(), 0, 0, incX, 0, 0, 0);
471 const sp<Allocation>& Ap, const sp<Allocation>& X, int incX) {
472 int N = validateTPMV(mRS, Element::F64(mRS), Uplo, TransA, Diag, Ap, X, incX);
475 Ap->getID(), X->getID(), 0, 0, incX, 0, 0, 0);
479 const sp<Allocation>& Ap, const sp<Allocation>& X, int incX) {
480 int N = validateTPMV(mRS, Element::F32_2(mRS), Uplo, TransA, Diag, Ap, X, incX);
483 Ap->getID(), X->getID(), 0, 0, 0, incX, 0, 0, 0);
487 const sp<Allocation>& Ap, const sp<Allocation>& X, int incX) {
488 int N = validateTPMV(mRS, Element::F64_2(mRS), Uplo, TransA, Diag, Ap, X, incX);
491 Ap->getID(), X->getID(), 0, 0, 0, incX, 0, 0, 0);
590 const sp<Allocation>& Ap, const sp<Allocation>& X, int incX) {
592 int N = validateTPMV(mRS, Element::F32(mRS), Uplo, TransA, Diag, Ap, X, incX);
595 Ap->getID(), X->getID(), 0, 0, incX, 0, 0, 0);
599 const sp<Allocation>& Ap, const sp<Allocation>& X, int incX) {
601 int N = validateTPMV(mRS, Element::F64(mRS), Uplo, TransA, Diag, Ap, X, incX);
604 Ap->getID(), X->getID(), 0, 0, incX, 0, 0, 0);
608 const sp<Allocation>& Ap, const sp<Allocation>& X, int incX) {
610 int N = validateTPMV(mRS, Element::F32_2(mRS), Uplo, TransA, Diag, Ap, X, incX);
613 Ap->getID(), X->getID(), 0, 0, 0, incX, 0, 0, 0);
617 const sp<Allocation>& Ap, const sp<Allocation>& X, int incX) {
619 int N = validateTPMV(mRS, Element::F64_2(mRS), Uplo, TransA, Diag, Ap, X, incX);
622 Ap->getID(), X->getID(), 0, 0, 0, incX, 0, 0, 0);
656 static int validateSPMV(RS* mRS, const sp<const Element>& e, RsBlasUplo Uplo, const sp<Allocation>& Ap,
658 if (!Ap->getType()->getElement()->isCompatible(e) ||
667 if (Ap->getType()->getY() > 1) {
668 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Ap must have a Y dimension of 0 or 1");
671 int N = sqrt((double)Ap->getType()->getX() * 2);
672 if ((int)Ap->getType()->getX() != ((N * (N+1)) / 2)) {
673 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Invalid dimension for Ap");
746 const sp<Allocation>& X, int incX, const sp<Allocation>& Ap) {
747 if (!Ap->getType()->getElement()->isCompatible(e) ||
755 if (Ap->getType()->getY() > 1) {
756 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Ap must have a Y dimension of 0 or 1");
759 int N = sqrt((double)Ap->getType()->getX() * 2);
760 if ((int)Ap->getType()->getX() != ((N * (N+1)) / 2)) {
761 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Invalid dimension for Ap");
803 int incX, const sp<Allocation>& Y, int incY, const sp<Allocation>& Ap) {
804 if (!Ap->getType()->getElement()->isCompatible(e) ||
813 if (Ap->getType()->getY() > 1) {
814 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Ap must have a Y dimension of 0 or 1");
817 int N = sqrt((double)Ap->getType()->getX() * 2);
818 if ((int)Ap->getType()->getX() != ((N * (N+1)) / 2)) {
819 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Invalid dimension for Ap");
853 void ScriptIntrinsicBLAS::SSPMV(RsBlasUplo Uplo, float alpha, const sp<Allocation>& Ap, const sp<Allocation>& X,
855 int N = validateSPMV(mRS, Element::F32(mRS), Uplo, Ap, X, incX, Y, incY);
858 Ap->getID(), X->getID(), beta, Y->getID(), incX, incY, 0, 0);
880 int incX, const sp<Allocation>& Ap) {
881 int N = validateSPR(mRS, Element::F32(mRS), Uplo, X, incX, Ap);
884 alpha, X->getID(), Ap->getID(), 0.f, 0, incX, 0, 0, 0);
896 const sp<Allocation>& Y, int incY, const sp<Allocation>& Ap) {
897 int N = validateSPR2(mRS, Element::F32(mRS), Uplo, X, incX, Y, incY, Ap);
900 X->getID(), Y->getID(), 0, Ap->getID(), incX, incY, 0, 0);
923 void ScriptIntrinsicBLAS::DSPMV(RsBlasUplo Uplo, double alpha, const sp<Allocation>& Ap, const sp<Allocation>& X,
925 int N = validateSPMV(mRS, Element::F64(mRS), Uplo, Ap, X, incX, Y, incY);
928 Ap->getID(), X->getID(), beta, Y->getID(), incX, incY, 0, 0);
950 int incX, const sp<Allocation>& Ap) {
951 int N = validateSPR(mRS, Element::F64(mRS), Uplo, X, incX, Ap);
954 X->getID(), Ap->getID(), 0.f, 0, incX, 0, 0, 0);
966 const sp<Allocation>& Y, int incY, const sp<Allocation>& Ap) {
967 int N = validateSPR2(mRS, Element::F64(mRS), Uplo, X, incX, Y, incY, Ap);
970 X->getID(), Y->getID(), 0, Ap->getID(), incX, incY, 0, 0);
1028 void ScriptIntrinsicBLAS::CHPMV(RsBlasUplo Uplo, Float2 alpha, const sp<Allocation>& Ap,
1031 int N = validateSPR2(mRS, Element::F32_2(mRS), Uplo, X, incX, Y, incY, Ap);
1034 alpha.x, alpha.y, Ap->getID(), X->getID(),
1072 int incX, const sp<Allocation>& Ap) {
1074 int N = validateSPR(mRS, Element::F32_2(mRS), Uplo, X, incX, Ap);
1078 0, 0, Ap->getID(), incX, 0, 0, 0);
1092 const sp<Allocation>& Y, int incY, const sp<Allocation>& Ap) {
1094 int N = validateSPR2(mRS, Element::F32_2(mRS), Uplo, X, incX, Y, incY, Ap);
1098 0, 0, Ap->getID(), incX, incY, 0, 0);
1124 void ScriptIntrinsicBLAS::ZHPMV(RsBlasUplo Uplo, Double2 alpha, const sp<Allocation>& Ap, const sp<Allocation>& X,
1127 int N = validateSPR2(mRS, Element::F64_2(mRS), Uplo, X, incX, Y, incY, Ap);
1130 alpha.x, alpha.y, Ap->getID(), X->getID(),
1168 int incX, const sp<Allocation>& Ap) {
1170 int N = validateSPR(mRS, Element::F64_2(mRS), Uplo, X, incX, Ap);
1174 0, 0, Ap->getID(), incX, 0, 0, 0);
1188 const sp<Allocation>& Y, int incY, const sp<Allocation>& Ap) {
1190 int N = validateSPR2(mRS, Element::F64_2(mRS), Uplo, X, incX, Y, incY, Ap);
1194 0, 0, Ap->getID(), incX, incY, 0, 0);