Pipes: How Plumbing Can Make Your C++ Code More Expressiveinputs = std::vector{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; auto results = std::vector {}; std::transform(begin(inputs), end(inputs), back_inserter(results), inputs = std::vector {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; transform-filter std::vector const results = inputs | ranges::view::transform([](int i){ return i * 2; }) | ranges::view::filter([](int = std::vector {1, 2, 3, 4, 5, 6}; std::vector const results = inputs | ranges::view::transform([](int i){cout << i << '\n'; return i * 2;}) | ranges::view::filter([](int i){return 0 码力 | 61 页 | 9.52 MB | 1 年前3
Learn Unity by Creating a 3D Multi-Level Platformer GameTable of Contents Introduction Tutorial requirements and project files Scene basics Transform Component The Floor Adding more game elements Coin rotation script Player movement ts/5/f/9/c/5f9c36c8cd3d32961bd9cd546a08cc3e/p6_1.jpg) ## Transform Component All game objects in a scene have a Component named Transform. What is a component? Think of components as reusable “Lego Z. That in Unity is called the Transform component. This is the only component that is present in all game objects. There can't be a game object without a Transform component! On the Hierarchy Window0 码力 | 60 页 | 2.24 MB | 1 年前3
Monads in Modern C++or transform. Given an instance of F and a function from A to B produce an instance of F. • A concept from category value theory Functor // aka map, fmap, etc. transform :: templatestruct Functor { template Functor transform(std::function)); }; ## transform can also be defined externally ### TechAtBloomberg.com © 2023 Bloomberg Finance a=""> 04: struct vector 05: { 06: // ... 07: template 08: vector transform(function f) 09: { 10: ... 11: } 12: } 13: // ... 14: } ### TechAtBloomberg 0 码力 | 94 页 | 4.56 MB | 1 年前3
Back To Basics: Functional Programming in C++rng) { // 1. Compute the magnitude of each number. std::vectormagnitudes; std::transform(rng, std::back_inserter(magnitudes), [(int x) { return std::abs(x); maximum ## Old: std::transform(std::begin(rng), std::end(rng), std::back_inserter(squares), [(int x) { return x * x; }]); ## New: namespace stdr = std::ranges; stdr::transform(rng, std::back_inserter(squares) rng) { // 1. Compute the magnitude of each number. auto magnitudes = rng; | stdv::transform([](int x) { return std::abs(x); }); // 2. Filter out even numbers, keep only odd numbers.0 码力 | 178 页 | 918.67 KB | 1 年前3
MuPDF 1.22.0 Documentation[0, 0, 500, 600], false); pixmap.clear(255); var device = new DrawDevice(Identity, pixmap); var transform = [2, 0, 0, 2, 0, 0]; { text = new Text(); { text.showString(font, [16, 0, 0, -16 showString(font, [0, 16, 16, 0, 15, 100], "Hello, world"); } device.fillText(text, transform, DeviceGray, [0], 1); path = new Path(); { path.moveTo(10, 10); path.lineTo(90 device.fillPath(path, false, transform, DeviceRGB, [1, 0, 0], 1); device.strokePath(path, { dashes: [5, 10], lineWidth: 3, lineCap: 'Round' }, transform, DeviceRGB, [0, 0, 0], 1); path0 码力 | 175 页 | 698.87 KB | 1 年前3
MuPDF 1.25.0 Documentationmediabox="0 0 595 842">transform="1 0 0 -1 0 842"> transform="1 0 0 -1 0 842"> 500, 600], false); pixmap.clear(255); var device = new DrawDevice(Matrix.identity, pixmap); var transform = [2, 0, 0, 2, 0, 0]; { text = new Text(); { text.showString(font, [16, 0, 0, -16 0 码力 | 259 页 | 1.11 MB | 1 年前3
MuPDF 1.23.0 Documentationmediabox="0 0 595 842">transform="1 0 0 -1 0 842"> transform="1 0 0 -1 0 842"> 500, 600], false); pixmap.clear(255); var device = new DrawDevice(Matrix.identity, pixmap); var transform = [2, 0, 0, 2, 0, 0]; { text = new Text(); { text.showString(font, [16, 0, 0, -16 0 码力 | 245 页 | 817.74 KB | 1 年前3
MuPDF 1.24.0 Documentationmediabox="0 0 595 842">transform="1 0 0 -1 0 842"> transform="1 0 0 -1 0 842"> 500, 600], false); pixmap.clear(255); var device = new DrawDevice(Matrix.identity, pixmap); var transform = [2, 0, 0, 2, 0, 0]; { text = new Text(); { text.showString(font, [16, 0, 0, -16 0 码力 | 249 页 | 830.15 KB | 1 年前3
Implementing Particle Filters with Ranges} # PARTICLE FILTER ALGORITHM UPDATE STATES AND WEIGHTS ## std::views::transform 1 template2 void filter( 3 std::vector # # PARTICLE FILTER ALGORITHM UPDATE STATES AND WEIGHTS ## std::ranges::transform 1 template& particles, 4 StateUpdateFn reweight_fn) { 6 7 auto states = particles | std::views::transform(&T::state); 8 auto weights = particles | std::views::transform(&T::weight); 9 10 ... 11 } 2 void filter( 3 std::vector & particles, 4 StateUpdateFn auto state_update_fn 0 码力 | 83 页 | 4.70 MB | 1 年前3
Distributed Ranges: A Model for Building Distributed Data Structures, Algorithms, and Views; x, vector& y) { auto z = views::zip(x, y) | views::transform([](auto element) { auto [a, b] = element; return a * b; }); return reduce(par_unseq dot_product(R&& x, R&& y) { using T = range_value_t ; auto z = views::zip(x, y) | views::transform([](auto element) { auto [a, b] = element; return a * b; }); return reduce(par_unseq, z.begin() dot_product(R&& x, R&& y) { using T = range_value_t ; auto z = views::zip(x, y) | views::transform([](auto element) { auto [a, b] = element; return a * b; }); return reduce(par_unseq, z.begin() 0 码力 | 127 页 | 2.06 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
pipestransformfilterpush_backcontainer adaptersTransform ComponentCollision DetectionRigid BodiesMulti-SceneGameManagerMonadsModern C++std::futureFunctional ProgrammingBindC++Declarative ProgrammingBuilding BlocksCompositionMuPDF安装构建APIPython绑定错误处理上下文克隆渐进式加载CAPIJavaScriptmutoolOpenGLC++ APIthird-party librariesbuilding the libraryinstallationC APIFitz ContextFitz libraryMuPDF modulesParticle FiltersRangesSTLC++23Robotics分布式范围分布式数据结构分段处理分布式算法并行计算













