代码搜索:intersect
找到约 481 项符合「intersect」的源代码
代码结果 481
www.eeworm.com/read/417309/10995917
txt 02-28.txt
>> A = [1 2 3 6];
>> B = [1 2 3 4 6 10 20];
>> [c, ia, ib] = intersect(A, B)
>> A = magic(5);
>> B = magic(4);
>> [c, i] = setdiff(A(:), B(:));
>> c'
>> i'
www.eeworm.com/read/246404/12728897
pas ac1245.pas
program tju1245;
const
maxn=25;
maxv=maxn*4+2;
fail='Poor dropship crashed.';
var
cx,cy:array[1..maxn]of longint;
x,y:array[1..maxv]of longint;
dist:array[1..maxv]of real;
visit
www.eeworm.com/read/246404/12729495
pas ac1245.pas
program tju1245;
const
maxn=25;
maxv=maxn*4+2;
fail='Poor dropship crashed.';
var
cx,cy:array[1..maxn]of longint;
x,y:array[1..maxv]of longint;
dist:array[1..maxv]of real;
visit
www.eeworm.com/read/144514/12786828
m setoperation.m
%set operation
clear
clc
a=1:2:10
b=1:10
c=setdiff(b,a)
d=1:5
e=union(c,d)
f=intersect(a,e)
www.eeworm.com/read/120251/6076251
cpp ogreoctreescenequery.cpp
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.og
www.eeworm.com/read/477968/6726827
asv ind.asv
function c=ind(a,x)%求取等价类
tic;
[arow,acol]=size(a);
for k=1:acol%取出a里对应的列形成新的矩阵,以后的操作也是相对于新矩阵的
z(:,k)=x(:,a(1,k));
end
%clear a;
x=z;
[p,q]=size(x);%获得矩阵的行数和列数
c{1}='*';
% for m=1:p
%
www.eeworm.com/read/439651/7704399
m set01.m
x = [1 2 3 4 5 6];
y = [1 1 5 5 9 9 9];
union_result = union(x, y) % 羛栋
intersect_result = intersect(x, y) % ユ栋
setdiff_result = setdiff(x, y) % 畉栋
setxor_result = setxor(x, y) % XOR 笲衡
setun
www.eeworm.com/read/188087/8573648
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/429840/8786378
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/382131/9046991
h box.h
/* ColDet - C++ 3D Collision Detection Library
* Copyright (C) 2000 Amir Geva
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Li