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
dpartial_log10.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_log10.m
569
utf_8
f06bfb2386538ae792c850a8c9261720
% function [dpartial y] = partial_log10(x) % % Compute partial derivative diagonal of y = log10(x). % % This returns the diagonal of the partial derivative. The partial % derivative matrix can be obtained by using diag(partial). % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkom...
github
microsoft/ADBench-master
a_vertcat.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_vertcat.m
584
utf_8
73cb681bcbfe245035ced44a087ac9c7
% function adj = a_vertcat(adj, v1, v2, ..., vi) % % compute adjoint of vertcat(v1, v2, ..., vi, ..., vn) w.r.t. vi. % % see also a_horzcat, a_sum % % This file is part of the ADiMat runtime environment % % Copyright 2011 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University...
github
microsoft/ADBench-master
matdiff1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/matdiff1.m
556
utf_8
e7f71de46cb29a43945b72147c5010b7
% function [dz z] = matdiff1(dx, x, handle) % % see also matdiff, partial_funm % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function [dz z varargout] = matdiff1(dx, x, handle) n = size(x, 1); zx = ...
github
microsoft/ADBench-master
admHessianT2ForMultS.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admHessianT2ForMultS.m
4,871
utf_8
87494ecdb5ca2b9a0f6676b13cb1587d
% function [Hessian, Jac, varargout] = ... % admHessian(handle, seedMatrix, arg1, arg2, ..., argN, admOptions?) % % Compute second order derivatives of function given by handle, % evaluated at the arguments arg1, arg2, ..., argN and return the % Hessian matrix. This works by running admOptions.admDiffFunction to % ...
github
microsoft/ADBench-master
admCheckDeps.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admCheckDeps.m
2,560
utf_8
48b327a97078ce3faf00a2f360de8b80
% function [r, newerList] = admCheckDeps(functionName) % % Check whether differentiated function file given by functionName % needs to be regenerated. This is the case when one of its % dependencies has changed. The dependencies are the original function % and functions called by it (transitively). % % Return false() w...
github
microsoft/ADBench-master
mk_givens.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/mk_givens.m
344
utf_8
69e76f95cef30f47a3b5dc82de8e86ac
% function G = mk_givens(c, s, n, i, j) % % Construct the Givens-rotation U(i,j,phi), or the (i,j)-rotation, of % order n given c = cos(phi) and s = sin(phi). % function G = mk_givens(c, s, n, i, j) G = speye(n); G(i,i) = c; G(j,j) = conj(c); G(i,j) = -s; G(j,i) = conj(s); end % $Id: mk_givens.m 4162 2014-05-...
github
microsoft/ADBench-master
adimat_pop_index1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_pop_index1.m
714
utf_8
187034798b8c170c2ca80df71554c08f
% function r = adimat_pop_index1(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_pop, adimat_pop_cell_index, adimat_push_index % % This ...
github
microsoft/ADBench-master
g_adimat_prod2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_prod2.m
2,603
utf_8
27419ad9bbddd2dca876d2ca7d925f63
% 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_adimat_norm2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_norm2.m
91,059
utf_8
f0fc85cfedad6777346a34007b9a3919
% 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_secd.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_secd.m
442
utf_8
8f4a288c16a28bf679e7c65697563b00
% function [dpartial y] = dpartial_secd(x) % % Compute partial derivative diagonal of y = secd(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
g_adimat_trapz.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_trapz.m
5,808
utf_8
777afb3441c8f51391dc61e458b7d17d
% 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_postpad2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_postpad2.m
238
utf_8
1db74e9944d5770beb7591fe406f088e
% function r = adimat_prepad(a,l,c) % % Mimic the function prepad, which is available in Octave, but not in MATLAB % % (c) 2018 Johannes Willkomm function r = adimat_postpad2(a,l) r = adimat_postpad(a,l,0,adimat_first_nonsingleton(a));
github
microsoft/ADBench-master
g_eig2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_eig2.m
374
utf_8
e0f7ea0b69d852e1f117d4a3772e9364
% function [g_V, V, g_D, D]= g_eig2(g_A, A) % % This file is part of the ADiMat runtime environment % % Copyright (C) 2015 Johannes Willkomm function [g_V, V, g_D, D] = g_eig2(g_A, A) [V D] = eig(A); TMP1 = V \ (g_A * V); TMP2 = d_eig_F(diag(D)); g_D = call(@diag, call(@diag, TMP1)); g_V = V * (TMP2 .* TMP1);...
github
microsoft/ADBench-master
admLogFile.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admLogFile.m
3,333
utf_8
4d3e7851c4145f575c59b97dfd8b3961
% function [r n] = admLogFile(name, fh) % % Set or retrieve output file handle for various ADiMat log messages. % % By default, all output file handles are set to 1 (standard console % output). Thus, by default, all ADiMat log messages will be printed % on the screen. This functions provides a mechanism to select...
github
microsoft/ADBench-master
matdiff.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/matdiff.m
883
utf_8
dc66ccdf38133c399298e2f4fec5a94a
% function [partial z] = matdiff(x, handle, base?) % % Compute derivative of matrix function z = handle(x) for square x % using the identity [z, dZ; 0, z] = f([x, dx; 0, x]). base is the % seed matrix. If base is not given it is set to eye(numel(x)). % % see also partial_funm, matdiff1 % % This file is part of the ADiM...
github
microsoft/ADBench-master
admToString.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admToString.m
987
utf_8
cc2530e585306e26d10c3efa8f883a8a
% function s = admToString(obj) % % Return a string representing obj. Floats are converted with % sprintf('%g', obj), integers and logicals with sprintf('%d', obj). % % see also admTransform, admBuildFlags % % This file is part of the ADiMat runtime environment % % Copyright 2009,2010 Johannes Willkomm, Institute for S...
github
microsoft/ADBench-master
a_ifft2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_ifft2.m
550
utf_8
962fb02d2dfa62137743636c1f2181d5
% function adj = a_ifft2(adj, ind, a, m?, n?) % % Compute adjoint of z = ifft2(x, m?, n?). % % 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_ifft2(adj, ind, a, m, n) sz...
github
microsoft/ADBench-master
adimat_neig.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_neig.m
331
utf_8
4050a7407555628e38b36930f1d8be2e
% function [V D] = adimat_neig(A) % % Return eigenvectors in a normalized form: first component is always % positive. % % Copyright (C) 2015 Johannes Willkomm function [V D] = adimat_neig(A) [V D] = eig(A); for k=1:size(V,2) V(:,k) = sign(V(1,k)) .* V(:,k); end % $Id: adimat_neig.m 5004 2015-05-18 21:20:08Z ...
github
microsoft/ADBench-master
dpartial_cotd.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_cotd.m
470
utf_8
db2eecc1f6b6cccca4a834de984ae17a
% function [dpartial y] = dpartial_cotd(x) % % Compute partial derivative diagonal of y = cotd(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
adimat_push_index1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_push_index1.m
599
utf_8
61c28c544860564c3872782e8954ee75
% function r = adimat_push_index1(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_cell_index, adimat_pop_index % % Thi...
github
microsoft/ADBench-master
a_besselh.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_besselh.m
585
utf_8
0b467e7dcd23b1e5e6e6af0b2e115199
% function [adj] = a_besselh(adj, nu, k, x, opt?) % % compute the adjoint of x in z = besselh(nu, k, x, opt?), where adj % is the adjoint of z. % % see also dpartial_besselh % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Fachgebiet Scientific Computing % ...
github
microsoft/ADBench-master
adimat_max22.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_max22.m
751
utf_8
4f8e04450b4296488920fa3c3917559d
% function adj = adimat_max22(val1, val2, adj) % % This determines the adjoint of val2 in z = max(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
a_adimat_prod2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_prod2.m
4,883
utf_8
f576473da69c4ddf16863cc9c1741758
% 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_cell2vao.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_cell2vao.m
324
utf_8
546b7e4ad2ce9d57463a6a5dfc6118d0
% function varargout = adimat_cell2vao(carr) % % Copyright 2011 Johannes Willkomm, Scientific Computing Group % TU Darmstadt % % This file is part of the ADiMat runtime environment % function varargout = adimat_cell2vao(carr) varargout = carr; % $Id: adimat_cell2vao.m 3119 2011-11-11 14:26:46Z willkom...
github
microsoft/ADBench-master
g_logm.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_logm.m
690
utf_8
dc6a43c9552ac8e6de2c87b6a99104a6
% function [g_z, z] = g_logm(g_x, x) % % Compute derivative of z = logm(x), matrix logarithm. 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_lo...
github
microsoft/ADBench-master
d_adimat_norm2_i1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_adimat_norm2_i1.m
19,676
utf_8
86e947a4a7784b25b9736afe33d38ebf
% 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_push1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_push1.m
337
utf_8
4d7544b889bbb467e4a313cd32e20aa1
% function r = adimat_push1(v) % store values on stack, return new size of stack % % see also adimat_store, adimat_pop, adimat_clear_stack, adimat_stack_size % % This file is part of the ADiMat runtime environment % function r = adimat_push1(obj) r = adimat_store(1, obj); % $Id: adimat_push1.m 4220 2014-05-16 12:5...
github
microsoft/ADBench-master
a_adimat_fftconv_2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_fftconv_2.m
13,737
utf_8
f4fb35522948fef33c5a6df74f330a5f
% Generated by ADiMat 0.6.2-5249 (10432437) % © 2001-2008 Andre Vehreschild <vehreschild@sc.rwth-aachen.de> % © 2009-2015 Johannes Willkomm <johannes@johannes-willkomm.de> % TU Darmstadt, 64289 Darmstadt, Germany % Visit us on the web at http://www.adimat.de/ % Report bugs to johannes@johannes-willkomm.de % % ...
github
microsoft/ADBench-master
a_eig21.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_eig21.m
546
utf_8
7e830a211994ad2665af2dd768f1f41f
% function a_A = a_eig11(a_V, a_D, A) % % Compute adjoint of A in [V D] = eig(A), given adjoints of V and D. % % see also a_eig_01_11, a_eig_10_11, a_eig_1_11 % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % TU Darmsta...
github
microsoft/ADBench-master
adimat_mldivide.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_mldivide.m
383
utf_8
06e5fb1cdfe14b8dcad63e510a2a489b
% function z = adimat_mldivide(A, B) % % Model MATLAB's \ operator (mldivide), for automatic differentiation. % % Copyright 2013 Johannes Willkomm, Fachgebiet Scientific Computing % TU Darmstadt function z = adimat_mldivide(A, B) if isscalar(A) z = B ./ A; else z = linsolve(A, B); end...
github
microsoft/ADBench-master
admIsOctave.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admIsOctave.m
560
utf_8
9d75d665c98fc09507fd695aac8e8434
% function [res vnum] = admIsOctave() % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt % Copyright 2017 Johannes Willkomm % % This file is part of the ADiMat runtime environment. % function [res vnum] = admIsOctave(minVersion) res = exist('octave_config_i...
github
microsoft/ADBench-master
admMatMultV3.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV3.m
952
utf_8
14c76307d6f300c9e01a082866934ddf
% 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
adimat_a_mrdivider.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_a_mrdivider.m
601
utf_8
13255149ef5cb95fac8938188030f053
% function adj = adimat_a_mrdivider(divident, divisor, adj) % % This determines the adjoint of divisor in expr = divident / divisor % where adj is the adjoint of expr. % % see also adimat_a_mldividel % % This file is part of the ADiMat runtime environment. % % Copyright 2010-2014 Johannes Willkomm % function adj = adim...
github
microsoft/ADBench-master
adimat_xslt.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_xslt.m
805
utf_8
abb66428a1797455fa040d42d3c599ff
% % function r = adimat_xslt(xsltProg, xsltMode?) % % get/set The XSLT processor used by the admproc program. The xsltProg % is the name of the program to execute. xsltMode specifies the % command line syntax. This latter currently has no effect. % % This feature is implemented by reading/setting the environment % vari...
github
microsoft/ADBench-master
a_eigs_1_11.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_eigs_1_11.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
adimat_padarray.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_padarray.m
538
utf_8
4aa5ca088bb24684c88796df4571ac8a
% function z = adimat_padarray(z, padcnt) % % Successively pad array z with padcnt(dim) slices of zeros along each % dimension dim. % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function z = adimat_pada...
github
microsoft/ADBench-master
a_adimat_fftconv2_2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_fftconv2_2.m
14,382
utf_8
629962e2efe92c15f6a43e4d0a2b3f6d
% Generated by ADiMat 0.6.2-5249 (10432437) % © 2001-2008 Andre Vehreschild <vehreschild@sc.rwth-aachen.de> % © 2009-2015 Johannes Willkomm <johannes@johannes-willkomm.de> % TU Darmstadt, 64289 Darmstadt, Germany % Visit us on the web at http://www.adimat.de/ % Report bugs to johannes@johannes-willkomm.de % % ...
github
microsoft/ADBench-master
a_besseli.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_besseli.m
573
utf_8
5b51c5839ad6e2cc65ea14c61941e5f6
% function [adj] = a_besseli(adj, nu, x, opt?) % % compute the adjoint of x in z = besseli(nu, x, opt?), where adj is % the adjoint of z. % % see also dpartial_besseli % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Fachgebiet Scientific Computing % TU D...
github
microsoft/ADBench-master
dpartial_asec.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_asec.m
482
utf_8
5dd29d7a3459fc1f90f353e12c12e60f
% function [dpartial y] = dpartial_asec(x) % % Compute partial derivative diagonal of y = asec(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
admMatMultV3MT.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV3MT.m
383
utf_8
2ee873dca520ac5211e43082dd10caf7
% function z = admMatMultV3(A, B) % % see also admMatMultV3 % % Copyright (C) 2014 Johannes Willkomm % function Z = admMatMultV3MT(A, B) % A is (m x n) matrix % B is (n x p x k) tensor szA = size(A); szB = size(B); Z = reshape( A * reshape(B, [szB(1), szB(2) .* size(B,3)]), [szA(1), szB(2), size(B,3)] );...
github
microsoft/ADBench-master
a_adimat_hess_11.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_hess_11.m
18,286
utf_8
fbc968c0ddba14d027e7052a0165e13f
% 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
a_eig22.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_eig22.m
547
utf_8
1818bd12e80e2529d55e1eb530f86f9e
% function a_A = a_eig11(a_V, a_D, A) % % Compute adjoint of A in [V D] = eig(A), given adjoints of V and D. % % see also a_eig_01_11, a_eig_10_11, a_eig_1_11 % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % TU Darmsta...
github
microsoft/ADBench-master
d_adimat_sol_qr1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_adimat_sol_qr1.m
4,587
utf_8
a6b4900b297be182931187d7a0b7e664
% 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
admLogLevel.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admLogLevel.m
524
utf_8
717bbc935906b83c4b9500d60896e35d
% function res = admLogLevel(lev) % % Set ADiMat logging level, which controls which ADiMat messages are % printed. The function returns the current level. With one arg, set % the new level. % % Copyright 2010,2011 Johannes Willkomm, Scientific Computing Group % TU Darmstadt function res = admLogLev...
github
microsoft/ADBench-master
a_complex2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_complex2.m
289
utf_8
36664f8d9b1f3cb575e574ae5259209b
% function a_y = a_complex(x, y, a_z) % % Compute adjoint a_y of z = complex(x, y), where a_z is the adjoint of z. % % Copyright (c) 2016 Johannes Willkomm function a_y = a_complex2(x, y, a_z) a_y = adimat_adjred(y, -imag(a_z)); % $Id: a_complex2.m 5110 2016-05-29 22:03:20Z willkomm $
github
microsoft/ADBench-master
a_svd_010.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_svd_010.m
1,307
utf_8
519e3dbca2f49e552be660a45ef5adbe
% function [adj U S V] = a_svd_010(adj, A) % % Compute adjoint of A in [ U S V ] = 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 2017 Johannes Willkomm % Copyrig...
github
microsoft/ADBench-master
admMakeSeedMatrixRev.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMakeSeedMatrixRev.m
746
utf_8
c2e160b56ea81b9afac1c61b840c0077
% function [seedMatrix jPattern coloring] = ... % admMakeSeedMatrixRev(seedMatrix, nCompInputs, admOpts) % % Copyright 2014 Johannes Willkomm % Copyright 2011 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment. ...
github
microsoft/ADBench-master
g_roots.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_roots.m
683
utf_8
5875459dc52f805bffdd0c45fd33df98
% function [g_r, r] = g_roots(g_c, c) % Compute derivative of r = roots(c). Also return the % function result r. % % Computation according to ansatz from Martin Bücker using implicit % function theorom. % % see also partial_roots % % This file is part of the ADiMat runtime environment % % Copyright 2011-2012 H.Mart...
github
microsoft/ADBench-master
admOptions.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admOptions.m
14,655
utf_8
3a4a1802ca91579b8668309eb922b321
% function r = admOptions(mode, indeps, deps, flags) % % This function generates a structure whos fields control several % aspects of the ADiMat differentiation functions. This structure can % by passed as the last argument to the functions admDiffFor, % admDiffVFor, admDiffRev, admDiffComplex, admDiffFD, and % ad...
github
microsoft/ADBench-master
g_eig.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_eig.m
286
utf_8
12a6e04683054516ec2ec8f346060f34
% function [g_l, l]= g_eig(g_A, A) % % This file is part of the ADiMat runtime environment % % Copyright (C) 2015 Johannes Willkomm function [g_l, l]= g_eig(g_A, A) [V D] = eig(A); l = diag(D); g_l = call(@diag, V \ (g_A * V)); % $Id: g_eig.m 4998 2015-05-18 16:21:55Z willkomm $
github
microsoft/ADBench-master
admMatMultV1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV1.m
697
utf_8
4f1933edecce85d99b601247846a7e48
% 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
adimat_derivclass_version.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_derivclass_version.m
783
utf_8
bb7b810818d0a5ce66f7c80efda6c231
% function [dcv dck] = adimat_derivclass_version() % get the version and revision of the derivative class ADiMat % dcv - derivative class version number: a double value % dck - derivative class name and version string % % Copyright 2010 Johannes Willkomm, Institute for Scientific Computing % ...
github
microsoft/ADBench-master
a_adimat_norm1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_norm1.m
91,250
utf_8
92a316cb5831f9eafe0b8b4a75e8ac4b
% 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_pow2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_pow2.m
531
utf_8
2e1346b3ce60d4570230cacd8a261f38
% function [dpartial y] = partial_pow2(x) % % Compute partial derivative diagonal of y = pow2(x). % % This returns the diagonal of the partial derivative. The partial % derivative matrix can be obtained by using diag(partial). % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm,...
github
microsoft/ADBench-master
a_hypot1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_hypot1.m
462
utf_8
006fe72031613a230c5b64ffdd0bdf98
% function [a_x] = a_hypot(a_z, x, y) % % Compute adjoint of x in z = hypot(x, y), given the adjoint of z. % % see also a_zeros, a_mean % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function [a_x z] = a_hypot(a_z, x, y) % t = x.^2 + y.^2 % z = sqrt(t...
github
microsoft/ADBench-master
a_sparse356.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_sparse356.m
497
utf_8
a6720714d25d02d518b3f46784cd0fcd
% function adj = a_sparse(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_sparse356(adj, is, js, vals, m, n, nzmax) if nargin < 5 m = max(is);...
github
microsoft/ADBench-master
adimat_adjmultl.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_adjmultl.m
795
utf_8
e85f17267a75dc04c3b68f3d9988e907
% function r = adimat_adjmultl(val, adj, factor) % % This determines the adjoint value of val in expr = val * factor % where adj is the adjoint of expr. % % If val is a scalar return adimat_allsum(adj .* factor) % otherwise return adj * factor'. % % see also adimat_adjmultm, adimat_adjmultr, adimat_adjred, adim...
github
microsoft/ADBench-master
adimat_norm2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_norm2.m
1,764
utf_8
6690aef98149cf39a95dc9b4d1aea863
% function [r] = adimat_norm2(x, p) % % Compute r = norm(x, p), for AD. % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function [r] = adimat_norm2(x, p) % r = norm(x, p); if ischar(p) if strcmp(lower(p), 'fro') r = sqrt(sum(x(:) .* co...
github
microsoft/ADBench-master
adimat_sol_qr.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_sol_qr.m
570
utf_8
77a3b165864242580a2a501a8d3064a3
% function z = adimat_sol_qr(a, b) % % Solve linear system a*x = b for x by QR decomposition, for automatic % differentiation. % % Copyright 2013,2014 Johannes Willkomm % function z = adimat_sol_qr(a, b) [m n] = size(a); if m < n [q r] = qr(a'); r1 = r(1:m,:); t = linsolve(r1, b, struct('UT', true, 'TR...
github
microsoft/ADBench-master
a_interp1q.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_interp1q.m
498
utf_8
7cb04081be0f7221a1b7f6eee9afefbf
% function adj = a_interp1q(adj, xs, ys, xis) % compute adjoint of ys in interp1q(xs, ys, xis) % % see also a_zeros, a_sum % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function adj = a_interp1q(adj, ...
github
microsoft/ADBench-master
admDiff.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admDiff.m
4,738
utf_8
76d348e119a34a414a66422a864c9018
% function [Jacobian, varargout] = admDiff(handle, seedMatrix, arg1, arg2, ..., argN, admOptions?) % % Call either admDiffFor, admDiffRev or admDiffVFor depending on % options. % % see also admDiffFor, admDiffRev, admDiffVFor % % This file is part of the ADiMat runtime environment. % % Copyright 2009,2010 Johannes Wi...
github
microsoft/ADBench-master
adimat_min1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_min1.m
542
utf_8
db8db4459687dce343de1f1b91baa524
% % function r = adimat_min1(val, adj) % this determines the adjoint value of min(val), % where the adjoint of val is given as parameter adj % % see also adimat_allsum, adimat_adjmultl, adimat_adjmultr % % This file is part of the ADiMat runtime environment % function r = adimat_min1(val, adj) [mv, mi] = min(val...
github
microsoft/ADBench-master
adimat_getleigvect.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_getleigvect.m
436
utf_8
87a61c26d309764dc24d52060cbdfa3d
% function [L] = adimat_getleigvect(A, lambda, R) % % This file is part of the ADiMat runtime environment % % Copyright (C) 2015 Johannes Willkomm function [L] = adimat_getleigvect(A, lambda, R) neigs = 1; tol = 1e-13; [L Ds] = eigs(A.', neigs, lambda); [closest, i] = min(diag(Ds) - lambda); L = L(:,i).'; a...
github
microsoft/ADBench-master
partial_cumsum.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/partial_cumsum.m
496
utf_8
de5a083672d9f1a8d185c6dcb2e03925
% function z = partial_cumsum(arg...) % % Compute partial derivative of cumsum function % % see also cumsum % % Copyright (C) 2015 Johannes Willkomm function J = partial_cumsum(X, dim) if nargin < 2 dim = adimat_first_nonsingleton(X); end sz = size(X); bef = prod(sz(1:dim-1)); aft = prod(sz(dim+1:end)); ...
github
microsoft/ADBench-master
admTaylorRev.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admTaylorRev.m
9,756
utf_8
b32b155f81f5853742ea3124efb3f513
% function [TCsRev, TCsFor, varargout] = admTaylorRev(handle, seedMatrix, varargin) % % Evaluate derivatives in forward-over-reverse mode, by running the RM % differentiated code with the tseries class for univariate Taylor % series in FM. % % see also admDiffRev, tseries, admOptions. % % This file is part of the ADiM...
github
microsoft/ADBench-master
d_adimat_sol_triu.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_adimat_sol_triu.m
2,303
utf_8
148e37f33f6bcfc6b9d9c748e7c06b12
% 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
a_logm.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_logm.m
448
utf_8
07fc3446364d083d3f4529ad8a5e7fa4
% function [a_x] = a_logm(a_z, x) % % Compute adjoint of x in z = logm(x), matrix logarithm, 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] = a_logm(a_z, x) [p...
github
microsoft/ADBench-master
g_besselj.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_besselj.m
612
utf_8
521afad68347dee65ded4c29a018d87a
% function [z, g_z] = g_besselj(nu, g_x, x, opt?) % % compute the derivative of z in z = besselj(nu, x, opt?), where g_x % is the derivative of x. % % see also dpartial_besselj % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Fachgebiet Scientific Computing % ...
github
microsoft/ADBench-master
a_cross.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_cross.m
960
utf_8
d1f0b484928da4cb184076a1af4a4d57
% function adj = a_cross(a_z, ind, a, b) % when ind == 1, compute adjoint of a in z = cross(a, b) % when ind == 2, compute adjoint of b in z = cross(a, b) % 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 Willkomm, Institu...
github
microsoft/ADBench-master
admHessianT2For.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admHessianT2For.m
3,185
utf_8
a4715ad2c6a9eec5e9c0eeea713bcfe3
% function [Hessian, Jac, f1, f2, ..., timings] = ... % admHessian(handle, seedMatrix, arg1, arg2, ..., argN, admOptions?) % % Compute second order derivatives of function given by handle, % evaluated at the arguments arg1, arg2, ..., argN and return the % Hessian matrix. This works by running admOptions.admDiffFun...
github
microsoft/ADBench-master
g_adimat_sol_triu.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_sol_triu.m
3,381
utf_8
20f0a992e79784d1090240517e3c31fa
% Generated by ADiMat 0.6.0-4788 % 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
admDiffFor2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admDiffFor2.m
5,577
utf_8
bfb3fb988be88225408af4cad02e171e
% function [Hessian, Jacobian, varargout] = admDiffFor2(handle, seedMatrix, arg1, arg2, ..., argN, admOptions?) % % see also admHessian, admDiffFor. % % This file is part of the ADiMat runtime environment. % % Copyright 2010,2011 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen Un...
github
microsoft/ADBench-master
admCanonFDMethodName.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admCanonFDMethodName.m
879
utf_8
74d0f48fcca39c9d98e67104eb376a20
% function z = admCanonFDMethodName(meth) % % Canonicalize the alias names for the three FD methods central, % forward, and backward. % % see also admDiffFD, admOptions. % % This file is part of the ADiMat runtime environment. % % Copyright 2010,2011 Johannes Willkomm, Institute for Scientific Computing % ...
github
microsoft/ADBench-master
a_eigs_11_31.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_eigs_11_31.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
a_svd_011.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_svd_011.m
2,260
utf_8
4119f02fe3a18f16aa16843497235fcc
% function [a_A U S V] = a_svd_011(a_S, a_V, A) % % Compute adjoint of A in [ U S V ] = svd(A), where a_S and a_V are % the adjoints of S and V, resp. % % Using the method from Mike Giles, "An extended collection of matrix % derivative results for forward and reverse mode algorithmic % differentiation", 2008, adding in...
github
microsoft/ADBench-master
mk_householder_elim_vec_lapack.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/mk_householder_elim_vec_lapack.m
1,002
utf_8
6b4b9c042771d23f5986912bc3ceb7ba
% function [Pk u] = mk_householder_elim_vec_lapack(a, n) % % input: column vector a % result: Householder matrix H = I - sigma u u' % % This computes H in LAPACK style [1], and thus also as Matlab and % Octave do. % % [1] Lehoucq, Richard B, "The computation of elementary unitary matrices", 1996 % % Copyright (C) 2013...
github
microsoft/ADBench-master
a_ctranspose.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_ctranspose.m
715
utf_8
8b67d44fa3f421ac4fe46f3deb7f68c5
% function adj = a_ctranspose(adj, val) % % compute adjoint of val in z = ctranspose(val), where adj is the % adjoint of z. % % see also a_zeros, a_sum % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm % function adj = a_ctranspose(adj, val) % nz = val ~= 0; % factor = ...
github
microsoft/ADBench-master
adimat_a_mrdividel.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_a_mrdividel.m
574
utf_8
5e180c4b3db016e448dbb63939228355
% function adj = adimat_a_mrdividel(divident, divisor, adj) % % This determines the adjoint of divident in expr = divident / divisor % where adj is the adjoint of expr. % % see also adimat_a_mldivider % % This file is part of the ADiMat runtime environment. % % Copyright 2010-2014 Johannes Willkomm % function adj = adi...
github
microsoft/ADBench-master
a_fft.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_fft.m
1,013
utf_8
1db52ac74d82746d0c95aa1d99645617
% function adj = a_fft(adj, ind, a, n, dim) % % Compute adjoint of z = fft(x, n?, dim?). % % 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_fft(adj, ind, a, n, dim) if n...
github
microsoft/ADBench-master
adimat_svd.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_svd.m
2,810
utf_8
63fc2e7c24842cdfbab8cdad4ac7a32d
% function [U S V] = adimat_svd(A) % % Compute the SVD of matrix A with the algorithm from [1]. % % [1] J. C. Nash and S. Shlien, "Simple Algorithms for the Partial % Singular Value Decomposition", The Computer Journal, 1987. % % Copyright 2013 Johannes Willkomm % function [U S V] = adimat_svd(A) [m n] = size(A); ...
github
microsoft/ADBench-master
d_adimat_qr.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_adimat_qr.m
5,326
utf_8
4d988ddb7502d7e5a90b7b1d5edff6fd
% 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_cscd.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_cscd.m
447
utf_8
39bc720c2de59a4ad4dc03b9a0817b14
% function [dpartial y] = dpartial_cscd(x) % % Compute partial derivative diagonal of y = cscd(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
admMakeSeedMatrixFor.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMakeSeedMatrixFor.m
1,633
utf_8
c73e168352d5a7f3f0e40b4cead12d9a
% function [seedMatrix coloring jPattern] = ... % admMakeSeedMatrixFor(seedMatrix, nCompInputs, admOpts) % % Copyright 2011 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment. % function [seedMatrix coloring jPa...
github
microsoft/ADBench-master
admCompareOptions.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admCompareOptions.m
1,017
utf_8
ab10eff3c85e8a0904eba8991dbc6081
% function r = admCompareOptions(s1, s2) % % Compare ADiMat options structure: if different, re-transform the % source. Thus this functions checks only those fields that may % actually influence the transformation process. % % Copyright 2011 Johannes Willkomm, Institute for Scientific Computing % ...
github
microsoft/ADBench-master
dpartial_besselk.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_besselk.m
984
utf_8
83be59beb5302a91387e66170e0cf479
% function [dz, z] = dpartial_besselk(nu, x, opt?) % % Compute partial derivative diagonal of z = besselk(nu, x, opt) % w.r.t. x. % % This function uses Abramowitz and Stegun, 10th printing, 1972, % p. 376, 9.6.26, fourth eq. % cf. http://people.math.sfu.ca/~cbm/aands/page_376.htm % or http://people.maths.ox.ac.uk/~mac...
github
microsoft/ADBench-master
partial_interp1q.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/partial_interp1q.m
691
utf_8
9cdaaae106f46fff56d3f2cdfd8c5569
% function [partial z] = partial_interp1(xs, ys, xis, varargin) % compute partial interp1(xs, ys, xis, ...) w.r.t. to ys % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function [partial z] = partial_in...
github
microsoft/ADBench-master
dpartial_acsch.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_acsch.m
486
utf_8
f50f9839db8137256bf8640ca775dbf6
% function [dpartial y] = dpartial_acsch(x) % % Compute partial derivative diagonal of y = acsch(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
adimat_hess.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_hess.m
692
utf_8
c46f08dc47ee371c82cad60f3b4745fa
% function [Q H] = adimat_hess(A) % % Compute Q and H such that H = Q' * A * Q and H is upper % Hessenberg. % % This is ADiMat's replacement for the builtin function [Q H] = % hess(A), to be used for AD. % % TODO: This function is for general matrices. There is a special % algorithm in LAPACK for symmetric/hermitian m...
github
microsoft/ADBench-master
adimat_first_nonsingleton.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_first_nonsingleton.m
371
utf_8
b2b02ab07a051af798cfadff0bb6f526
% function res = adimat_first_nonsingleton(val) % % This file is part of the ADiMat runtime environment % % Copyright 2011,2013 Johannes Willkomm function res = adimat_first_nonsingleton(val) sz = size(val); ind = find(sz ~= 1); if length(ind) > 0 res = ind(1); else res = 1; end % $Id: adimat_first_n...
github
microsoft/ADBench-master
partial_poly.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/partial_poly.m
643
utf_8
ef728660944736075b7520b03a6ff110
% function [partial c] = partial_poly(r) % Compute partial derivative of c = poly(r). Also return the % function result c. % % see also g_poly, a_poly % % This file is part of the ADiMat runtime environment % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen Un...
github
microsoft/ADBench-master
d_adimat_chol2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_adimat_chol2.m
6,567
utf_8
2a90f57cae12c4929f85ab6e367bdbbf
% 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_push_index2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_push_index2.m
621
utf_8
edb3595b82fe7e440b161554c5a1b043
% function r = adimat_push_index2(arrayVar, index1, index2) % 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_cell_index, adimat_pop_index...
github
microsoft/ADBench-master
dpartial_besseli.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_besseli.m
992
utf_8
955c435322c60f29ccd667c73d1b5796
% function [dz, z] = dpartial_besseli(nu, x, opt?) % % Compute partial derivative diagonal of z = besseli(nu, x, opt) % w.r.t. x. % % This function uses Abramowitz and Stegun, 10th printing, 1972, % p. 376, 9.6.26, fourth eq. % cf. http://people.math.sfu.ca/~cbm/aands/page_376.htm % or http://people.maths.ox.ac.uk/~mac...
github
microsoft/ADBench-master
a_rmfield.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_rmfield.m
536
utf_8
13cb6bc881e8ad6940eb3686657192e2
% % function adj = a_rmfield(adj, varargin) % compute adjoint of rmfield(val, varargin{:}) % % see also a_mean, a_repmat % % This file is part of the ADiMat runtime environment % function adj = a_rmfield(adj, val, names) if iscell(names) for i=1:length(names) name = names{i}; for k=1:numel(val) ...
github
microsoft/ADBench-master
adimat_prepad2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_prepad2.m
236
utf_8
a1aabec3566d360fb86c8ae85608d01a
% function r = adimat_prepad(a,l,c) % % Mimic the function prepad, which is available in Octave, but not in MATLAB % % (c) 2018 Johannes Willkomm function r = adimat_prepad2(a,l) r = adimat_prepad(a,l,0,adimat_first_nonsingleton(a));
github
microsoft/ADBench-master
a_adimat_hess_10.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_hess_10.m
18,283
utf_8
f2d4325cee74df4dc0a071122ebb0451
% 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_g_trapz.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_g_trapz.m
776
utf_8
ccfd1d25c6834a83889cb56ccdb12397
% function [g_z z] = adimat_g_trapz(g_a, a, g_b, b, c) % % Copyright (C) 2015 Johannes Willkomm function [g_z z] = adimat_g_trapz(g_a, a, g_b, b, c) if nargin == 2 % trapz(Y) z = trapz(a); J_Y = partial_trapz_Y(a); g_z = J_Y * g_a(:); elseif nargin == 4 z = trapz(a, b); J_Y = partial_trapz_Y...
github
microsoft/ADBench-master
adimat_allsum.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_allsum.m
469
utf_8
8023122b7dce65224839d4edfb7f375c
% function r = adimat_allsum(obj) % % this function computes the sum of all values in obj % if obj is a scalar return obj % if obj is a vector return sum(obj) % if obj is a matrix return sum(sum(obj)) % % see also adimat_adjred, adimat_adjmultl, adimat_adjmultr % % This file is part of the ADiMat runtime enviro...
github
microsoft/ADBench-master
a_interp3.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_interp3.m
585
utf_8
6bc887e3456127558da4b0a47f201e27
% function adj = a_interp3(adj, xs,ys,zs, v, xis,yis,zis, ...) % compute adjoint of v in interp3(adj, xs,ys,zs, v, xis,yis,zis, ...) % % see also a_zeros, a_sum % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Dar...
github
microsoft/ADBench-master
adimat_aio_init.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_aio_init.m
2,296
utf_8
20c38273550111698ea13542618c3466
% function r = adimat_aio_init(nThreads?, nBuffers?, idleTime?, direct?) % % get/set some parameters of the aio.h API. This functionality is % implemented by setting the environment variables AIO_THREADS, % AIO_NUM, and AIO_IDLE_TIME, respectively. The variable's values are % used to call the non standard function aio_...