Line data Source code
1 : // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2 : // SPDX-License-Identifier: Apache-2.0
3 :
4 : #ifndef PALACE_LIBCEED_COEFF_1_QF_H
5 : #define PALACE_LIBCEED_COEFF_1_QF_H
6 :
7 : #include "coeff_qf.h"
8 :
9 : CEED_QFUNCTION_HELPER CeedScalar CoeffUnpack1(const CeedIntScalar *ctx, const CeedInt attr)
10 : {
11 3657544 : const CeedInt k = (NumAttr(ctx) > 0) ? AttrMat(ctx)[attr - 1].first : 0;
12 3657544 : return MatCoeff(ctx)[k].second;
13 : }
14 :
15 : CEED_QFUNCTION_HELPER void CoeffUnpack1(const CeedIntScalar *ctx, const CeedInt attr,
16 : CeedScalar coeff[1])
17 : {
18 : coeff[0] = CoeffUnpack1(ctx, attr);
19 : }
20 :
21 : #endif // PALACE_LIBCEED_COEFF_1_QF_H
|