Home
last modified time | relevance | path

Searched refs:scalar_type (Results 1 – 18 of 18) sorted by relevance

/libCEED/python/tests/
H A Dtest-3-basis.py90 x = np.empty(Xdim * dim, dtype=ceed.scalar_type())
91 uq = np.empty(Qdim, dtype=ceed.scalar_type())
113 xx = np.empty(dim, dtype=ceed.scalar_type())
131 xx = np.empty(dim, dtype=ceed.scalar_type())
151 x = np.empty(Xdim * dim, dtype=ceed.scalar_type())
152 u = np.empty(Pdim, dtype=ceed.scalar_type())
177 xx = np.empty(dim, dtype=ceed.scalar_type())
208 in_array = np.empty(P, dtype=ceed.scalar_type())
209 qref = np.empty(dim * Q, dtype=ceed.scalar_type())
210 qweight = np.empty(Q, dtype=ceed.scalar_type())
[all …]
H A Dtest-1-vector.py39 a = np.arange(10, 10 + n, dtype=ceed.scalar_type())
56 a = np.arange(10, 10 + n, dtype=ceed.scalar_type())
104 a = np.arange(10, 10 + n, dtype=ceed.scalar_type())
125 a = np.zeros(n, dtype=ceed.scalar_type())
151 a = np.arange(10, 10 + n, dtype=ceed.scalar_type())
173 a = np.arange(10, 10 + n, dtype=ceed.scalar_type())
193 a = np.arange(0, n, dtype=ceed.scalar_type())
222 a = np.arange(10, 10 + n, dtype=ceed.scalar_type())
242 a = np.arange(10, 10 + n, dtype=ceed.scalar_type())
263 a = np.arange(0, n, dtype=ceed.scalar_type())
[all …]
H A Dtest-4-qfunction.py60 w_array = np.zeros(q, dtype=ceed.scalar_type())
61 u_array = np.zeros(q, dtype=ceed.scalar_type())
62 v_true = np.zeros(q, dtype=ceed.scalar_type())
115 ctx_data = np.array([1., 2., 3., 4., 5.], dtype=ceed.scalar_type())
122 w_array = np.zeros(q, dtype=ceed.scalar_type())
123 u_array = np.zeros(q, dtype=ceed.scalar_type())
124 v_true = np.zeros(q, dtype=ceed.scalar_type())
207 j_array = np.zeros(q, dtype=ceed.scalar_type())
208 w_array = np.zeros(q, dtype=ceed.scalar_type())
209 u_array = np.zeros(q, dtype=ceed.scalar_type())
[all …]
H A Dtest-2-elemrestriction.py27 a = np.arange(10, 10 + num_elem + 1, dtype=ceed.scalar_type())
57 a = np.arange(10, 10 + 2 * num_elem, dtype=ceed.scalar_type())
86 a = np.arange(10, 10 + num_elem + 1, dtype=ceed.scalar_type())
134 a = np.arange(10, 10 + num_elem + 1, dtype=ceed.scalar_type())
267 a = np.arange(10, 10 + num_elem + 1, dtype=ceed.scalar_type())
310 a = np.arange(10, 10 + num_elem + 1, dtype=ceed.scalar_type())
H A Dtest-5-operator.py141 x_array = np.zeros(nx, dtype=ceed.scalar_type())
231 x_array = np.zeros(nx, dtype=ceed.scalar_type())
328 x_array = np.zeros(nx, dtype=ceed.scalar_type())
492 x_array = np.zeros(nx, dtype=ceed.scalar_type())
635 qref = np.empty(dim * q, dtype=ceed.scalar_type())
636 qweight = np.empty(q, dtype=ceed.scalar_type())
702 x_array = np.zeros(dim * ndofs, dtype=ceed.scalar_type())
742 qref = np.empty(dim * q, dtype=ceed.scalar_type())
743 qweight = np.empty(q, dtype=ceed.scalar_type())
856 qref = np.empty(dim * q_tet, dtype=ceed.scalar_type())
[all …]
/libCEED/tests/
H A Dt365-basis.c15 static CeedScalar GetTolerance(CeedScalarType scalar_type, int dim) { in GetTolerance() argument
17 if (scalar_type == CEED_SCALAR_FP32) { in GetTolerance()
102 CeedScalarType scalar_type; in main() local
104 CeedGetScalarType(&scalar_type); in main()
106 CeedScalar tol = GetTolerance(scalar_type, dim); in main()
H A Dt361-basis.c15 static CeedScalar GetTolerance(CeedScalarType scalar_type, int dim) { in GetTolerance() argument
17 if (scalar_type == CEED_SCALAR_FP32) { in GetTolerance()
96 CeedScalarType scalar_type; in main() local
98 CeedGetScalarType(&scalar_type); in main()
100 CeedScalar tol = GetTolerance(scalar_type, dim); in main()
H A Dt315-basis.c15 static CeedScalar GetTolerance(CeedScalarType scalar_type, int dim) { in GetTolerance() argument
17 if (scalar_type == CEED_SCALAR_FP32) { in GetTolerance()
94 CeedScalarType scalar_type; in main() local
96 CeedGetScalarType(&scalar_type); in main()
98 CeedScalar tol = GetTolerance(scalar_type, dim); in main()
H A Dt314-basis.c15 static CeedScalar GetTolerance(CeedScalarType scalar_type, int dim) { in GetTolerance() argument
17 if (scalar_type == CEED_SCALAR_FP32) { in GetTolerance()
94 CeedScalarType scalar_type; in main() local
96 CeedGetScalarType(&scalar_type); in main()
98 CeedScalar tol = GetTolerance(scalar_type, dim); in main()
H A Dt357-basis.c15 static CeedScalar GetTolerance(CeedScalarType scalar_type, int dim) { in GetTolerance() argument
17 if (scalar_type == CEED_SCALAR_FP32) { in GetTolerance()
100 CeedScalarType scalar_type; in main() local
102 CeedGetScalarType(&scalar_type); in main()
104 CeedScalar tol = GetTolerance(scalar_type, dim); in main()
H A Dt316-basis.c15 static CeedScalar GetTolerance(CeedScalarType scalar_type, int dim) { in GetTolerance() argument
17 if (scalar_type == CEED_SCALAR_FP32) { in GetTolerance()
94 CeedScalarType scalar_type; in main() local
96 CeedGetScalarType(&scalar_type); in main()
98 CeedScalar tol = GetTolerance(scalar_type, dim); in main()
H A Dt319-basis.c27 static CeedScalar GetTolerance(CeedScalarType scalar_type, int dim) { in GetTolerance() argument
29 if (scalar_type == CEED_SCALAR_FP32) { in GetTolerance()
43 CeedScalarType scalar_type; in VerifyProjectedBasis() local
45 CeedGetScalarType(&scalar_type); in VerifyProjectedBasis()
46 tol = GetTolerance(scalar_type, dim); in VerifyProjectedBasis()
/libCEED/julia/LibCEED.jl/src/
H A DLibCEED.jl290 scalar_type = Ref{C.CeedScalarType}()
291 ccall(sym, Cint, (Ptr{C.CeedScalarType},), scalar_type)
292 if scalar_type[] == C.CEED_SCALAR_FP32
294 elseif scalar_type[] == C.CEED_SCALAR_FP64
297 error("Unknown CeedScalar type $(scalar_type[])")
303 scalar_type = get_scalar_type(handle)
304 if scalar_type != CeedScalar
305 @set_preferences!("CeedScalar" => string(scalar_type))
307 libCEED is compiled with $scalar_type but LibCEED.jl is using $CeedScalar.
308 Configuring LibCEED.jl to use $scalar_type.
/libCEED/doc/sphinx/source/
H A Dprecision.md25 … The {c:func}`scalar_type()` function has been added to the {code}`Ceed` class for convenience.
/libCEED/python/
H A Dceed.py107 def scalar_type(self): member in Ceed
/libCEED/interface/
H A Dceed.c1899 int CeedGetScalarType(CeedScalarType *scalar_type) { in CeedGetScalarType() argument
1900 *scalar_type = CEED_SCALAR_TYPE; in CeedGetScalarType()
/libCEED/include/ceed/
H A Dceed.h185 CEED_EXTERN int CeedGetScalarType(CeedScalarType *scalar_type);
/libCEED/julia/LibCEED.jl/src/generated/
H A Dlibceed_bindings.jl179 function CeedGetScalarType(scalar_type) argument
180 ccall((:CeedGetScalarType, libceed), Cint, (Ptr{CeedScalarType},), scalar_type)