积分充值
 首页
前端开发
AngularDartElectronFlutterHTML/CSSJavaScriptReactSvelteTypeScriptVue.js构建工具
后端开发
.NetC#C++C语言DenoffmpegGoIdrisJavaJuliaKotlinLeanMakefilenimNode.jsPascalPHPPythonRISC-VRubyRustSwiftUML其它语言区块链开发测试微服务敏捷开发架构设计汇编语言
数据库
Apache DorisApache HBaseCassandraClickHouseFirebirdGreenplumMongoDBMySQLPieCloudDBPostgreSQLRedisSQLSQLiteTiDBVitess数据库中间件数据库工具数据库设计
系统运维
AndroidDevOpshttpdJenkinsLinuxPrometheusTraefikZabbix存储网络与安全
云计算&大数据
Apache APISIXApache FlinkApache KarafApache KyuubiApache OzonedaprDockerHadoopHarborIstioKubernetesOpenShiftPandasrancherRocketMQServerlessService MeshVirtualBoxVMWare云原生CNCF机器学习边缘计算
综合其他
BlenderGIMPKiCadKritaWeblate产品与服务人工智能亿图数据可视化版本控制笔试面试
文库资料
前端
AngularAnt DesignBabelBootstrapChart.jsCSS3EchartsElectronHighchartsHTML/CSSHTML5JavaScriptJerryScriptJestReactSassTypeScriptVue前端工具小程序
后端
.NETApacheC/C++C#CMakeCrystalDartDenoDjangoDubboErlangFastifyFlaskGinGoGoFrameGuzzleIrisJavaJuliaLispLLVMLuaMatplotlibMicronautnimNode.jsPerlPHPPythonQtRPCRubyRustR语言ScalaShellVlangwasmYewZephirZig算法
移动端
AndroidAPP工具FlutterFramework7HarmonyHippyIoniciOSkotlinNativeObject-CPWAReactSwiftuni-appWeex
数据库
ApacheArangoDBCassandraClickHouseCouchDBCrateDBDB2DocumentDBDorisDragonflyDBEdgeDBetcdFirebirdGaussDBGraphGreenPlumHStreamDBHugeGraphimmudbIndexedDBInfluxDBIoTDBKey-ValueKitDBLevelDBM3DBMatrixOneMilvusMongoDBMySQLNavicatNebulaNewSQLNoSQLOceanBaseOpenTSDBOracleOrientDBPostgreSQLPrestoDBQuestDBRedisRocksDBSequoiaDBServerSkytableSQLSQLiteTiDBTiKVTimescaleDBYugabyteDB关系型数据库数据库数据库ORM数据库中间件数据库工具时序数据库
云计算&大数据
ActiveMQAerakiAgentAlluxioAntreaApacheApache APISIXAPISIXBFEBitBookKeeperChaosChoerodonCiliumCloudStackConsulDaprDataEaseDC/OSDockerDrillDruidElasticJobElasticSearchEnvoyErdaFlinkFluentGrafanaHadoopHarborHelmHudiInLongKafkaKnativeKongKubeCubeKubeEdgeKubeflowKubeOperatorKubernetesKubeSphereKubeVelaKumaKylinLibcloudLinkerdLonghornMeiliSearchMeshNacosNATSOKDOpenOpenEBSOpenKruiseOpenPitrixOpenSearchOpenStackOpenTracingOzonePaddlePaddlePolicyPulsarPyTorchRainbondRancherRediSearchScikit-learnServerlessShardingSphereShenYuSparkStormSupersetXuperChainZadig云原生CNCF人工智能区块链数据挖掘机器学习深度学习算法工程边缘计算
UI&美工&设计
BlenderKritaSketchUI设计
网络&系统&运维
AnsibleApacheAWKCeleryCephCI/CDCurveDevOpsGoCDHAProxyIstioJenkinsJumpServerLinuxMacNginxOpenRestyPrometheusServertraefikTrafficUnixWindowsZabbixZipkin安全防护系统内核网络运维监控
综合其它
文章资讯
 上传文档  发布文章  登录账户
IT文库
  • 综合
  • 文档
  • 文章

无数据

分类

全部后端开发(381)Python(164)Julia(87)Jupyter(62)Celery(45)C++(35)Django(29)nim(28)PHP(25)Falcon(20)

语言

全部英语(318)中文(简体)(48)中文(繁体)(13)中文(简体)(1)

格式

全部PDF文档 PDF(276)其他文档 其他(98)PPT文档 PPT(6)DOC文档 DOC(1)
 
