Home
last modified time | relevance | path

Searched full:self (Results 1 – 25 of 109) sorted by relevance

12345

/libCEED/python/
H A Dceed_vector.py21 def __init__(self, ceed, size): argument
23 self._pointer = ffi.new("CeedVector *")
26 self._ceed = ceed
30 self._ceed._pointer[0], size, self._pointer)
31 self._ceed._check_error(err_code)
34 def __del__(self): argument
36 err_code = lib.CeedVectorDestroy(self._pointer)
37 self._ceed._check_error(err_code)
40 def __repr__(self): argument
41 return "<CeedVector instance at " + hex(id(self)) + ">"
[all …]
H A Dceed_elemrestriction.py22 def __del__(self): argument
24 err_code = lib.CeedElemRestrictionDestroy(self._pointer)
25 self._ceed._check_error(err_code)
28 def __repr__(self): argument
29 return "<CeedElemRestriction instance at " + hex(id(self)) + ">"
32 def __str__(self): argument
40 err_code = lib.CeedElemRestrictionView(self._pointer[0], stream)
41 self._ceed._check_error(err_code)
49 def apply(self, u, v, tmode=NOTRANSPOSE, request=REQUEST_IMMEDIATE): argument
59 err_code = lib.CeedElemRestrictionApply(self._pointer[0], tmode, u._pointer[0],
[all …]
H A Dceed_operator.py20 def __del__(self): argument
22 err_code = lib.CeedOperatorDestroy(self._pointer)
23 self._ceed._check_error(err_code)
26 def __repr__(self): argument
27 return "<CeedOperator instance at " + hex(id(self)) + ">"
30 def __str__(self): argument
38 err_code = lib.CeedOperatorView(self._pointer[0], stream)
39 self._ceed._check_error(err_code)
47 def check(self): argument
50 err_code = lib.CeedOperatorCheckReady(self._pointer[0])
[all …]
H A Dceed_basis.py21 def __repr__(self): argument
22 return "<CeedBasis instance at " + hex(id(self)) + ">"
25 def __str__(self): argument
33 err_code = lib.CeedBasisView(self._pointer[0], stream)
34 self._ceed._check_error(err_code)
42 def apply(self, nelem, emode, u, v, tmode=NOTRANSPOSE): argument
57 err_code = lib.CeedBasisApply(self._pointer[0], nelem, tmode, emode,
59 self._ceed._check_error(err_code)
63 def T(self): argument
66 return TransposeBasis(self)
[all …]
H A Dceed_qfunction.py21 def __del__(self): argument
23 err_code = lib.CeedQFunctionDestroy(self._pointer)
24 self._ceed._check_error(err_code)
27 def __repr__(self): argument
28 return "<CeedQFunction instance at " + hex(id(self)) + ">"
31 def __str__(self): argument
39 err_code = lib.CeedQFunctionView(self._pointer[0], stream)
40 self._ceed._check_error(err_code)
48 def apply(self, q, inputs, outputs): argument
65 err_code = lib.CeedQFunctionApply(self._pointer[0], q, invecs, outvecs)
[all …]
H A Dceed_qfunctioncontext.py21 def __init__(self, ceed): argument
23 self._pointer = ffi.new("CeedQFunctionContext *")
26 self._ceed = ceed
30 self._ceed._pointer[0], self._pointer)
31 self._ceed._check_error(err_code)
34 def __del__(self): argument
36 err_code = lib.CeedQFunctionContextDestroy(self._pointer)
37 self._ceed._check_error(err_code)
40 def __repr__(self): argument
41 return "<CeedQFunctionContext instance at " + hex(id(self)) + ">"
[all …]
H A Dceed.py31 def __init__(self, resource="/cpu/self", on_error="store"): argument
33 self._pointer = ffi.new("Ceed *")
38 err_code = lib.CeedInit(resourceAscii, self._pointer)
46 self._pointer[0], ffi.addressof(
50 def __repr__(self): argument
51 return "<Ceed instance at " + hex(id(self)) + ">"
54 def __str__(self): argument
62 err_code = lib.CeedView(self._pointer[0], stream)
63 self._check_error(err_code)
71 def _check_error(self, err_code): argument
[all …]
/libCEED/tests/junit-xml/junit_xml/
H A D__init__.py84 self, argument
98 self.name = name
105 self.test_cases = test_cases
106 self.timestamp = timestamp
107 self.hostname = hostname
108 self.id = id
109 self.package = package
110 self.file = file
111 self.log = log
112 self.url = url
[all …]
/libCEED/rust/libceed/src/
H A Dvector.rs29 fn from(vec: &'a Vector) -> Self { in from() argument
32 Self::Some(vec) in from()
37 pub(crate) fn to_raw(&self) -> bind_ceed::CeedVector { in to_raw()
38 match self { in to_raw()
39 Self::Some(vec) => vec.ptr, in to_raw()
40 Self::Active => unsafe { bind_ceed::CEED_VECTOR_ACTIVE }, in to_raw()
41 Self::None => unsafe { bind_ceed::CEED_VECTOR_NONE }, in to_raw()
63 pub fn is_some(&self) -> bool { in is_some()
64 match self { in is_some()
65 Self::Some(_) => true, in is_some()
[all …]
H A Dbasis.rs23 fn from(basis: &'a Basis) -> Self { in from() argument
25 Self::Some(basis) in from()
30 pub(crate) fn to_raw(&self) -> bind_ceed::CeedBasis { in to_raw()
31 match self { in to_raw()
32 Self::Some(basis) => basis.ptr, in to_raw()
33 Self::None => unsafe { bind_ceed::CEED_BASIS_NONE }, in to_raw()
52 pub fn is_some(&self) -> bool { in is_some()
53 match self { in is_some()
54 Self::Some(_) => true, in is_some()
55 Self::None => false, in is_some()
[all …]
H A Delem_restriction.rs23 fn from(rstr: &'a ElemRestriction) -> Self { in from() argument
25 Self::Some(rstr) in from()
31 pub(crate) fn to_raw(&self) -> bind_ceed::CeedElemRestriction { in to_raw()
32 match self { in to_raw()
33 Self::Some(rstr) => rstr.ptr, in to_raw()
34 Self::None => unsafe { bind_ceed::CEED_ELEMRESTRICTION_NONE }, in to_raw()
59 pub fn is_some(&self) -> bool { in is_some()
60 match self { in is_some()
61 Self::Some(_) => true, in is_some()
62 Self::None => false, in is_some()
[all …]
H A Dqfunction.rs47 pub fn name(&self) -> &str { in name()
51 self.ptr, in name()
74 pub fn size(&self) -> usize { in size()
77 bind_ceed::CeedQFunctionFieldGetSize(self.ptr, &mut size); in size()
106 pub fn eval_mode(&self) -> crate::EvalMode { in eval_mode()
109 bind_ceed::CeedQFunctionFieldGetEvalMode(self.ptr, &mut mode); in eval_mode()
126 fn from(qfunc: &'a QFunction) -> Self { in from() argument
128 Self::SomeQFunction(qfunc) in from()
134 fn from(qfunc: &'a QFunctionByName) -> Self { in from() argument
136 Self::SomeQFunctionByName(qfunc) in from()
[all …]
H A Dlib.rs143 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
144 write!(f, "{}", self.message) in fmt()
211 fn drop(&mut self) { in drop() argument
213 bind_ceed::CeedDestroy(&mut self.ptr); in drop()
225 /// let ceed = libceed::Ceed::init("/cpu/self/ref/serial");
230 fn clone(&self) -> Self { in clone() argument
232 self.check_error(unsafe { bind_ceed::CeedReferenceCopy(self.ptr, &mut ptr_clone) }) in clone()
234 Self { ptr: ptr_clone } in clone()
245 /// let ceed = libceed::Ceed::init("/cpu/self/ref/serial");
248 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() argument
[all …]
H A Doperator.rs39 ) -> crate::Result<Self> { in from_raw() argument
58 Ok(Self { in from_raw()
103 pub fn name(&self) -> &str { in name()
107 self.ptr, in name()
178 pub fn elem_restriction(&self) -> ElemRestrictionOpt { in elem_restriction()
179 if self.elem_restriction.ptr == unsafe { bind_ceed::CEED_ELEMRESTRICTION_NONE } { in elem_restriction()
182 ElemRestrictionOpt::Some(&self.elem_restriction) in elem_restriction()
240 pub fn basis(&self) -> BasisOpt { in basis()
241 if self.basis.ptr == unsafe { bind_ceed::CEED_BASIS_NONE } { in basis()
244 BasisOpt::Some(&self.basis) in basis()
[all …]
/libCEED/
H A DREADME.md152 | `/cpu/self/ref/serial` | Serial reference implementation | Yes …
153 | `/cpu/self/ref/blocked` | Blocked reference implementation | Yes …
154 | `/cpu/self/opt/serial` | Serial optimized C implementation | Yes …
155 | `/cpu/self/opt/blocked` | Blocked optimized C implementation | Yes …
156 | `/cpu/self/avx/serial` | Serial AVX implementation | Yes …
157 | `/cpu/self/avx/blocked` | Blocked AVX implementation | Yes …
160 | `/cpu/self/memcheck/*` | Memcheck backends, undefined value checks | Yes …
163 | `/cpu/self/xsmm/serial` | Serial LIBXSMM implementation | Yes …
164 | `/cpu/self/xsmm/blocked` | Blocked LIBXSMM implementation | Yes …
187 The `/cpu/self/*/serial` backends process one element at a time and are intended for meshes with a …
[all …]
/libCEED/tests/
H A Djunit_common.py26 def __init__(self, message): argument
33 def __init__(self, option_strings, dest, type, default, **kwargs): argument
37 self.enum_type = type
38 if isinstance(default, self.enum_type):
41 default = self.enum_type(default.lower())
43 default = [self.enum_type(v.lower()) for v in default]
49 def __call__(self, parser, namespace, values, option_string=None): argument
50 if isinstance(values, self.enum_type):
53 values = self.enum_type(values.lower())
55 values = [self.enum_type(v.lower()) for v in values]
[all …]
H A Djunit.py17 default=['/cpu/self'],
40 def __init__(self): argument
43 def get_source_path(self, test: str) -> Path: argument
78 def get_run_path(self, test: str) -> Path: argument
89 def get_output_path(self, test: str, output_file: str) -> Path: argument
101 def check_pre_skip(self, test: str, spec: TestSpec, resource: str, nproc: int) -> Optional[str]: argument
121 … def check_post_skip(self, test: str, spec: TestSpec, resource: str, stderr: str) -> Optional[str]: argument
147 …def check_required_failure(self, test: str, spec: TestSpec, resource: str, stderr: str) -> Tuple[s… argument
186 def check_allowed_stdout(self, test: str) -> bool: argument
/libCEED/doc/sphinx/source/
H A Dreleasenotes.md55 - Update `/cpu/self/memcheck/*` backends to help verify `CeedVector` array access assumptions and `…
98 - Update `/cpu/self/memcheck/*` backends to help verify `CeedQFunctionContext` data sizes provided …
223 - The `/cpu/self/tmpl` and `/cpu/self/tmpl/sub` backends have been removed. These backends were int…
314 - New backend: `/cpu/self/memcheck/serial`.
386 were included in this release, such as the `/cpu/self/opt/*` backends (which are
388 `/cpu/self/ref/memcheck` backend (which relies upon the
410 | `/cpu/self/ref/serial` | Serial reference implementation |
411 | `/cpu/self/ref/blocked` | Blocked reference implementation |
412 | `/cpu/self/ref/memcheck` | Memcheck backend, undefined value checks |
413 | `/cpu/self/opt/serial` | Serial optimized C implementation |
[all …]
H A DlibCEEDdev.md29 … the `/cpu/self/xsmm/serial` backend implements the `CeedTensorContract` object itself but delegat…
50 The basic CPU with the simplest implementation is `/cpu/self/ref/serial`.
54 The `/cpu/self/ref/blockend` and `/cpu/self/opt/*` backends delegate to the `/cpu/self/ref/serial` …
55 The `/cpu/self/ref/blocked` backend updates the {ref}`CeedOperator` to use an E-vector and Q-vector…
56 The `/cpu/self/opt/*` backends update the {ref}`CeedOperator` to apply the action of the operator i…
59 The `/cpu/self/avx/*` and `/cpu/self/xsmm/*` backends delegate to the corresponding `/cpu/self/opt/…
62 The `/cpu/self/memcheck/*` backends delegate to the `/cpu/self/ref/*` backends.
246 …Note: Prefixing the resource with "help:" (e.g. "help:/cpu/self") will result in @ref CeedInt() pr…
248 @param[in] resource Resource to use, e.g., "/cpu/self"
/libCEED/backends/
H A Dceed-backend-list-ref.h12 CEED_BACKEND(CeedRegister_Ref, 1, "/cpu/self/ref/serial")
13 CEED_BACKEND(CeedRegister_Ref_Blocked, 1, "/cpu/self/ref/blocked")
14 CEED_BACKEND(CeedRegister_Opt_Blocked, 1, "/cpu/self/opt/blocked")
15 CEED_BACKEND(CeedRegister_Opt_Serial, 1, "/cpu/self/opt/serial")
/libCEED/backends/avx/
H A Dceed-avx-blocked.c21 …CeedCheck(!strcmp(resource, "/cpu/self") || !strcmp(resource, "/cpu/self/avx") || !strcmp(resource… in CeedInit_Avx()
26 CeedCallBackend(CeedInit("/cpu/self/opt/blocked", &ceed_ref)); in CeedInit_Avx()
37 CEED_INTERN int CeedRegister_Avx_Blocked(void) { return CeedRegister("/cpu/self/avx/blocked", CeedI… in CeedRegister_Avx_Blocked()
/libCEED/backends/xsmm/
H A Dceed-xsmm-blocked.c21 …CeedCheck(!strcmp(resource, "/cpu/self") || !strcmp(resource, "/cpu/self/xsmm") || !strcmp(resourc… in CeedInit_Xsmm_Blocked()
26 CeedCallBackend(CeedInit("/cpu/self/opt/blocked", &ceed_ref)); in CeedInit_Xsmm_Blocked()
37 CEED_INTERN int CeedRegister_Xsmm_Blocked(void) { return CeedRegister("/cpu/self/xsmm/blocked", Cee… in CeedRegister_Xsmm_Blocked()
H A Dceed-xsmm-serial.c21 …CeedCheck(!strcmp(resource, "/cpu/self") || !strcmp(resource, "/cpu/self/xsmm/serial"), ceed, CEED… in CeedInit_Xsmm_Serial()
26 CeedCallBackend(CeedInit("/cpu/self/opt/serial", &ceed_ref)); in CeedInit_Xsmm_Serial()
37 CEED_INTERN int CeedRegister_Xsmm_Serial(void) { return CeedRegister("/cpu/self/xsmm/serial", CeedI… in CeedRegister_Xsmm_Serial()
/libCEED/backends/opt/
H A Dceed-opt-blocked.c33 …CeedCheck(!strcmp(resource, "/cpu/self") || !strcmp(resource, "/cpu/self/opt") || !strcmp(resource… in CeedInit_Opt_Blocked()
38 CeedCallBackend(CeedInit("/cpu/self/ref/serial", &ceed_ref)); in CeedInit_Opt_Blocked()
56 CEED_INTERN int CeedRegister_Opt_Blocked(void) { return CeedRegister("/cpu/self/opt/blocked", CeedI… in CeedRegister_Opt_Blocked()
/libCEED/backends/blocked/
H A Dceed-blocked.c21 …CeedCheck(!strcmp(resource, "/cpu/self") || !strcmp(resource, "/cpu/self/ref/blocked"), ceed, CEED… in CeedInit_Blocked()
26 CeedCallBackend(CeedInit("/cpu/self/ref/serial", &ceed_ref)); in CeedInit_Blocked()
37 CEED_INTERN int CeedRegister_Ref_Blocked(void) { return CeedRegister("/cpu/self/ref/blocked", CeedI… in CeedRegister_Ref_Blocked()

12345