Google C++ Style Guide
(e.g. MyType m = {1, 2};). Copyable and Movable Types Support copying and/or moving if these operations are clear and meaningful for your type. Otherwise, disable the implicitly generated special functions initialization and assignment steps, and they’re eligible for optimizations such as copy elision. 16 Move operations allow the implicit and efficient transfer of resources out of rvalue objects. This allows a plainer plainer coding style in some cases. Some types do not need to be copyable, and providing copy operations for such types can be confusing, nonsensical, or outright incorrect. Types representing singleton0 码力 | 83 页 | 238.71 KB | 1 年前301 Structure of Scientific Papers - Introduction to Scientific Writing WS2021/22
model Ex. Compressed Linear Algebra Problem: Iterative ML algorithms + memory-bandwidth-bound operations crucial to fit data in memory automatic lossless compression Sub-problems: #rows>>#cols dedicated sampling schemes and estimators Initially slow compressed operations cache-conscious operations, selected operations with better asymptotic behavior Structure of Scientific Papers 19 achieve both good compression ratios and fast decompression speed to enable block-wise uncompressed operations. % 3. Say what your solution achieves Hence, we initiate work on compressed linear algebra (CLA)0 码力 | 36 页 | 1.12 MB | 1 年前3Google Python Style Guide
than 60–80 chars, it’s probably better to define it as a regular (nested) function. For common operations like multiplication, use the functions from the operator module instead of lambda functions. For eliminate some repetitive code, enforce invariants, etc. Cons: Decorators can perform arbitrary operations on a function’s arguments or return values, resulting in surprising implicit behavior. Additionally built-in types. While Python’s built-in data types such as dictionaries appear to have atomic operations, there are corner cases where they aren’t atomic (e.g. if __hash__ or __eq__ are implemented as0 码力 | 30 页 | 94.81 KB | 1 年前303 Experiments, Reproducibility, and Projects - Introduction to Scientific Writing WS2021/22
Existing algorithm or system infrastructure Main comparison point, usually with same runtime operations Beware: Avoid speedup-only results (need absolute numbers for grounding) #2 Additional Baselines0 码力 | 31 页 | 1.38 MB | 1 年前3
共 4 条
- 1