代码搜索结果
找到约 10,000 项符合
5 的代码
5-5-2.m
%初始化正向权值w和反向权值v
w=rands(18,2)/2+0.5;
v=rands(5,18)/2+0.5;
%输入向量P和目标向量T
P=[0 0;0.5 0.5;0 0.5;1 3;0.5 1;1 0.5];
T=[1 0 0 0 0;1 0 0 0 0;0 1 0 0 0;0 0 1 0 0;0 0 0 1 0;0 0 0 0 1];
T_out=T;
%设定学习步数为1
ex5_5.dsp
# Microsoft Developer Studio Project File - Name="Ex5_5" - Package Owner=
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Con
ex5_5.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# 警告: 不能编辑或删除该工作区文件!
###############################################################################
Project: "Ex5_5"=".\Ex5_5.dsp
ex5_5.cpp
//【例5.5】矩阵运算:矩阵转置与矩阵相乘。
#include
#include
using namespace std;
void inverse(int [3][6], int [6][3]);
void multi(int [6][3], int [3][4], int [6][4]);
void output(int [6][4]
c5-5.cpp
#include
using namespace std;
int main()
{ int i,j,row=0,colum=0,max;
int a[3][4]={{5,12,23,56},{19,28,37,46},{-12,-34,6,8}};
max=a[0][0];
for (i=0;i
bo5-5.cpp
// bo<mark>5</mark>-<mark>5</mark>.cpp 广义表的头尾链表存储(存储结构由c<mark>5</mark>-<mark>5</mark>.h定义)的基本操作(11个),包括算法<mark>5</mark>.<mark>5</mark>,<mark>5</mark>.6,<mark>5</mark>.7
#include"func<mark>5</mark>-1.cpp" // 算法<mark>5</mark>.8
void InitGList(GList &L)
{ // 创建空的广义表L
L=NULL;
}
void CreateGList(GList &L,SString S) / ...
c5-5.h
// c5-5.h 广义表的头尾链表存储表示
enum ElemTag{ATOM,LIST}; // ATOM==0:原子,LIST==1:子表
typedef struct GLNode
{
ElemTag tag; // 公共部分,用于区分原子结点和表结点
union // 原子结点和表结点的联合部分
{
AtomType atom; // a
main5-5.cpp
// main5-5.cpp 检验bo5-5.cpp的主程序
#include"c1.h"
typedef char AtomType; // 定义原子类型为字符型
#include"c5-5.h" // 定义广义表的头尾链表存储
#include"bo5-5.cpp"
void visit(AtomType e)
{
printf("%c ", e);