搜索资源列表
cv7
- Edge(int from, int to, int cost) : from(from), to(to), cost(cost) {} friend bool operator<(const Edge& a, const Edge& b) { if (a.cost != b.cost) { return a.cost > b.cost }
A_LU
- bool lu(double *a, int *pivot, int n);矩阵的LU分解。 假设数组an*n在内存中按行优先次序存放,此函数使用高斯列选主元消去法,将其就地进行LU分解。pivot为输出函数.pivot[0,n)中存放主元的位置排列. 函数成功时返回false,否则返回true. bool guass(double const *lu, int const *p, double *b, int n) 求线性方程组的解。 假设矩阵lum*n为某个矩阵a
A_QR
- void qr(double *a, double *d, int n) 矩阵的QR分解 假设数组an*n在内存中按行优先次序存放,此函数使用HouseHolder变换将其就地进行QR分解。 d为输出参数,d[0,n)存放QR分解的上三角矩阵对角线元素。 bool householder(double const *qr, double const *d, double *b, int n) 求线性代数方程组的解。 假设矩阵qrn*n为某个矩阵an*n的QR分解,在内
spline_VB
- 三次样条函数 Type coordinateX Y x As Double y As Double End Type Public Const dotSize = 25 Public Const H = 4000 Public Const W = 4-Cubic Spline
CONST-Program
- Const Programs computer numerial methods progam in c
Nelder-Mead
- Nelder Mead simplex algorithm for minimizing N-dimension const function Copyright (C) 2008 Colin Caprani - www.colincaprani.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General P
Simpson
- 辛普森(Simpson)公式是牛顿-科特斯公式当n=2时的情形,也称为三点公式。辛普森公式是利用区间二等分的三个点来进行积分插值。其科特斯系数分别为1/6,4/6,1/6.-The paper points out the defects of the const pressure wave velocity method and do some improvements on it: rebuilding the expressions of the pressure wave velocit
new
- 二维坐标系上有一些炸弹,每个炸弹有x,y坐标和爆炸后波及的范围r,这个r指的是跟自己曼哈顿距离r以内的点 就类似于扫雷那样,一个炸弹爆炸可能引起一片一片的炸弹炸出去 然后有一些询问,问点燃某个炸弹后会有多少个炸弹爆炸 已经炸过的就不算了 -#include <iostream> #include <vector> #include <algorithm> #include <cstdio>
3-8
- 编写一个函数int squeeze(char s1[], const char s2[]),它从字符串s1中删除所有在s2里出现的字符,函数返回删除的字符个数-Write a function that removes all the characters that appear in the S2 the string S1