plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
microsoft/ADBench-master
adimat_h_mldivide2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_h_mldivide2.m
530
utf_8
1f9f5388f8bf1c1b2f9dfb01b275ca7d
% function [h_g_z g_z z] = adimat_h_mldivide2(a, h_b, g_b, b) % % Compute first and second order derivative of z = a \ b, matrix left % division, with a constant. Also return the function result z. % % This file is part of the ADiMat runtime environment. % % Copyright (C) 2013,2014 Johannes Willkomm % function [h_g_z g...
github
microsoft/ADBench-master
adimat_adjoint.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_adjoint.m
1,760
utf_8
d6aea6fe5cca38a1e7154f82ddd87414
% function r = adimat_adjoint(name) % get/set name of adjoint implementation % % adimat_adjoint('default') % - this uses the current adderiv implementation % % adimat_adjoint('scalar') % - this uses scalar adjoint (i.e. simple double objects of the same % size as the program values). You can only get one deri...
github
microsoft/ADBench-master
d_adimat_sol_tril.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_adimat_sol_tril.m
2,286
utf_8
a44be375cf994f521faca9b2660b64f1
% Generated by ADiMat 0.6.0-4788 % © 2001-2008 Andre Vehreschild <vehreschild@sc.rwth-aachen.de> % © 2009-2013 Johannes Willkomm <johannes.willkomm@sc.tu-darmstadt.de> % RWTH Aachen University, 52056 Aachen, Germany % TU Darmstadt, 64289 Darmstadt, Germany % Visit us on the web at http://www.adimat.de/ % Report bugs to...
github
microsoft/ADBench-master
admComputeDerivCentralDD.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admComputeDerivCentralDD.m
3,322
utf_8
d289a1f1c70f443da9d24a2323167d65
% function [Jacobian, varargout] = ... % admComputeDerivCentralDD(diffFunction, seedMatrix, ... % independents, dependents, fNargout, varargin) % % see also admDiffFD. % % This file is part of the ADiMat runtime environment. % % Copyright (C) 2014, 2016 Johannes Willkomm % Copyright (C) 201...
github
microsoft/ADBench-master
adimat_cumsum.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_cumsum.m
485
utf_8
05bdd46f1576d95a296d936843ae96a9
% function x = adimat_cumsum(x, dim) % % ADiMat replacement function for cumsum % % Copyright (C) 2015 Johannes Willkomm function x = adimat_cumsum(x, dim) if nargin < 2 || ischar(dim) dim = adimat_first_nonsingleton(x); end len = size(x, dim); inds = repmat({':'}, [length(size(x)), 1]); inds1 = inds; f...
github
microsoft/ADBench-master
a_eigs_01_21.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_eigs_01_21.m
415
utf_8
1469ecdae1fcd243ae8e9e2d09510f6e
% function a_A = a_eigs_01_31(a_U, a_D, A, k?, sigma?) % % Compute adjoint of A in [V D] = eig(A), given adjoint of D. % % This file is part of the ADiMat runtime environment % % Copyright (C) 2015 Johannes Willkomm function a_A = a_eigs_01_31(a_D, A, varargin) [V D U] = adimat_lreigs(A, varargin{:}); a_A = V.' * c...
github
microsoft/ADBench-master
d_adimat_hess.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_adimat_hess.m
7,057
utf_8
675f38703b7d6a70b23420dc5a294493
% Generated by ADiMat 0.6.0-4867 % © 2001-2008 Andre Vehreschild <vehreschild@sc.rwth-aachen.de> % © 2009-2013 Johannes Willkomm <johannes.willkomm@sc.tu-darmstadt.de> % RWTH Aachen University, 52056 Aachen, Germany % TU Darmstadt, 64289 Darmstadt, Germany % Visit us on the web at http://www.adimat.de/ % Report bugs to...
github
microsoft/ADBench-master
adimat_norm1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_norm1.m
328
utf_8
607ada60cb4c62dc7aac3c2479f51526
% function [r] = adimat_norm1(x) % % Compute r = norm(x), for AD. % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function [r] = adimat_norm1(x) p= 2; % default case r = adimat_norm2(x, p); end % $Id: adimat_norm1.m 3738 2013-06-12 16:48:53Z will...
github
microsoft/ADBench-master
dpartial_acotd.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_acotd.m
479
utf_8
8864eed8599e7faf636b0f3334db15ef
% function [dpartial y] = dpartial_acotd(x) % % Compute partial derivative diagonal of y = acotd(x). % % see also dpartial_exp. % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Fachgebiet Scientific Computing % TU Darmstadt function [dpartial y] = dpartia...
github
microsoft/ADBench-master
admCamelToDash.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admCamelToDash.m
909
utf_8
a2aedf2475eccfc5abe395ccc03501c4
% function str = admCamelToDash(s) % % Construct a string str from input s by replacing eaach upper case % letter K with a dash and the same lower case letter -k. % % see also admBuildFlags % % This file is part of the ADiMat runtime environment % % Copyright 2009,2011 Johannes Willkomm, Institute for Scientific Comput...
github
microsoft/ADBench-master
dpartial_atan.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_atan.m
461
utf_8
43accfcc2cac89a490b522c61006bcf6
% function [dpartial y] = dpartial_atan(x) % % Compute partial derivative diagonal of y = atan(x). % % see also dpartial_exp. % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Fachgebiet Scientific Computing % TU Darmstadt function [dpartial y] = dpartial_...
github
microsoft/ADBench-master
a_adimat_cumtrapz_i2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_cumtrapz_i2.m
21,282
utf_8
cc06187ad8f7b29e9177ab399be0c6da
% Generated by ADiMat 0.6.0-4867 % © 2001-2008 Andre Vehreschild <vehreschild@sc.rwth-aachen.de> % © 2009-2013 Johannes Willkomm <johannes.willkomm@sc.tu-darmstadt.de> % RWTH Aachen University, 52056 Aachen, Germany % TU Darmstadt, 64289 Darmstadt, Germany % Visit us on the web at http://www.adimat.de/ % Report bugs to...
github
microsoft/ADBench-master
a_bessely.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_bessely.m
573
utf_8
02b73d7937f744fb33bcf3d53cd67353
% function [adj] = a_bessely(adj, nu, x, opt?) % % compute the adjoint of x in z = bessely(nu, x, opt?), where adj is % the adjoint of z. % % see also dpartial_bessely % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Fachgebiet Scientific Computing % TU D...
github
microsoft/ADBench-master
mk1dperm.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/mk1dperm.m
504
utf_8
9d1dfb5c1288a125e63316f8af87e78e
% function R = mk1DPerm(P, dim) % % This file is part of the ADiMat runtime environment % % Copyright (C) 2015 Johannes Willkomm function R = mk1dperm(P, dim) sz = size(P); inds = cell(ndims(P), 1); for k=1:ndims(P) if k == dim inds{k} = P; else inds{k} = repmat(reshape(1:sz(k), [ones(1, k-1) ...
github
microsoft/ADBench-master
a_besselj.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_besselj.m
573
utf_8
9dd43a442cc14aee251e5784d2081f3b
% function [adj] = a_besselj(adj, nu, x, opt?) % % compute the adjoint of x in z = besselj(nu, x, opt?), where adj is % the adjoint of z. % % see also dpartial_besselj % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Fachgebiet Scientific Computing % TU D...
github
microsoft/ADBench-master
g_adimat_arnoldi.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_arnoldi.m
5,364
utf_8
ced09f3359f422857b51c1000cbc061d
% Generated by ADiMat 0.6.0-4867 % Copyright 2009-2013 Johannes Willkomm, Fachgebiet Scientific Computing, % TU Darmstadt, 64289 Darmstadt, Germany % Copyright 2001-2008 Andre Vehreschild, Institute for Scientific Computing, % RWTH Aachen University, 52056 Aachen, Germany. % Visit us on the web at http://www.adimat.de ...
github
microsoft/ADBench-master
g_funm.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_funm.m
836
utf_8
09db7a29a20580209d89a230f2b951a5
% function [g_z, z] = g_funm(g_x, x) % % Compute derivative of z = funm(x), matrix exponential. Also return % the function result z. % % This file is part of the ADiMat runtime environment. % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function [g_z, z] = g_...
github
microsoft/ADBench-master
a_svd_1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_svd_1.m
1,000
utf_8
5592076894a6556fecaea7b49c8e892e
% function [adj] = a_svd_1(adj, A) % % Compute adjoint of A in s = svd(A), given the adjoint of s. % % Using the method from Mike Giles, "An extended collection of matrix % derivative results for forward and reverse mode algorithmic % differentiation", 2008 % % Copyright 2012,2013 Johannes Willkomm, Institute for Scien...
github
microsoft/ADBench-master
adimat_stack_size.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_stack_size.m
339
utf_8
33b087abb945af54e9c78950db47d042
% % function r = adimat_stack_size() % return size of stack % % see also adimat_store, adimat_stack, adimat_clear_stack, adimat_byte_size, adimat_file_size % % This file is part of the ADiMat runtime environment % function r = adimat_stack_size() r = adimat_store(3, 0); % $Id: adimat_stack_size.m 1764 2010-02-25 19...
github
microsoft/ADBench-master
admMatMultV3TTa.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV3TTa.m
457
utf_8
ac5e338267b8fe304ece38d0125356e3
% function Z = admMatMultV3TTa(A, B) % % see also admMatMultV3 % % Copyright (C) 2014 Johannes Willkomm % function Z = admMatMultV3TTa(A, B) % A is (m x n x k) tensor % B is (n x p x k) matrix szA = size(A); szB = size(B); Z = zeros(szA(1), szB(2), size(A,3)); for k=1:szA(1) T = bsxfun(@times, res...
github
microsoft/ADBench-master
g_poly.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_poly.m
513
utf_8
b9c72d51e9a85f96d249212f49577067
% function [g_c, c] = g_poly(g_r, r) % Compute derivative of r = poly(c). Also return the % function result r. % % see also partial_poly % % This file is part of the ADiMat runtime environment. % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University func...
github
microsoft/ADBench-master
a_hypot.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_hypot.m
688
utf_8
6214424a28136b45e62399e86eea546d
% function [a_x a_y] = a_hypot(a_z, x, y) % % Compute adjoints of z = hypot(x, y), where a_z is the adjoint of z. % % see also a_zeros, a_mean % % Copyright 2012,2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function [a_x, a_y] = a_hypot(a_z, x, y) t = x .^2 + y .^2;...
github
microsoft/ADBench-master
adimat_adjsolr.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_adjsolr.m
622
utf_8
3dcfd5f9c6ffeec4c2019de6e25b54e1
% function [a_b, z] = adimat_a_mldivider(a, b, a_z) % % Compute adjoint a_b of z = a \ b, matrix right division. Also return % the function result z. % % This file is part of the ADiMat runtime environment. % % Copyright 2012-2014 Johannes Willkomm % function [a_b, z] = adimat_a_mldivider(a, b, a_z) [m n] = size(a); ...
github
microsoft/ADBench-master
admMatMultV1TT.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV1TT.m
487
utf_8
762345fbf6c5f53df91e82974b9a92cd
% function Z = admMatMultV1TT(A, B) % % see also admMatMultV1 % % Copyright (C) 2014 Johannes Willkomm % function Z = admMatMultV1TT(A, B) % A is (k x m x n) tensor % B is (k x n x p) tensor szA = size(A); szB = size(B); [~, which] = min([szA(2) szB(3) szA(1)]); switch which case 1 Z = admMat...
github
microsoft/ADBench-master
admMatMultV1ref.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV1ref.m
1,033
utf_8
f087b21bab479fe61f04f448f3a486c4
% function z = admMatMultV1(A, B) % % Multiply A * B for tensors, with the surplus dimension being the % first. % % A and B may both be tensors, or just A, or just B. % % This function is a reference implementation to test the more % efficient variants, admMatMultV1MT, admMatMultV1TM, and % admMatMultV1TT. % % see also...
github
microsoft/ADBench-master
a_adimat_cumsum.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_cumsum.m
6,220
utf_8
75b6dec02f66274edc520f43640e93fd
% Generated by ADiMat 0.6.0-4867 % © 2001-2008 Andre Vehreschild <vehreschild@sc.rwth-aachen.de> % © 2009-2013 Johannes Willkomm <johannes.willkomm@sc.tu-darmstadt.de> % RWTH Aachen University, 52056 Aachen, Germany % TU Darmstadt, 64289 Darmstadt, Germany % Visit us on the web at http://www.adimat.de/ % Report bugs to...
github
microsoft/ADBench-master
a_repmat.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_repmat.m
1,075
utf_8
eea2faea27289fbd91f24cbd38f455c3
% % function adj = a_repmat(adj, varargin) % compute adjoint of repmat(val, varargin{:}) % % see also a_zeros, a_mean % % This file is part of the ADiMat runtime environment % function r = a_repmat(adj, val, varargin) if nargin < 4 dims = varargin{1}; else dims = [ varargin{:} ]; end if isstruct(val) ...
github
microsoft/ADBench-master
a_polyvalm2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_polyvalm2.m
727
utf_8
8d3193c35679e1a1858475b5157ce18f
% function [a_x z] = a_polyvalm2(a_z, p, x) % % Compute adjoint of x in z = polyvalm(p, x), matrix polynomial p(x), % given the adjoint of z. % % This file is part of the ADiMat runtime environment. % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function [a_x...
github
microsoft/ADBench-master
d_adimat_trapz.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_adimat_trapz.m
7,645
utf_8
43a243050319556a5ae5f181494f0fe4
% Generated by ADiMat 0.6.0-4867 % © 2001-2008 Andre Vehreschild <vehreschild@sc.rwth-aachen.de> % © 2009-2013 Johannes Willkomm <johannes.willkomm@sc.tu-darmstadt.de> % RWTH Aachen University, 52056 Aachen, Germany % TU Darmstadt, 64289 Darmstadt, Germany % Visit us on the web at http://www.adimat.de/ % Report bugs to...
github
microsoft/ADBench-master
dpartial_csch.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_csch.m
434
utf_8
f2f6bc1c415e35a20cf30736ee0d55ea
% function [dpartial y] = dpartial_csch(x) % % Compute partial derivative diagonal of y = csch(x). % % see also dpartial_exp. % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Fachgebiet Scientific Computing % TU Darmstadt function [dpartial y] = dpartial_...
github
microsoft/ADBench-master
dpartial_acosd.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_acosd.m
480
utf_8
1880496be1cd281ee78747e0a2cd5fa5
% function [dpartial y] = dpartial_acosd(x) % % Compute partial derivative diagonal of y = acosd(x). % % see also dpartial_exp. % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Fachgebiet Scientific Computing % TU Darmstadt function [dpartial y] = dpartia...
github
microsoft/ADBench-master
admStackHistory.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admStackHistory.m
2,157
utf_8
bef5b829f4aaaa2cb56d0cf75c70d30e
% function [Jacobian, varargout] = admDiffRev(handle, seedMatrix, arg1, arg2, ..., argN, admOptions?) % % see also admDiffRev. % % This file is part of the ADiMat runtime environment. % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University function [J vararg...
github
microsoft/ADBench-master
a_adimat_expm.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_expm.m
28,909
utf_8
3d32fa6790c2fa817ceef1f3e1566224
% Generated by ADiMat 0.6.0-4867 % © 2001-2008 Andre Vehreschild <vehreschild@sc.rwth-aachen.de> % © 2009-2013 Johannes Willkomm <johannes.willkomm@sc.tu-darmstadt.de> % RWTH Aachen University, 52056 Aachen, Germany % TU Darmstadt, 64289 Darmstadt, Germany % Visit us on the web at http://www.adimat.de/ % Report bugs to...
github
microsoft/ADBench-master
a_sum.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_sum.m
450
utf_8
e77ea6e2f259434c4200f2e25566dcbc
% function adj = a_sum(adj, val, dimind?) % compute adjoint of sum(val, dimind?), where ajd is the adjoint of % val % % see also a_zeros, a_mean % % This file is part of the ADiMat runtime environment % function adj = a_sum(adj, val, dimind) if nargin < 3 dimind = adimat_first_nonsingleton(val); end n = s...
github
microsoft/ADBench-master
g_adimat_sol_ata.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_sol_ata.m
2,607
utf_8
2f3f1215244c941ce4bcfde609c696de
% Generated by ADiMat 0.6.0-4867 % Copyright 2009-2013 Johannes Willkomm, Fachgebiet Scientific Computing, % TU Darmstadt, 64289 Darmstadt, Germany % Copyright 2001-2008 Andre Vehreschild, Institute for Scientific Computing, % RWTH Aachen University, 52056 Aachen, Germany. % Visit us on the web at http://www.adimat.de ...
github
microsoft/ADBench-master
adimat_adjsoll.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_adjsoll.m
1,251
utf_8
cc3d5a3084e69c36e5b7f83c49a9be3c
% function [a_a, z] = adimat_a_mldividel(a, b, a_z) % % Compute adjoint a_a of z = a \ b, matrix right division. Also return % the function result z. % % This file is part of the ADiMat runtime environment. % % Copyright 2012-2014 Johannes Willkomm % function [a_a, z] = adimat_a_mldividel(a, b, a_z) [m n] = size(a); ...
github
microsoft/ADBench-master
admMatMultV3ref.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV3ref.m
955
utf_8
b439fc568c95c0e43a43e4ddd237545c
% function z = admMatMultV3(A, B) % % Multiply A * B for tensors, with the surplus dimension being the % third. % % A and B may both be tensors, or just A, or just B. % % This function is a reference implementation to test the more % efficient variants, admMatMultV3MT, admMatMultV3TM, and % admMatMultV3TT. % % see also...
github
microsoft/ADBench-master
g_adimat_pinv.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_pinv.m
2,078
utf_8
eee90afc914e1318107f67949ba6efa7
% Generated by ADiMat 0.6.0-4867 % Copyright 2009-2013 Johannes Willkomm, Fachgebiet Scientific Computing, % TU Darmstadt, 64289 Darmstadt, Germany % Copyright 2001-2008 Andre Vehreschild, Institute for Scientific Computing, % RWTH Aachen University, 52056 Aachen, Germany. % Visit us on the web at http://www.adimat.de ...
github
microsoft/ADBench-master
a_eigs_11_21.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_eigs_11_21.m
679
utf_8
fdd639118c3d5a55d8964041e9b2a214
% function a_A = a_eigs_11_31(a_U, a_D, A, k?, sigma?) % % Compute adjoint of A in [V D] = eig(A), given adjoints of V and D. % % This file is part of the ADiMat runtime environment % % Copyright (C) 2015 Johannes Willkomm function a_A = a_eigs_11_31(a_U, a_D, A, varargin) [V D U] = adimat_lreigs(A, varargin{:}); k...
github
microsoft/ADBench-master
adimat_mpower.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_mpower.m
500
utf_8
43fcc59124b93fc55c7695093af34e90
% function [z] = adimat_mpower(a, b) % % Compute z = a ^ b. This is a re-implementation of the mpower % builtin to be differentiated with ADiMat. % % see also adimat_expm % % This file is part of the ADiMat runtime environment % % Copyright 2014 Johannes Willkomm % function z = adimat_mpower(a, b) if isscalar(a) && i...
github
microsoft/ADBench-master
dpartial_sec.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_sec.m
423
utf_8
abffad39e981772642388d7da36558cb
% function [dpartial y] = dpartial_sec(x) % % Compute partial derivative diagonal of y = sec(x). % % see also dpartial_exp. % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Fachgebiet Scientific Computing % TU Darmstadt function [dpartial y] = dpartial_se...
github
microsoft/ADBench-master
a_abs.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_abs.m
936
utf_8
58ed9fd1857cd27d78ee0e62ea904007
% function a_x = a_abs(a_z, x) % % Compute adjoint of z = abs(x), where a_z is the adjoint of z. % % see also a_zeros, a_mean % % Copyright (c) 2017 Johannes Willkomm % Copyright (c) 2016 Johannes Willkomm % Copyright (c) 2012 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt ...
github
microsoft/ADBench-master
adimat_sqrtm.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_sqrtm.m
809
utf_8
aec4d6d539f86394245b967fa2a99ff8
% function [R U T] = adimat_sqrtm(x) % % Compute z = sqrtm(x). This uses a schur method as described in "A % Schur method for the Square Root of a Matrix", Åke Björck, 1982. % % This function is differentiation with ADiMat to create the runtime % functions g_adimat_sqrtm, d_adimat_sqrtm, and a_adimat_sqrtm. % % see a...
github
microsoft/ADBench-master
adimat_adjstruct.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_adjstruct.m
480
utf_8
59c6b8f21f588cd4e868dc4724107abd
% function r = adimat_adjstruct(s, f, v) % % This computes the adjoint of s = struct(f, v). % % see also admDiffRev, adimat_sumstruct, adimat_sumcell % % This file is part of the ADiMat runtime environment % % Copyright 2011 Johannes Willkomm, Scientific Computing Group % TU Darmstadt. function r = adimat_adj...
github
microsoft/ADBench-master
adimat_home.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_home.m
486
utf_8
0e4dff3eeb0017f20daa7bebe1cf15cf
% function [h] = adimat_home() % get the home directory of ADiMat % h - the home directory of ADiMat % % Copyright 2010-2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt % % This file is part of the ADiMat runtime environment % function [h] = adimat_home() h = gete...
github
microsoft/ADBench-master
g_adimat_chol2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_chol2.m
3,208
utf_8
6e5686523a3cbd6d5d3a2e6d30f77d84
% Generated by ADiMat 0.6.0-4867 % Copyright 2009-2013 Johannes Willkomm, Fachgebiet Scientific Computing, % TU Darmstadt, 64289 Darmstadt, Germany % Copyright 2001-2008 Andre Vehreschild, Institute for Scientific Computing, % RWTH Aachen University, 52056 Aachen, Germany. % Visit us on the web at http://www.adimat.de ...
github
microsoft/ADBench-master
admMatMultV3TT.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV3TT.m
499
utf_8
da44dd5268663159b2bb7f58958d8bef
% function Z = admMatMultV3TT(A, B) % % see also admMatMultV3 % % Copyright (C) 2014 Johannes Willkomm % function Z = admMatMultV3TT(A, B) % A is (m x n x k) tensor % B is (n x p x k) matrix szA = size(A); szB = size(B); if szA(1).*szB(2).*9.9 < size(A,3) if szA(1) < szB(2) Z = admMatMultV3T...
github
microsoft/ADBench-master
admMPIFileInfo.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMPIFileInfo.m
771
utf_8
709317af480a6511451bb1dd1e538d65
% function r = admMPIFileInfo(name1, val1, name2, val2, ...) % % Create structure with fields determining stack options. The default % structure has no fields. % % see also admOptions, admStackOptions, adimat_stack_mpi_file_info, admDiffRev % % This file is part of the ADiMat runtime environment. % % Copyright 2010-201...
github
microsoft/ADBench-master
d_adimat_prod2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_adimat_prod2.m
3,464
utf_8
08dc66e1cfcc6578510af02579687eb4
% Generated by ADiMat 0.6.0-4867 % © 2001-2008 Andre Vehreschild <vehreschild@sc.rwth-aachen.de> % © 2009-2013 Johannes Willkomm <johannes.willkomm@sc.tu-darmstadt.de> % RWTH Aachen University, 52056 Aachen, Germany % TU Darmstadt, 64289 Darmstadt, Germany % Visit us on the web at http://www.adimat.de/ % Report bugs to...
github
microsoft/ADBench-master
a_zeros_index1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_zeros_index1.m
943
utf_8
88e215d1c43c6b2c98b48f3ba37744f6
% function r = a_zeros_index1(adjArrayVar, arrayVar, index1) % Zero adjoint of index expression after assignment. If the forward % assignment changed the size of the array variable, then maybe % resize the adjoint here, undoing the size change. If the size did % not change then fill the indexed adjoint with a_...
github
microsoft/ADBench-master
createSeededGradientsDD.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/createSeededGradientsDD.m
2,245
utf_8
af742d0716e92de2c9abd01e99d3fba2
% function varargout = createSeededGradientsDD(seedVector, varargin) % % see also createSeededGradientsFor % % This file is part of the ADiMat runtime environment, and belongs % to the scalar_directderivs derivative "class". % % Copyright 2010,2011 Johannes Willkomm, Institute for Scientific Computing % ...
github
microsoft/ADBench-master
g_adimat_hess.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_hess.m
3,899
utf_8
db516d7170e469298b1c8d62267d0372
% Generated by ADiMat 0.6.0-4867 % Copyright 2009-2013 Johannes Willkomm, Fachgebiet Scientific Computing, % TU Darmstadt, 64289 Darmstadt, Germany % Copyright 2001-2008 Andre Vehreschild, Institute for Scientific Computing, % RWTH Aachen University, 52056 Aachen, Germany. % Visit us on the web at http://www.adimat.de ...
github
microsoft/ADBench-master
adimat_version.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_version.m
627
utf_8
2a13ef342f773a4f890d1f774ea2049f
% function [versionNumber versionString version revision] = adimat_version(which) % get the version of ADiMat % % Copyright 2010 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment % function [a b c d] = adimat_v...
github
microsoft/ADBench-master
d_adimat_chol.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_adimat_chol.m
5,282
utf_8
5d7c89c334571acc67d18ade282c1421
% Generated by ADiMat 0.6.0-4867 % © 2001-2008 Andre Vehreschild <vehreschild@sc.rwth-aachen.de> % © 2009-2013 Johannes Willkomm <johannes.willkomm@sc.tu-darmstadt.de> % RWTH Aachen University, 52056 Aachen, Germany % TU Darmstadt, 64289 Darmstadt, Germany % Visit us on the web at http://www.adimat.de/ % Report bugs to...
github
microsoft/ADBench-master
dpartial_bessel.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_bessel.m
1,030
utf_8
e8c1c9c815894137033197ba3c7fcf4f
% function [dz, z] = dpartial_bessel(besfun, nu, x, opt?) % % Compute partial derivative diagonal of z = besfun(nu, x, opt) % w.r.t. x, where besfun is one of besselj or bessely. % % This function uses Abramowitz and Stegun, 10th printing, 1972, % p. 361, 9.1.27, third eq. % cf. http://people.math.sfu.ca/~cbm/aands/pag...
github
microsoft/ADBench-master
a_zeros_cell_index.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_zeros_cell_index.m
1,284
utf_8
4a691c827ced6144bd5e3503d018a504
% function r = a_zeros_cell_index(adjArrayVar, arrayVar, index1, ...) % Zero adjoint of index expression after assignment. If the forward % assignment changed the size of the array variable, then maybe % resize the adjoint here, undoing the size change. If the size did % not change then fill the indexed adjoin...
github
microsoft/ADBench-master
admCheckResultSizes.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admCheckResultSizes.m
733
utf_8
d35c0ef9b9dfde96096fd1510ca1f4c5
% function res = admCheckResultSizes(values, derivatives) % % Check that derivative outputs and their corresponding values have % the same size. % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function res = admCheckResultSizes(values, derivatives) res = true; ...
github
microsoft/ADBench-master
admComputeDerivDD.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admComputeDerivDD.m
2,326
utf_8
101ee1c255c939aabd2a2fde5c0fd374
% function [Jacobian, varargout] = ... % admComputeDerivDD(diffFunction, seedMatrix, ... % independents, dependents, fNargout, varargin) % % see also admDiffFD. % % This file is part of the ADiMat runtime environment. % % Copyright 2010,2011 Johannes Willkomm, Institute for Scientific Compu...
github
microsoft/ADBench-master
g_adimat_qr.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_qr.m
2,944
utf_8
b1e8e00b1546be7cb701a052438c63a0
% Generated by ADiMat 0.6.0-4867 % Copyright 2009-2013 Johannes Willkomm, Fachgebiet Scientific Computing, % TU Darmstadt, 64289 Darmstadt, Germany % Copyright 2001-2008 Andre Vehreschild, Institute for Scientific Computing, % RWTH Aachen University, 52056 Aachen, Germany. % Visit us on the web at http://www.adimat.de ...
github
microsoft/ADBench-master
admStatusDir.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admStatusDir.m
1,290
utf_8
a52c4b10c1d0f4d56847f0d58b037e50
% function statusDirName = admStatusDir(functionFile) % % Return the name of the ADiMat status directory for function % functionFile, which must be a full path. In the status directory % ADiMat save information regarding the differentiated functions in % the directory, such as the dependency list and the last options u...
github
microsoft/ADBench-master
partial_cumtrapz_Y.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/partial_cumtrapz_Y.m
1,406
utf_8
3d4f6ab582cde57c9f24da0fafc66d2f
% function z = partial_cumtrapz_Y(arg...) % % Compute partial derivative of cumtrapz function w.r.t. Y. % % For calling seequence see cumtrapz. % % see also cumtrapz % % Copyright (C) 2015 Johannes Willkomm function J = partial_cumtrapz_Y(a, b, c) if nargin == 1 % cumtrapz(Y) J = partial_cumtrapz_Y_uni(a); ...
github
microsoft/ADBench-master
admCheckNArgsFor.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admCheckNArgsFor.m
2,007
utf_8
39dc8d479a07e859dcd9975e9962984d
% function r = admCheckNArgsFor(functionName, resultFunctionName, ... % nFuncArgs, nActArgs, fNargout, nActResults) % % Check whether the amount of function and derivative arguments is OK % for differentiated function resultFunctionName. % % Copyright 2010,2011 Johannes Willkomm, Scientific C...
github
microsoft/ADBench-master
adimat_stack_file_size.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_stack_file_size.m
413
utf_8
eba57005c903a54f4dffad4a55cec2d4
% % function r = adimat_stack_file_size() % return size of the file the stack implementation uses, if any, % otherwise return 0 % % see also adimat_store, adimat_stack, adimat_clear_stack, adimat_size, adimat_byte_size % % This file is part of the ADiMat runtime environment % function r = adimat_stack_file_size() r...
github
microsoft/ADBench-master
admAllHessMatrix.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admAllHessMatrix.m
1,142
utf_8
b0b5f144b02eb22ffc09363aefea0403
function [diffs, Hess, Jacs, results, times, timings, errors] = admAllDiffMatrix(handle, varargin) lastArg = varargin{end}; if isstruct(lastArg) && isfield(lastArg, 'admopts') adopts = lastArg; funcArgs = varargin(1:end-1); else adopts = admOptions; funcArgs = varargin; end fName = func2str(...
github
microsoft/ADBench-master
adimat_g_mrdivide.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_g_mrdivide.m
625
utf_8
9405823f3949bebee590ce8e2d1a317a
% function [g_z z] = adimat_g_mrdivide(g_a, a, g_b, b) % % Compute derivative of z = a / b, matrix right division. Also return % the function result z. % % This file is part of the ADiMat runtime environment. % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt fun...
github
microsoft/ADBench-master
admDiffRev.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admDiffRev.m
8,351
utf_8
300f2fd8284683d277522fdf4ea8f402
% function [Jacobian, varargout] = admDiffRev(handle, seedMatrix, arg1, arg2, ..., argN, admOptions?) % % Compute first order derivatives of function given by handle, % evaluated at the arguments arg1, arg2, ..., argN. This works by % running a version of the function differentiated in reverse mode % (RM) of automa...
github
microsoft/ADBench-master
adimat_info_stack.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_info_stack.m
3,805
utf_8
5ed41dcc4b652637485fa302312b0051
% function r = adimat_info_stack(name) % get/set name of ADiMat's stack implementation. % This functionality is implemented by modifying the path() such % that different versions of the function adimat_store are used. % % adimat_info_stack('avail') % adimat_info_stack('list') % adimat_info_stack('?') % - return...
github
microsoft/ADBench-master
admMatMultV1TM.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV1TM.m
377
utf_8
ef093e3c14c94056cd3692b1877bd260
% function Z = admMatMultV1TM(A, B) % % see also admMatMultV1 % % Copyright (C) 2014 Johannes Willkomm % function Z = admMatMultV1TM(A, B) % A is (k x m x n) tensor % B is (n x p) matrix szA = size(A); szB = size(B); Z = reshape(reshape(A, [szA(1) .* szA(2), szA(3)]) * B, [szA(1), szA(2), szB(2)]); % $I...
github
microsoft/ADBench-master
a_eigs_1_21.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_eigs_1_21.m
619
utf_8
a1e5cbd7945e496304e69978dda80ae3
% function a_A = a_eig_1_11(a_l, A) % % Compute adjoint of A in l = eig(A), given adjoint of l. % % see also a_eig_10_11, a_eig_01_11, a_eig_11_11 % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function ...
github
microsoft/ADBench-master
admMatMultV1TTb.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV1TTb.m
451
utf_8
dc12c50980a901514017c6e8fa505e4a
% function Z = admMatMultV1TTb(A, B) % % see also admMatMultV1 % % Copyright (C) 2014 Johannes Willkomm % function Z = admMatMultV1TTb(A, B) % A is (k x m x n) tensor % B is (k x n x p) tensor szA = size(A); szB = size(B); Z = zeros(szA(1), szA(2), szB(3)); for k=1:szB(3) T = bsxfun(@times, A, res...
github
microsoft/ADBench-master
adimat_g_power.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_g_power.m
498
utf_8
af4185c6c565d765836a9ad5b8201623
% function [g_z z] = adimat_g_power(g_a, a, g_b, b) % % Compute derivative of z = a.^b, exponentiation. Also return the % function result z. % % This file is part of the ADiMat runtime environment. % % Copyright 2010-2012 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function ...
github
microsoft/ADBench-master
admCreateCompressedSeedSparse.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admCreateCompressedSeedSparse.m
735
utf_8
09367a52db8c2e69bdb8942994a9562b
% function [seed] = admCreateCompressedSeedSparse(coloring) % % Create a sparse seed matrix from color vector. % % Copyright 2011 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment % function [seed] = admCreateC...
github
microsoft/ADBench-master
admPreprocessOptions.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admPreprocessOptions.m
627
utf_8
83a9be3e48d6cbdd50c3066270f0a518
% function opts = admCheckOptions(opts) % % Preprocess admOptions opts fields, expanding meta fields % % see also admOptions, admStackOptions, admTransformParameters % % Copyright (C) 2014,2018 Johannes Willkomm <johannes@johannes-willkomm.de> % % This file is part of the ADiMat runtime environment. % function opts = a...
github
microsoft/ADBench-master
partial_expm.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/partial_expm.m
3,250
utf_8
c1b48a4938bbb2406a09b0dbc35d129f
% function [partial z] = partial_expm(x, base) % % Compute partial derivative of z = expm(x). Also return the function % result z. partial is multiplied by base, if base is ommited, use % base = eye(numel(x)); % % see also g_expm, a_expm % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johanne...
github
microsoft/ADBench-master
dpartial_acot.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_acot.m
459
utf_8
02fdc1ea8dd9558c8088890a5ea7d8b7
% function [dpartial y] = dpartial_acot(x) % % Compute partial derivative diagonal of y = acot(x). % % see also dpartial_exp. % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Fachgebiet Scientific Computing % TU Darmstadt function [dpartial y] = dpartial_...
github
microsoft/ADBench-master
admUncompressHess.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admUncompressHess.m
679
utf_8
4f39afe5b26760b6ec7dcb0122a1d312
% function [Hess] = admUncompressHess(compressedHess, pattern, coloring) % % Uncompress compressedHess according to pattern and coloring. % % Copyright © 2014 Johannes Willkomm % % This file is part of the ADiMat runtime environment % function [Hess] = admUncompressHess(compressedHess, pattern, coloring, V, seedW) s...
github
microsoft/ADBench-master
admGetTotalNumel.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admGetTotalNumel.m
259
utf_8
22b727eb38d1a3f0e4bb4e3f4f6c3863
% function nels = admGetTotalNumel(varargin) % % deprecated alias for admTotalNumel % % see also admTotalNumel % function nels = admGetTotalNumel(varargin) nels = admTotalNumel(varargin{:}); % $Id: admGetTotalNumel.m 2632 2011-02-09 12:26:13Z willkomm $
github
microsoft/ADBench-master
a_poly.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_poly.m
504
utf_8
7a58cfcc72fbddd296fc14db95b22e96
% function a_c = a_poly(a_c, r) % Compute adjoint of c = poly(r). % % see also partial_poly % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University function a_r = a_poly(a_c, r) partial = partial_po...
github
microsoft/ADBench-master
adimat_d_svd_d2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_d_svd_d2.m
1,277
utf_8
b9d0aa0961a9e818e1a07dfc2c911783
% function [U d_S S V] = d_svd_d2(d_A, A) % % Compute derivatives of S in [ U S V ] = svd(A). % % Using the method from Mike Giles, "An extended collection of matrix % derivative results for forward and reverse mode algorithmic % differentiation", 2008 % % Copyright 2012,2013 Johannes Willkomm, Institute for Scientific...
github
microsoft/ADBench-master
adimat_push_cell_index.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_push_cell_index.m
633
utf_8
2d81eba21220b298605080b25b7df28d
% function r = adimat_push_cell_index(arrayVar, index1, ...) % Store values given by arrayVar(index1, ...) on the stack, if this % indexing is possible. Otherwise the whole variables has to be % saved, in order to restore it to previous size later. % % see also adimat_push, adimat_push_index, adimat_pop_cell_inde...
github
microsoft/ADBench-master
adimat_h_mldivide1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_h_mldivide1.m
912
utf_8
1d9e5b9a1dc153967a073a12737c53ee
% function [h_g_z g_z z] = adimat_h_mldivide1(h_g_a, g_a, h_a, a, h_b, b) % % Compute first and second order derivative of z = a \ b, matrix left % division, with b constant. Also return the function result z. % % This file is part of the ADiMat runtime environment. % % Copyright (C) 2013,2014 Johannes Willkomm % funct...
github
microsoft/ADBench-master
a_adimat_mpower.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_mpower.m
6,770
utf_8
df5d25017bfa3cb8346e2d082c3614dc
% Generated by ADiMat 0.6.0-4867 % © 2001-2008 Andre Vehreschild <vehreschild@sc.rwth-aachen.de> % © 2009-2013 Johannes Willkomm <johannes.willkomm@sc.tu-darmstadt.de> % RWTH Aachen University, 52056 Aachen, Germany % TU Darmstadt, 64289 Darmstadt, Germany % Visit us on the web at http://www.adimat.de/ % Report bugs to...
github
microsoft/ADBench-master
admCheckOptions.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admCheckOptions.m
2,315
utf_8
fbcbdc6b1f551f551c2d56a036193ce7
% function [r ill] = admCheckOptions(opts, ref) % % Check admOptions fields for invalid field names. % % see also admOptions, admStackOptions, admTransformParameters % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat ...
github
microsoft/ADBench-master
g_adimat_safediag.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_safediag.m
2,421
utf_8
f51223345cae748ed2fc4df82250e9b6
% Generated by ADiMat 0.6.0-4867 % Copyright 2009-2013 Johannes Willkomm, Fachgebiet Scientific Computing, % TU Darmstadt, 64289 Darmstadt, Germany % Copyright 2001-2008 Andre Vehreschild, Institute for Scientific Computing, % RWTH Aachen University, 52056 Aachen, Germany. % Visit us on the web at http://www.adimat.de ...
github
microsoft/ADBench-master
a_svd_001.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_svd_001.m
1,915
utf_8
78c203c5237992a0902a2d3490eb668a
% function [a_A U S V] = a_svd_001(a_V, A) % % Compute adjoint of A in [ U S V ] = svd(A), where a_V is the adjoint % of V. % % Using the method from Mike Giles, "An extended collection of matrix % derivative results for forward and reverse mode algorithmic % differentiation", 2008, adding in the homework that was left...
github
microsoft/ADBench-master
a_adimat_hess_01.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_hess_01.m
17,891
utf_8
9ad69c959b01ac14ee46c7f3772616db
% Generated by ADiMat 0.5.9-3862 % © 2001-2008 Andre Vehreschild <vehreschild@sc.rwth-aachen.de> % © 2009-2013 Johannes Willkomm <johannes.willkomm@sc.tu-darmstadt.de> % RWTH Aachen University, 52056 Aachen, Germany % TU Darmstadt, 64289 Darmstadt, Germany % Visit us on the web at http://www.sc.informatik.tu-darmstadt....
github
microsoft/ADBench-master
adimat_restore_index.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_restore_index.m
1,065
utf_8
2440a028d08c8aadc7b105cc97c16921
% function w = adimat_restore_index(v, ind1, ind2, ...) % % Restore array v to the original size and shape w that it had before % the index delete operation v(ind1,ind2,...) = [] was executed. % % see also adimat_push, adimat_push_index % % Copyright (C) 2014 Johannes Willkomm <johannes@johannes-willkomm.de> % % This f...
github
microsoft/ADBench-master
dpartial_csc.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_csc.m
426
utf_8
dc1605daa47029174299a2763d5d7ec3
% function [dpartial y] = dpartial_csc(x) % % Compute partial derivative diagonal of y = csc(x). % % see also dpartial_exp. % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Fachgebiet Scientific Computing % TU Darmstadt function [dpartial y] = dpartial_cs...
github
microsoft/ADBench-master
a_ifftn.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_ifftn.m
489
utf_8
759aee45701503c275a7b0a9637b720a
% function adj = a_ifftn(adj, ind, a, sz) % % Compute adjoint of z = ifftn(x, sz?). % % see also a_fft % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function adj = a_ifftn(adj, ind, a, szf) if nargin ...
github
microsoft/ADBench-master
admMatMultV3TMb.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV3TMb.m
493
utf_8
cbedcc664e44b5bc1f255cff40eb4880
% function Z = admMatMultV3TMb(A, B) % % see also admMatMultV3 % % Copyright (C) 2014 Johannes Willkomm % function Z = admMatMultV3TMb(A, B) % A is (m x n x k) tensor % B is (n x p) matrix szA = size(A); szB = size(B); Z = zeros([szA(1), szB(2), size(A,3)]); B = repmat(B, [ 1 1 size(A,3)]); for k...
github
microsoft/ADBench-master
a_cross3.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_cross3.m
1,373
utf_8
fe6133d1d0822ac509b060201b078a05
% function adj = a_cross3(a_z, ind, a, b, dim) % when ind == 1, compute adjoint of a in z = cross(a, b, dim) % when ind == 2, compute adjoint of b in z = cross(a, b, dim) % where a_z is the adjoint of z. % % see also a_zeros, a_sum % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes W...
github
microsoft/ADBench-master
admStructDiff.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admStructDiff.m
784
utf_8
de9b981bfceacfe50fc75c2cbb45e6b1
% function diffStr = admStructDiff(s1,s2) % % Compare two structs and return a struct with differing fields from % s2. % % see also admOptions, admCompareOptions % % This file is part of the ADiMat runtime environment. % % Copyright 2011 Johannes Willkomm, Institute for Scientific Computing % R...
github
microsoft/ADBench-master
dpartial_tanh.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_tanh.m
456
utf_8
59664801134982583b4a6173abdf09d7
% function [dpartial y] = dpartial_tanh(x) % % Compute partial derivative diagonal of y = tanh(x). % % see also dpartial_exp. % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Fachgebiet Scientific Computing % TU Darmstadt function [dpartial y] = dpartial_...
github
microsoft/ADBench-master
admTaylorFor.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admTaylorFor.m
4,968
utf_8
58c0b940aea8e82c1959626864e52a59
% function [Jacobian, varargout] = admTaylorFor(handle, seedMatrix, varargin) % % Derivatives computed with this function are precise up to machine % precision. The runtime depends linearly on the number of columns of % the seedMatrix, but only with a relativly small factor. In order to % compute products with the ...
github
microsoft/ADBench-master
a_full.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_full.m
367
utf_8
f7355d1624b4f7e4cc7c00c5e9d5cd2c
% function adj = a_full(adj, val) % % see also a_zeros, a_mean % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function adj = a_full(adj, val) if issparse(val) adj = call(@sparse, adj); end % $Id:...
github
microsoft/ADBench-master
dpartial_atanh.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_atanh.m
466
utf_8
090b1efa849b4c7ea961f6043077c2e3
% function [dpartial y] = dpartial_atanh(x) % % Compute partial derivative diagonal of y = atanh(x). % % see also dpartial_exp. % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Fachgebiet Scientific Computing % TU Darmstadt function [dpartial y] = dpartia...
github
microsoft/ADBench-master
g_interp1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_interp1.m
1,062
utf_8
47b78a92c2b822122edc731a848ee04c
% function g_z = g_interp1(g_xs, xs, g_ys, ys, g_xis, xis, method, extrap) % % Compute derivative of z = interp1(xs, ys, xis, method, extrap). % % see also partial_interp1_1, partial_interp1_2, partial_interp1_3 % % This file is part of the ADiMat runtime environment. % % Copyright 2013 Johannes Willkomm, Institute for...
github
microsoft/ADBench-master
adimat_min21.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_min21.m
751
utf_8
366370ad6b5bcbc531a3d5dfbc8934db
% function adj = adimat_min21(val1, val2, adj) % % This determines the adjoint of val1 in z = min(val1, val2), where % the adjoint of z is given as parameter adj. % % see also a_mean % % This file is part of the ADiMat runtime environment % % Copyright 2010-2013 Johannes Willkomm, Institute for Scientific Computing ...
github
microsoft/ADBench-master
d_adimat_svd.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_adimat_svd.m
13,955
utf_8
020046c7adab5bf17d10dce81dabafdd
% Generated by ADiMat 0.6.0-4867 % © 2001-2008 Andre Vehreschild <vehreschild@sc.rwth-aachen.de> % © 2009-2013 Johannes Willkomm <johannes.willkomm@sc.tu-darmstadt.de> % RWTH Aachen University, 52056 Aachen, Germany % TU Darmstadt, 64289 Darmstadt, Germany % Visit us on the web at http://www.adimat.de/ % Report bugs to...
github
microsoft/ADBench-master
g_adimat_sol_qr.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_sol_qr.m
3,735
utf_8
2663c6863dc64cad823f2188d2c9d6b8
% Generated by ADiMat 0.6.0-4867 % Copyright 2009-2013 Johannes Willkomm, Fachgebiet Scientific Computing, % TU Darmstadt, 64289 Darmstadt, Germany % Copyright 2001-2008 Andre Vehreschild, Institute for Scientific Computing, % RWTH Aachen University, 52056 Aachen, Germany. % Visit us on the web at http://www.adimat.de ...