Searched refs:idx (Results 1 – 7 of 7) sorted by relevance
| /libCEED/examples/fluids/qfunctions/ |
| H A D | stg_shur14.h | 49 CeedInt idx = -1; in InterpolateProfile() local 53 idx = i; in InterpolateProfile() 58 if (idx > 0) { // y within the bounds of prof_wd in InterpolateProfile() 59 CeedScalar coeff = (wall_dist - prof_wd[idx - 1]) / (prof_wd[idx] - prof_wd[idx - 1]); in InterpolateProfile() 61 …ubar[0] = prof_ubar[0 * nprofs + idx - 1] + coeff * (prof_ubar[0 * nprofs + idx] - prof_ubar[0 * n… in InterpolateProfile() 62 …ubar[1] = prof_ubar[1 * nprofs + idx - 1] + coeff * (prof_ubar[1 * nprofs + idx] - prof_ubar[1 * n… in InterpolateProfile() 63 …ubar[2] = prof_ubar[2 * nprofs + idx - 1] + coeff * (prof_ubar[2 * nprofs + idx] - prof_ubar[2 * n… in InterpolateProfile() 64 …cij[0] = prof_cij[0 * nprofs + idx - 1] + coeff * (prof_cij[0 * nprofs + idx] - prof_cij[0 * npro… in InterpolateProfile() 65 …cij[1] = prof_cij[1 * nprofs + idx - 1] + coeff * (prof_cij[1 * nprofs + idx] - prof_cij[1 * npro… in InterpolateProfile() 66 …cij[2] = prof_cij[2 * nprofs + idx - 1] + coeff * (prof_cij[2 * nprofs + idx] - prof_cij[2 * npro… in InterpolateProfile() [all …]
|
| /libCEED/backends/magma/tuning/ |
| H A D | generate_tuning.py | 110 idx = data_nb["MFLOPS"] > 1.05 * data["MFLOPS"] variable 111 data.loc[idx, "NB"] = nb 112 data.loc[idx, "MFLOPS"] = data_nb.loc[idx, "MFLOPS"]
|
| /libCEED/julia/LibCEED.jl/examples/ |
| H A D | ex3-volume.jl | 92 idx = 2 95 qdata[idx] = dx[:, i]'*dx[:, j] 96 idx += 1 140 idx = 2 146 mat_idx = idx + div((j - 1)*j, 2) + (i - 1) 148 mat_idx = idx + div((i - 1)*i, 2) + (j - 1)
|
| /libCEED/julia/LibCEED.jl/src/ |
| H A D | UserQFunction.jl | 12 @inline function extract_array(ptr, idx, dims) argument 13 UnsafeArray(Ptr{CeedScalar}(unsafe_load(ptr, idx)), dims) 27 idx = gensym(:i) 49 slice = Expr(:ref, arr_name_gen, idx, (:(:) for i = 1:ndims)...) 81 @inbounds @simd for $idx = 1:$Q
|
| /libCEED/rust/libceed/src/ |
| H A D | qfunction.rs | 740 let idx = self.trampoline_data.number_inputs; in input() localVariable 741 self.trampoline_data.input_sizes[idx] = size; in input() 789 let idx = self.trampoline_data.number_outputs; in output() localVariable 790 self.trampoline_data.output_sizes[idx] = size; in output()
|
| /libCEED/backends/sycl-ref/ |
| H A D | ceed-sycl-ref-operator.sycl.cpp | 853 sycl_queue.parallel_for<CeedOperatorSyclLinearDiagonal>(kernel_range, e, [=](sycl::id<1> idx) { in CeedOperatorLinearDiagonal_Sycl() argument 854 const CeedInt tid = idx % num_nodes; in CeedOperatorLinearDiagonal_Sycl() 855 const CeedInt e = idx / num_nodes; in CeedOperatorLinearDiagonal_Sycl() 1224 sycl_queue.parallel_for<CeedOperatorSyclLinearAssemble>(kernel_range, e, [=](sycl::id<3> idx) { in CeedOperatorLinearAssemble_Sycl() argument 1225 const int e = idx.get(0); // Element index in CeedOperatorLinearAssemble_Sycl() 1226 const int l = idx.get(1); // The output column index of each B^TDB operation in CeedOperatorLinearAssemble_Sycl() 1227 const int i = idx.get(2); // The output row index of each B^TDB operation in CeedOperatorLinearAssemble_Sycl()
|
| /libCEED/examples/petsc/ |
| H A D | bpsraw.c | 79 CeedInt m_nodes[3], *idx, *idx_p; in CreateRestriction() local 84 idx_p = idx = malloc(num_elem * P * P * P * sizeof idx[0]); in CreateRestriction() 105 idx, elem_restr); in CreateRestriction()
|