Distributed Ranges: A Model for Building Distributed Data Structures, Algorithms, and Viewsstd::ranges::transform_view(range, add_two); Ranges LibraryRanges Library - Have begin() and end() - Often have size() - Random access: access any element at random in constant time - Contiguous: a contiguous block algorithm(1.0f, 3, data); // Send data to proc. 1 MPI_Send(values.data(), values.size(), MPI_FLOAT, 1, 0, MPI_COMM_WORLD); // Data is now sent. Process 0 Process 1 algorithm(1.0f, 3, data); // Send data to proc. 1 MPI_Send(values.data(), values.size(), MPI_FLOAT, 1, 0, MPI_COMM_WORLD); // Data is now sent. // Allocate space for0 码力 | 127 页 | 2.06 MB | 6 月前3
C++ Memory Model: from C++11 to C++23Memory Model C++11 – C++23About Me: alex.dathskovsky@speedata.io www.linkedin.com/in/alexdathskovsky https://www.cppnext.comAlex Dathskovsky | alex.dathskovsky@speedata.io | www.linkedin.com/in/a0 码力 | 112 页 | 5.17 MB | 6 月前3
Back to Basics CastingcomAn Introduction struct region { int size; }; void init_region(char* backing_buffer, size_t buffer_size ) { if(buffer_size < current_region.size) { LOG(“Buffer size too small”); return; } //other init }An Introduction struct region { int size; }; void init_region(char* backing_buffer, size_t buffer_size ) { if(buffer_size < current_region.size) { LOG(“Buffer size too small”); return; } //other init Introduction struct region { int size; }; void init_region(char* backing_buffer, size_t buffer_size ) { if(buffer_size < (size_t)current_region.size) { LOG(“Buffer size too small”); return; } //other0 码力 | 117 页 | 1.57 MB | 6 月前3
peewee Documentation Release 3.6.0with git Running tests Optional dependencies Skip Compilation of SQLite Extensions Quickstart Model Definition Storing data Retrieving Data Closing the database Working with existing databases What Database Errors Logging queries Adding a new Database Driver Models and Fields Fields Creating model tables Model options and table metadata Indexes and Constraints Non-integer Primary Keys, Composite Keys Relationships and Joins Model definitions Performing simple joins Joining multiple tables Selecting from multiple sources Subqueries Multiple foreign-keys to the same Model Joining on arbitrary fields0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.6.0document presents a brief, high-level overview of Peewee’s primary features. This guide will cover: • Model Definition 4 Chapter 1. Contents: peewee Documentation, Release 3.6.0 • Storing data • Retrieving 1.2.1 Model Definition Model classes, fields and model instances all map to database concepts: Object Corresponds to. . . Model class Database table Field instance Column on a table Model instance typically best to begin with your data model, by defining one or more Model classes: from peewee import * db = SqliteDatabase('people.db') class Person(Model): name = CharField() birthday = DateField()0 码力 | 302 页 | 1.02 MB | 1 年前3
Django 3.0.x DocumentationDjango documentation contents Getting started Django at a glance Design your model Install it Enjoy the free API A dynamic admin interface: it’s not just scaffolding – it’s the whole house Design your Multiple databases Tablespaces Database access optimization Database instrumentation Examples of model relationship API usage Handling HTTP requests URL dispatcher Writing views View decorators File files Adding migrations to apps Reversing migrations Historical models Considerations when removing model fields Data Migrations Squashing migrations Serializing values Supporting multiple Django versions0 码力 | 3085 页 | 2.95 MB | 1 年前3
peewee Documentation Release 3.0.0Contents: Installing and Testing Installing with git Running tests Optional dependencies Quickstart Model Definition Storing data Retrieving Data Closing the database Working with existing databases What example Diving into the code More examples Contributing Patches Bugs Questions Query Examples Model Definitions Schema Creation Basic Exercises Joins and Subqueries Modifying Data Aggregation Recursion Database Errors Logging queries Adding a new Database Driver Models and Fields Fields Creating model tables Model options and table metadata Indexes and Constraints Non-integer Primary Keys, Composite Keys0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation
Release 3.5.0Installing with git Running tests Optional dependencies Skip Compilation of SQLite Extensions Quickstart Model Definition Storing data Retrieving Data Closing the database Working with existing databases What Database Errors Logging queries Adding a new Database Driver Models and Fields Fields Creating model tables Model options and table metadata Indexes and Constraints Non-integer Primary Keys, Composite Keys Helper Security and SQL Injection API Documentation Database Query-builder Fields Schema Manager Model Query-builder Internals Constants and Helpers SQLite Extensions Getting started APIs Additional0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0Installing with git Running tests Optional dependencies Skip Compilation of SQLite Extensions Quickstart Model Definition Storing data Retrieving Data Closing the database Working with existing databases What example Diving into the code More examples Contributing Patches Bugs Questions Query Examples Model Definitions Schema Creation Basic Exercises Joins and Subqueries Modifying Data Aggregation Recursion queries Adding a new Database Driver Models and Fields Fields Field-naming conflicts Creating model tables Model options and table metadata Indexes and Constraints Non-integer Primary Keys, Composite Keys0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation
Release 3.5.0document presents a brief, high-level overview of Peewee’s primary features. This guide will cover: • Model Definition 4 Chapter 1. Contents: peewee Documentation, Release 3.5.0 • Storing data • Retrieving 1.2.1 Model Definition Model classes, fields and model instances all map to database concepts: Object Corresponds to. . . Model class Database table Field instance Column on a table Model instance typically best to begin with your data model, by defining one or more Model classes: from peewee import * db = SqliteDatabase('people.db') class Person(Model): name = CharField() birthday = DateField()0 码力 | 282 页 | 1.02 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













