Lines Matching +full:- +full:r

1 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors
2 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
4 # SPDX-License-Identifier: BSD-2-Clause
16 # -------------------------------------------------------------------------------
18 # -------------------------------------------------------------------------------
34 r = ceed.ElemRestriction(num_elem, 2, 1, 1, num_elem + 1, ind,
40 r.apply(x, y)
46 # -------------------------------------------------------------------------------
48 # -------------------------------------------------------------------------------
61 r = ceed.StridedElemRestriction(num_elem, 2, 1, 2 * num_elem, strides)
66 r.apply(x, y)
72 # -------------------------------------------------------------------------------
74 # -------------------------------------------------------------------------------
93 r = ceed.BlockedElemRestriction(num_elem, elem_size, blk_size, 1, 1,
100 r.apply(x, y)
101 layout = r.get_e_layout()
114 r.T.apply(y, x)
120 # -------------------------------------------------------------------------------
122 # -------------------------------------------------------------------------------
141 r = ceed.BlockedElemRestriction(num_elem, elem_size, blk_size, 1, 1,
148 r.apply_block(1, x, y)
149 layout = r.get_e_layout()
158 layout[2] - blk_size * elem_size
162 r.T.apply_block(1, y, x)
168 # -------------------------------------------------------------------------------
170 # -------------------------------------------------------------------------------
184 r = ceed.ElemRestriction(num_elem, 4, 1, 1, 3 * num_elem + 1, ind,
187 mult = r.get_multiplicity()
194 # -------------------------------------------------------------------------------
196 # -------------------------------------------------------------------------------
208 r = ceed.ElemRestriction(num_elem, 2, 1, 1, num_elem + 1, ind,
211 print(r)
217 # -------------------------------------------------------------------------------
219 # -------------------------------------------------------------------------------
228 r = ceed.StridedElemRestriction(num_elem, 2, 1, num_elem * 2, strides)
230 print(r)
236 # -------------------------------------------------------------------------------
238 # -------------------------------------------------------------------------------
247 r = ceed.BlockedStridedElemRestriction(
250 print(r)
256 # -------------------------------------------------------------------------------
258 # -------------------------------------------------------------------------------
278 r = ceed.OrientedElemRestriction(
291 r.apply(x, y)
297 assert 10 + (k + 1) // 2 == y_array[k] * pow(-1, i % 2)
299 # -------------------------------------------------------------------------------
300 # Test creation, use, and destruction of a curl-oriented element restriction
301 # -------------------------------------------------------------------------------
318 curl_orients[3 * 2 * i] = curl_orients[3 * 2 * (i + 1) - 1] = 0
320 # T = [0 -1]
321 # [-1 0]
323 curl_orients[3 * 2 * i + 2] = -1
324 curl_orients[3 * 2 * i + 3] = -1
332 r = ceed.CurlOrientedElemRestriction(
345 r.apply(x, y)
352 assert j != 0 or 10 + i + 1 == -y_array[k]
353 assert j != 1 or 10 + i == -y_array[k]
357 # -------------------------------------------------------------------------------