代码搜索:Sparse
找到约 3,324 项符合「Sparse」的源代码
代码结果 3,324
www.eeworm.com/read/263516/11359563
m fm_connectivity.m
function fm_connectivity(actual_time,flag)
% FM_CONNECTIVITY determines in how many islands the system is
% fractioned after braker interventions
%
% FM_CONNECTIVTY(T)
% T a
www.eeworm.com/read/263516/11359721
m gycall.m
function Gycall(a)
global Bus DAE
if ~a.n, return, end
V1 = DAE.V(a.bus1);
V2 = DAE.V(a.bus2);
t1 = DAE.a(a.bus1);
t2 = DAE.a(a.bus2);
ss = sin(t1-t2);
cc = cos(t1-t2);
a1 = ss.*a.B;
www.eeworm.com/read/156956/11750398
m t_jacobian.m
function t_jacobian(quiet)
%T_JACOBIAN Numerical tests of partial derivative code.
% MATPOWER
% $Id: t_jacobian.m,v 1.2 2004/08/23 20:59:46 ray Exp $
% by Ray Zimmerman, PSERC Cornell
% Copy
www.eeworm.com/read/156956/11750544
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] = grad
www.eeworm.com/read/156874/11757893
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/259727/11770775
m t_jacobian.m
function t_jacobian(quiet)
%T_JACOBIAN Numerical tests of partial derivative code.
% MATPOWER
% $Id: t_jacobian.m,v 1.3 2005/07/08 18:58:38 ray Exp $
% by Ray Zimmerman, PSERC Cornell
% Copy
www.eeworm.com/read/259727/11770883
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] = grad
www.eeworm.com/read/345494/11812490
m ex1419.m
%例14-19 稀疏矩阵函数应用
S=sparse(randn(100)>3)
nnz(S)
nzmax(S)
issparse(S)
spy(S) %显示结果如图14-2
www.eeworm.com/read/345494/11812518
m ex1420.m
%例14-20 nnz和nzmax区别
S=sparse(rand(100)>0.98);
nnz(S)
nzmax(S)
B=double(S);
SS=B*B;
nnz(SS)
nzmax(SS)
whos
www.eeworm.com/read/257911/11907261
m t_jacobian.m
function t_jacobian(quiet)
%T_JACOBIAN Numerical tests of partial derivative code.
% MATPOWER
% $Id: t_jacobian.m,v 1.3 2005/07/08 18:58:38 ray Exp $
% by Ray Zimmerman, PSERC Cornell
% Copy