代码搜索:sparse

找到约 3,324 项符合「sparse」的源代码

代码结果 3,324
www.eeworm.com/read/132706/14078014

m grad_ccv.m

function [df, dg] = grad_ccv(x, baseMVA, bus, gen, gencost, branch, Ybus, Yf, Yt, V, ref, pv, pq, mpopt) %GRAD_CCV Evaluates gradients of objective function & constraints for OPF. % [df, dg] = gr
www.eeworm.com/read/205013/15329861

c prepare.c

/* ** 2005 May 25 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness fo
www.eeworm.com/read/201342/15409902

txt 06-20.txt

例6-20 issparse函数的使用。 解:在命令窗口中输入如下命令,并按Enter键确认。 >> v=[1 2 5 9 4 1 2 6]; >> S=diag(v,2) %生成矩阵S S = 0 0 1 0 0 0 0 0 0 0 0 0 0
www.eeworm.com/read/200429/15433555

m components.m

function [ci sizes] = components(A,varargin) % COMPONENTS Compute the connected components of a graph. % % [ci sizes] = components(A) returns the component index vector (ci) and % the size of each
www.eeworm.com/read/103618/15727615

m exm051523_1.m

%exm051523_1.m n=5; SM1=sparse(1:n,1:n,-2*ones(1,n),n,n,n); SM2=sparse(2:n,1:n-1,ones(1,n-1),n,n,n-1); S1=SM1+SM2+SM2' e=ones(n,1); S2=spdiags([e,-2*e,e],[-1,0,1],n,n), SF=full(S1)
www.eeworm.com/read/303425/13816451

c save_to_disk.c

#include "save_to_disk.h" /** \brief get a new file descriptor in writting mode */ FILE * get_new_file_descriptor_w (char *filename) { FILE *fd; if (!(fd = fopen(filename, "w"))) { perror(fil
www.eeworm.com/read/390194/8477847

txt 06-14.txt

例6-14 用sparse函数将满矩阵转化为稀疏矩阵。 解:在命令窗口中输入如下命令,并按Enter键确认。 >> i=[5 2 4 7 1 3 2 6]; >> j=[2 4 3 7 2 5 1 8]; >> s=[8 1 0 5 1 2 4 3]; >> X=diag(s,-2) X = 0 0 0 0 0 0
www.eeworm.com/read/431224/8694904

m gycall.m

function Gycall(a) global DAE if ~a.n, return, end omega_m = DAE.x(a.omega_m); idr = DAE.x(a.idr); iqr = DAE.x(a.iqr); V = DAE.y(a.vbus); t = DAE.y(a.bus); st = sin(t); ct = cos(t); rs = a.con(:,
www.eeworm.com/read/431224/8694919

m fxcall.m

function Fxcall(p) global DAE if ~p.n, return, end Vs = DAE.x(p.Vs); u = p.u & Vs = p.con(:,9); DAE.Gx = DAE.Gx + sparse(p.vref,p.Vs,u,DAE.m,DAE.n); DAE.Fx = DAE.Fx - sparse(p.
www.eeworm.com/read/431224/8695017

m gcall.m

function gcall(a) global DAE if ~a.n, return, end DAE.g = DAE.g ... - sparse(a.vbus,1,a.u.*DAE.x(a.ist).*DAE.y(a.vbus),DAE.m,1) ... + sparse(a.vref,1,a.Vref-DAE.y(a.vref),DAE.m,1);