网站首页 站内搜索

搜索结果

查询Tags标签: Array,共有 1590条记录
  • numpy作业一

    import numpy as np c= np.arange(1,13).reshape(6,2) carray([[ 1, 2],[ 3, 4],[ 5, 6],[ 7, 8],[ 9, 10],[11, 12]])np.vsplit(c,3)[array([[1, 2],[3, 4]]),array([[5, 6],[7, 8]]),array([[ 9, 10],[11, 12]])]d =c.T darray([[ 1, 3, 5, 7, 9, 11],[ 2, 4, …

    2021/9/3 23:09:25 人评论 次浏览
  • 2021-09-03

    numpy学习笔记和心得 numpy的运算机制:这个概念叫做广播机制(broadcasting),它非常有用。 1. numpy基本加减和取行操作 2. 矩阵删除、插入、尾部添加操作(delete,insert,append) 3. delete()函数 4. insert()函数 5. append()函数 6. np.random.choice(a, size, repla…

    2021/9/3 23:06:54 人评论 次浏览
  • 2021-09-03

    numpy学习笔记和心得 numpy的运算机制:这个概念叫做广播机制(broadcasting),它非常有用。 1. numpy基本加减和取行操作 2. 矩阵删除、插入、尾部添加操作(delete,insert,append) 3. delete()函数 4. insert()函数 5. append()函数 6. np.random.choice(a, size, repla…

    2021/9/3 23:06:54 人评论 次浏览
  • python中numpy的使用 学习过程

    import numpy as np data = np.array([1,2,3]) print(data)[1 2 3]data.max()3np.ones(3)array([1., 1., 1.])np.zeros(3)array([0., 0., 0.])np.random.random(3)array([0.57604932, 0.97820094, 0.34434803])data1 = np.array([1,2]) ones = np.ones(2) data1 + onesarr…

    2021/9/3 22:08:44 人评论 次浏览
  • python中numpy的使用 学习过程

    import numpy as np data = np.array([1,2,3]) print(data)[1 2 3]data.max()3np.ones(3)array([1., 1., 1.])np.zeros(3)array([0., 0., 0.])np.random.random(3)array([0.57604932, 0.97820094, 0.34434803])data1 = np.array([1,2]) ones = np.ones(2) data1 + onesarr…

    2021/9/3 22:08:44 人评论 次浏览
  • C# pointer to array

    void arrDemo8() { int* p;p = returnArr();cout << typeid(p).name() << endl;for (int i = 0; i < 10; i++){cout << *(p+i) << endl;} }int* returnArr() {static int arr[10];for (int i = 0; i < 10; i++){arr[i] = i * i;}return ar…

    2021/9/3 22:07:12 人评论 次浏览
  • C# pointer to array

    void arrDemo8() { int* p;p = returnArr();cout << typeid(p).name() << endl;for (int i = 0; i < 10; i++){cout << *(p+i) << endl;} }int* returnArr() {static int arr[10];for (int i = 0; i < 10; i++){arr[i] = i * i;}return ar…

    2021/9/3 22:07:12 人评论 次浏览
  • Effective C++ 笔记 —— Item 16: Use the same form in corresponding uses of new and delete.

    When you employ a new expression (i.e., dynamic creation of an object via a use of new), two things happen. First, memory is allocated (via a function named operator new — see Items 49 and 51). Second, one or more constructors are called for that mem…

    2021/9/3 9:35:46 人评论 次浏览
  • Effective C++ 笔记 —— Item 16: Use the same form in corresponding uses of new and delete.

    When you employ a new expression (i.e., dynamic creation of an object via a use of new), two things happen. First, memory is allocated (via a function named operator new — see Items 49 and 51). Second, one or more constructors are called for that mem…

    2021/9/3 9:35:46 人评论 次浏览
  • 数据结构与算法7 — 动态数组

    尊重作者劳动成果,转载请注明出处,谢谢! 1. array.h#ifndef array_H #define array_H#include <stddef.h> #include <sys/types.h> #include "delegate.h"//动态数组,能够动态的进行扩容,支持多种数据类型,包括:int、struct等 typedef struc…

    2021/9/2 14:06:19 人评论 次浏览
  • 数据结构与算法7 — 动态数组

    尊重作者劳动成果,转载请注明出处,谢谢! 1. array.h#ifndef array_H #define array_H#include <stddef.h> #include <sys/types.h> #include "delegate.h"//动态数组,能够动态的进行扩容,支持多种数据类型,包括:int、struct等 typedef struc…

    2021/9/2 14:06:19 人评论 次浏览
  • [AGC026D]Histogram Coloring

    \[\color{red}{\text{校长者,真神人也,左马桶,右永神,会执利笔破邪炁,何人当之?}} \\ \begin{array}{|} \hline \color{pink}{\text{The principal is really a god}} \\ \color{pink}{\text{with a closestool on the left and Yongshen on the right}} \\ \color{…

    2021/9/1 23:09:26 人评论 次浏览
  • [AGC026D]Histogram Coloring

    \[\color{red}{\text{校长者,真神人也,左马桶,右永神,会执利笔破邪炁,何人当之?}} \\ \begin{array}{|} \hline \color{pink}{\text{The principal is really a god}} \\ \color{pink}{\text{with a closestool on the left and Yongshen on the right}} \\ \color{…

    2021/9/1 23:09:26 人评论 次浏览
  • [ Perl ] 对文本文件进行行列翻转

    https://www.cnblogs.com/yeungchie/ code #!/usr/bin/env perl #----------------------------- # Program : reverseRowCol.pl # Language : Perl # Author : YEUNGCHIE # Version : 2021.09.01 #----------------------------- use v5.10; use strict; use warning…

    2021/9/1 1:36:16 人评论 次浏览
  • [ Perl ] 对文本文件进行行列翻转

    https://www.cnblogs.com/yeungchie/ code #!/usr/bin/env perl #----------------------------- # Program : reverseRowCol.pl # Language : Perl # Author : YEUNGCHIE # Version : 2021.09.01 #----------------------------- use v5.10; use strict; use warning…

    2021/9/1 1:36:16 人评论 次浏览
扫一扫关注最新编程教程