代码搜索:intersect
找到约 481 项符合「intersect」的源代码
代码结果 481
www.eeworm.com/read/198282/7942327
m examp10_1.m
A=[1,4,5,8,7,3]; B=[2,4,6,8,10]; C=[1,7,4,2,7,9,8]; % 集合定义
D=unique(C) % 求解唯一运算,可见从 C 中剔除了重复的 7
E=union(A,B) % 求出并集
F=intersect(A,B) % 求出交集
G=setdiff(intersect(union(A,B),C),union(inte
www.eeworm.com/read/197077/8032021
txt 矩形切割.txt
//矩形切割
//intersect函数构造矩形a和b的交集
//cut函数将b关于a进行切割,用切下的矩形作参数调用dummy函数
struct rect{
int x1,x2,y1,y2;
rect(){}
rect(int a,int b,int c,int d):x1(a),x2(b),y1(c),y2(d){}
};
inline rect intersect(
www.eeworm.com/read/246404/12728910
pas ac1254.pas
{$Q-,$R-}
//Assuming no two routes share the same cost
program tju1254;
const
maxn=50;
zero=1e-6;
type
point=record x,y:real;end;
var
dot:array[-1..maxn*4]of point;
u:array[1..maxn
www.eeworm.com/read/246404/12729526
pas ac1254.pas
{$Q-,$R-}
//Assuming no two routes share the same cost
program tju1254;
const
maxn=50;
zero=1e-6;
type
point=record x,y:real;end;
var
dot:array[-1..maxn*4]of point;
u:array[1..maxn
www.eeworm.com/read/332494/12752396
m findcommon.m
function c = findcommon(a,b)
%*************************************************************************
%* Copyright c 2001 The board of trustees of the Leland Stanford *
%*
www.eeworm.com/read/143505/12869907
sql 并交差运算.sql
select 学号 from 学生情况表 union all select 学号 from 成绩表
--union操作是把两个结构相同的表的结果联合输出而intersect则是取这两个结果集中的相同部分except则是取不同的部分
select 学号 from 成绩表
www.eeworm.com/read/326216/13155390
txt readme.txt
编译:mpicc intersect.c –o intersect
运行:可以使用命令 mpirun –np SIZE intersect来运行该串匹配程序,其中SIZE是所使用的处理器个数,本实例中使用了SIZE=3个处理器。
mpirun –np 3 intersect
运行结果:
输入:
please input first polygon
please input the coun
www.eeworm.com/read/489202/6296128
m supc.m
function b=supc(c,x)
[pm,pn]=size(c); b=[]; d=[0];
for i=1:pm
[q,w]=size(intersect(c(i,:),x));
if w~=0, b=cat(2,b,c(i,:)); end
end
bb=unique(b); b=setdiff(bb,0);
www.eeworm.com/read/478955/6708584
txt 矩形切割.txt
//矩形切割
//intersect函数构造矩形a和b的交集
//cut函数将b关于a进行切割,用切下的矩形作参数调用dummy函数
struct rect{
int x1,x2,y1,y2;
rect(){}
rect(int a,int b,int c,int d):x1(a),x2(b),y1(c),y2(d){}
};
inline rect intersect(
www.eeworm.com/read/264253/11324287
txt readme.txt
编译:mpicc intersect.c –o intersect
运行:可以使用命令 mpirun –np SIZE intersect来运行该串匹配程序,其中SIZE是所使用的处理器个数,本实例中使用了SIZE=3个处理器。
mpirun –np 3 intersect
运行结果:
输入:
please input first polygon
please input the coun