自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 C#使用MathNet的矩阵与向量运算示例

C#使用MathNet的矩阵与向量运算示例

2022-06-01 12:04:33 1427

原创 学习的老赵的C#飞行棋例子代码 CSharp

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;/* * 游戏规则: * 1、如果玩家A踩到了玩家B,玩家B退6格; * 2、踩到了地雷,退6格; * 3、踩到了时空隧道,进10格; * 4、踩到了幸运轮盘,1-交换位置,2-使对方退6格; * 5、踩到了暂停,暂停一回合; * 6、踩到了方块,什么都不干。

2021-05-14 10:21:02 745

翻译 以32位Win7操作系统为例的Python集成开发环境Anaconda的安装

以32位Win7操作系统为例的Python集成开发环境Anaconda的安装https://www.anaconda.com/products/individual

2020-12-21 11:00:55 817

原创 Python3调用Fortran77 (2)

add.for integer function add(x, y) implicit none integer x, y add = x + y return end function addtest2.py# -*- coding: utf-8 -*-import addx = 5y = 7z...

2019-08-01 09:42:07 400

原创 Python3调用Fortran77 (1)

subroutine hello(x) implicit none integer x write (*, *) "Hello frome fortran.", x end subroutine hello

2019-08-01 09:04:35 872 5

翻译 GPU高性能编程_CUDA实战_page29

#include <stdio.h>#define N 10__global__ void add(int* a, int* b, int* c){ int tid = blockIdx.x; // 计算位于这个索引处的数据 if (tid < N) c[tid] = a[tid] + b[tid];}int main(void)...

2019-07-13 15:33:49 185

翻译 GPU高性能编程_CUDA实战_page27

#include <iostream>#define N 10void add(int* a, int* b, int* c){ int tid = 0; while (tid < N) { c[tid] = a[tid] + b[tid]; tid += 1; }}int main(void){ ...

2019-07-13 15:33:05 146

翻译 GPU高性能编程_CUDA实战_page18

#include <iostream>__global__ void add(int a, int b, int* c){ *c = a + b;}int main(void){ int c; int* dev_c; cudaError_t(cudaMalloc((void**)& dev_c, sizeof(int))); ...

2019-07-13 15:31:24 143

翻译 GPU高性能编程_CUDA实战_page17

#include <iostream>__global__ void kernel(void){}int main(void){ kernel << <1, 1 >> > (); printf("Hello, World!\n"); return 0;}

2019-07-13 15:26:27 171

原创 c++调用Fortran 77

print_hi.for subroutine print_hi(n1, n2) bind(C) implicit none double precision n1(5) integer n2 write(*, *) &quot;Double precision array from Fortran: &quot;, n1 ...

2019-02-28 21:59:38 878

翻译 全国计算机等级考试二级教程——Python语言程序设计(2018年版)习题代码:第3章

全国计算机等级考试二级教程——Python语言程序设计(2018年版)习题代码:第3章二、填空题10. 用一行print()语句实现一个显示于终端的单行进度条。print('\r{:.2%}'.format(p), end='')三、编程题1. 获得用户输入的一个整数,输出该整数百位及以上的数字。#!/usr/bin/env python3# -*- coding: utf-8 ...

2019-02-27 17:49:29 2433

翻译 全国计算机等级考试二级教程——Python语言程序设计(2018年版)习题代码:第2章

全国计算机等级考试二级教程——Python语言程序设计(2018年版)习题代码:第2章第2章 Python语言基本语法元素三、编程题获得用户输入的一个整数N,计算并输出N的32次方。#!/usr/bin/env python3# -*- coding: utf-8 -*-n = eval(input(&amp;amp;quot;请输入一个整数N:&amp;amp;quot;))sum = 0for i in range(n):...

2019-02-25 20:37:59 8001

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除