本次搜索耗时 0.021 秒,为您找到相关结果约 381 个.
  • 全部
  • 后端开发
  • Python
  • Julia
  • Jupyter
  • Celery
  • C++
  • Django
  • nim
  • PHP
  • Falcon
  • 全部
  • 英语
  • 中文(简体)
  • 中文(繁体)
  • 中文(简体)
  • 全部
  • PDF文档 PDF
  • 其他文档 其他
  • PPT文档 PPT
  • DOC文档 DOC
  • 默认排序
  • 最新排序
  • 页数排序
  • 大小排序
  • 全部时间
  • 最近一天
  • 最近一周
  • 最近一个月
  • 最近三个月
  • 最近半年
  • 最近一年
  • ppt文档 C++高性能并行编程与优化 - 课件 - 13 C++ STL 容器全解之 vector

    vector 容器: resize • 除了可以在构造函数中指定数组的大小,还可以 之后再通过 resize 函数设置大小。 • 这在无法一开始就指定大小的情况下非常方便。 • vector a(4); • 等价于: • vector a; • a.resize(4); • void resize(size_t n); vector 容器: resize • 当然, 当然, resize 也有一个接受第二参数的重载 ,他会用这个参数的值填充所有新建的元素。 • vector a(4, 233); • 等价于: • vector a; • a.resize(4, 233); • void resize(size_t n, int const &val); vector 容器: resize • 调用 resize(n) 的时候,如果数组里面不足 个元素,前 m 个元素会保持不变。 • vector a = {1, 2}; • a.resize(4); • 等价于: • vector a = {1, 2, 0, 0}; • void resize(size_t n); vector 容器: resize • 调用 resize(n) 的时候,如果数组已有超过 n 个元素,假设是 m 个,则他会删除多出来的 m
    0 码力 | 90 页 | 4.93 MB | 1 年前
    3
  • pdf文档 MACRO-FREE TESTING WITH C++20

    std::vector v(5); expect((5_ul == std::size(v)) >> fatal); should("resize bigger") = [v] { // section (2.1) mut(v).resize(10); expect(10_ul == std::size(v)); }; }; 5 / 14SECTIONS - SECTIONS std::vector v(5); expect((5_ul == std::size(v)) >> fatal); should("resize bigger") = [v] { // section (2.1) mut(v).resize(10); expect(10_ul == std::size(v)); }; expect((5_ul == std::size(v) fatal); should("resize bigger") = [v] { // section (2.1) mut(v).resize(10); expect(10_ul == std::size(v)); }; expect((5_ul == std::size(v) >> fatal); // (3) should("resize smaller") = [v]
    0 码力 | 53 页 | 1.98 MB | 6 月前
    3
  • ppt文档 C++23: An Overview of Almost All New and Updated Features

    std::generator  basic_string(_view)::contains()  Construct string(_view) From nullptr  basic_string::resize_and_overwrite()  Monadic Operations for std::optional  Stacktrace Library  Changes to Ranges std::generator  basic_string(_view)::contains()  Construct string(_view) From nullptr  basic_string::resize_and_overwrite()  Monadic Operations for std::optional  Stacktrace Library  Changes to Ranges std::generator  basic_string(_view)::contains()  Construct string(_view) From nullptr  basic_string::resize_and_overwrite()  Monadic Operations for std::optional  Stacktrace Library  Changes to Ranges
    0 码力 | 105 页 | 759.96 KB | 6 月前
    3
  • pdf文档 Cache-Friendly Design in Robot Path Planning

    void reset(G&& graph, VertexID s, VertexID g) 16 { 17 // Clear visited set 18 visited_.resize(graph.vertex_count()); 19 visited_.assign(graph.vertex_count(), graph.vertex_count()); 20 void reset(G&& graph, VertexID s, VertexID g) 16 { 17 // Clear visited set 18 visited_.resize(graph.vertex_count()); 19 visited_.assign(graph.vertex_count(), graph.vertex_count()); 20 while (!queue_.empty()) { queue_.pop(); } 23 // Set current goal 24 goal = g; 25 visited_.resize(graph.vertex_count()); visited_.assign(graph.vertex_count(), graph.vertex_count()); private:
    0 码力 | 216 页 | 10.68 MB | 6 月前
    3
  • pdf文档 Better Code: Exploring Validity

    size() == us.size() public: PairSequence(const PairSequence &); void push_back(pair); void resize(size_t x); ~PairSequence(); PairSequence& operator=(const PairSequence&); }; Unless a function’s size() == us.size() public: PairSequence(const PairSequence &); void push_back(pair); void resize(size_t x); ~PairSequence(); PairSequence& operator=(const PairSequence&); }; Unless a function’s size() == us.size() public: PairSequence(const PairSequence &); void push_back(pair); void resize(size_t x); ~PairSequence(); PairSequence& operator=(const PairSequence&); }; Unless a function’s
    0 码力 | 117 页 | 6.03 MB | 6 月前
    3
  • pdf文档 Leveraging a Functional Approach for More Testable and Maintainable ROS 2 Code

    new_end = std::remove_if(input.begin(), input.end() , less_than_5); // input = {6, 9, 12, 9, 12} input.resize(std::distance(input.begin(), new_end)); // input = {6, 9, 12} const auto result = std::accumulate(input new_end = std::remove_if(input.begin(), input.end() , less_than_5); // input = {6, 9, 12, 9, 12} input.resize(std::distance(input.begin(), new_end)); // input = {6, 9, 12} const auto result = std::accumulate(input new_end = std::remove_if(input.begin(), input.end() , less_than_5); // input = {6, 9, 12, 9, 12} input.resize(std::distance(input.begin(), new_end)); // input = {6, 9, 12} const auto result = std::accumulate(input
    0 码力 | 200 页 | 1.77 MB | 6 月前
    3
  • ppt文档 C++高性能并行编程与优化 - 课件 - 15 C++ 系列课:字符与字符串

    string(“hello”) + string(“world”) == string(“helloworld”) • string 符合 vector 的接口,例如 begin/end/size/resize…… • string 有一系列成员函数,例如 find/replace/substr…… • string 可以通过 s.c_str() 重新转换回古板的 const char * 。 replace(pos, len, str) : • 如果 pos ≥ s.size() 则抛出 out_of_range 异常。 • 如果 pos + len > s.size() 则会扩容字符串 s.resize(pos + len) 。 append 追加一段字符串 • string s = “hello”; • s += “world”; • 最后 s 会得到 “ helloworld” 。 为什么是这样?小彭老师也无从得知,可能是历史原因。 • 猜想是因为 const char * 指针可以自身进行 += 操作来去除开头的 任意部分,所以要让 len 控制尾部的部分;而 string 类型可以自 身进行 resize 操作来去除尾部的任意部分,所以用 len 控制开头 的部分。 • 为了一点点破性能,弄这么多重载,不过这些都已经无所谓了,因 为 C++17 中有更为直观的 string_view ,要切片只需
    0 码力 | 162 页 | 40.20 MB | 1 年前
    3
  • pdf文档 Contracts for C++

    https://timur.audio // vector.h T& operator[] (size_t i); // can't put assert macro here :( void resize(size_t n); // can't put assert macro here :( P2900 pre / post can go on declarations79 Copyright can't put assert macro here :( void resize(size_t n); // can't put assert macro here :( // vector.h T& operator[] (size_t i) pre (i < size()); void resize(size_t n) post (size() == n); can't put assert macro here :( void resize(size_t n); // can't put assert macro here :( // vector.h T& operator[] (size_t i) pre (i < size()); void resize(size_t n) post (size() == n);
    0 码力 | 181 页 | 4.44 MB | 6 月前
    3
  • pdf文档 Design patterns for error handling in C++ programs using parallel algorithms and executors

    status & SOLVE_FAILED) { useSlowerSolver = true; } else if(result.status & OUT_OF_MEM) { pool.resize(result.bytesNeeded); retry = true; }Parallel domain decomposition Reduce over error info • Each status & SOLVE_FAILED) { useSlowerSolver = true; } else if(result.status & OUT_OF_MEM) { pool.resize(result.bytesNeeded); retry = true; }Parallel domain decomposition Reduce over error info • Each status & SOLVE_FAILED) { useSlowerSolver = true; } else if(result.status & OUT_OF_MEM) { pool.resize(result.bytesNeeded); retry = true; }Parallel domain decomposition Reduce over error info • Each
    0 码力 | 32 页 | 883.27 KB | 6 月前
    3
  • pdf文档 MoonBit月兔编程语言 现代编程思想 第十课 哈希表与闭包

    17. } } } } 18. if map.size.to_double() / map.length.to_double() >= load { // 根据负载重新分配 19. resize() 20. } 21. } 8 哈希表:直接寻址 虽然不存在数组⽤尽的问题,但仍需要扩容重新分配 负载:键值对数量与数组⻓度的⽐值 当负载上升,哈希/索引冲突变多,链表增⻓,增查改删操作时间增⻓ // 确认负载是否需要扩容 11. if map.size.to_double() / map.length.to_double() >= 0.75 { 12. resize(map) // fn resize(map) -> Unit 13. } 14. } 15 哈希表:开放寻址 删除操作需考虑不变性:键值对应当存放位置与实际存放位置之间不存在空位 0, 5 1 3 initial_length, 8. } 9. fn initialize() { ... } // 需要对数组进⾏挨个初始化 10. initialize() 11. 12. fn resize() { ... } 13. 14. fn get(key : K) -> Option[V] { ... } 15. fn put(key : K, value : V) -> Unit
    0 码力 | 27 页 | 448.83 KB | 1 年前
    3
共 381 条
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 39
前往
页
相关搜索词
C++高性性能高性能并行编程优化课件13MACROFREETESTINGWITH2023AnOverviewofAlmostAllNewandUpdatedFeaturesCacheFriendlyDesigninRobotPathPlanningBetterCodeExploringValidityLeveragingFunctionalApproachforMoreTestableMaintainableROS15ContractspatternserrorhandlingprogramsusingparallelalgorithmsexecutorsMoonBit语言编程语言现代思想第十十课第十课哈希表与闭包
IT文库
关于我们 文库协议 联系我们 意见反馈 免责声明
本站文档数据由用户上传或本站整理自互联网,不以营利为目的,供所有人免费下载和学习使用。如侵犯您的权益,请联系我们进行删除。
IT文库 ©1024 - 2025 | 站点地图
Powered By MOREDOC AI v3.3.0-beta.70
  • 关注我们的公众号【刻舟求荐】,给您不一样的精彩
    关注我们的公众号【刻舟求荐】,给您不一样的精彩