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_pop_index.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_pop_index.m
715
utf_8
3fa7c3eff6a3cef1b2c296bdc6693df5
% function r = adimat_pop_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_pop, adimat_pop_cell_index, adimat_push_index % % T...
github
microsoft/ADBench-master
d_adimat_expm.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_adimat_expm.m
10,859
utf_8
c6c7ba62917d4e41729317aa673f7024
% 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_cosh.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_cosh.m
451
utf_8
8772f29cc98e99408ebb8cf451adef2f
% function [dpartial y] = dpartial_cosh(x) % % Compute partial derivative diagonal of y = cosh(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_zeros_field.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_zeros_field.m
777
utf_8
338d381c373cc0f6b15868f2803d7994
% function r = a_zeros_field(adjArrayVar, arrayVar, fieldName) % Zero adjoint of field expression after assignment. % % see also adimat_pop_field, a_zeros, a_zeros_index % % This file is part of the ADiMat runtime environment % function r = a_zeros_field(adjArrayVar, arrayVar, fieldName) if isfield(arrayVar, field...
github
microsoft/ADBench-master
adimat_h_mldivide.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_h_mldivide.m
770
utf_8
8a8ad38107e7bd07cec812e64fd0dafb
% function [h_g_z g_z z] = adimat_h_mldivide(h_g_a, g_a, h_a, a, h_g_b, g_b, h_b, b) % % Compute first and second order derivative of z = a \ b, matrix left % division. Also return the function result z. % % This file is part of the ADiMat runtime environment. % % Copyright (C) 2013,2014 Johannes Willkomm % function [h...
github
microsoft/ADBench-master
a_sort.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_sort.m
681
utf_8
ff034fb6781a378bb03719610e66c3ae
% function adj = a_sort(adj, adjind, val, dim?, mode?) % % Compute adjoint of val in z = sort(val, dim?, mode?) where adj is % the adjoint of val. % % see also a_mean % % This file is part of the ADiMat runtime environment % % Copyright (C) 2013,2015 Johannes Willkomm function adj = a_sort(adj, adjind, val, dim, mode) ...
github
microsoft/ADBench-master
a_adimat_cumtrapz.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_cumtrapz.m
25,468
utf_8
5184810031f83823b25a77f507cca97a
% 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
admproc.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admproc.m
856
utf_8
5943e41cd6e10fe802bb5f0aa3a60a72
% function [success, message] = admproc(func, indeps, deps, flags, debug) % % Differentiate the function func using ADiMat in reverse mode. This % function is deprecated, please use admTransform instead. % % see also admTransform, admDiffFor, admDiffRev % % This file is part of the ADiMat runtime environment % function...
github
microsoft/ADBench-master
admMatMultV3TMa.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV3TMa.m
418
utf_8
e260b19b1119aefd3ad9907f1e71181c
% function Z = admMatMultV3TMa(A, B) % % see also admMatMultV3 % % Copyright (C) 2014 Johannes Willkomm % function Z = admMatMultV3TMa(A, B) % A is (m x n x k) tensor % B is (n x p) matrix szA = size(A); szB = size(B); Bt = B.'; Z = zeros([szA(1), szB(2), size(A,3)]); for k=1:szA(1) Z(k,:,:) =...
github
microsoft/ADBench-master
a_polyvalm1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_polyvalm1.m
565
utf_8
96f71b4aa7dd2775882195f0db2f6163
% function [a_p] = a_polyval(a_z, p, x) % % Compute adjoint of p 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_p z] ...
github
microsoft/ADBench-master
a_cumtrapz.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_cumtrapz.m
1,326
utf_8
d1586c4f32bc8b92cbac99e5b3a582a0
% function z = a_cumtrapz(adj, ind, a, b, c) % % Copyright (C) 2015 Johannes Willkomm function z = a_cumtrapz(adj, ind, a, b, c) if nargin-2 == 1 % cumtrapz(Y) if ind == 1 J_Y = partial_cumtrapz_Y(a); z = adj(:).' * J_Y; z = reshape(z, size(a)); else z = ascalaradj(); end els...
github
microsoft/ADBench-master
adimat_end.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_end.m
405
utf_8
d8f1a5249f17318a67cade46985a6f6c
% function r = adimat_end(arr, k, n) % % Copyright 2010-2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt % % This file is part of the ADiMat runtime environment % function r = adimat_end(arr, k, n) sz = size(arr); if k == n && length(sz) > n r = prod(sz(n:end)); ...
github
microsoft/ADBench-master
dpartial_asin.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_asin.m
465
utf_8
0cf0b7730b69c23dbbc88359b7473d0c
% function [dpartial y] = dpartial_asin(x) % % Compute partial derivative diagonal of y = asin(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
d_polyvalm.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_polyvalm.m
797
utf_8
35542d07b0c7ca2f486f42ec98c90f4c
% function [d_z z] = d_polyvalm(d_p, p, d_x, x) % % Compute derivative of z in z = polyval(p, x), matrix polynomial % p(x), given the derivatives of p and x. % % This file is part of the ADiMat runtime environment. % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % TU Darmsta...
github
microsoft/ADBench-master
admBuildFlags.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admBuildFlags.m
857
utf_8
a8bf9fb4045703edd1b393a9dfd0286b
% function str = admBuildFlags(s) % % Construct an options string from a struct. The struct is taken as a % name=value mapping and the resulting string has a substring ' -s % name="value"' for each entry. Names are the struct field names, % values are converted to string using function admToString. % % see also admTran...
github
microsoft/ADBench-master
a_linsolve2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_linsolve2.m
1,450
utf_8
b51ab38f7a908e568a391ee6496848d3
% function [a_b] = a_linsolve2(a_z, a, b, varargin) % % Compute adjoint of b in z = linsolve(a, b, opts), linear system % solving. % % This file is part of the ADiMat runtime environment. % % Copyright 2013,2014 Johannes Willkomm % function [a_b] = a_linsolve2(a_z, a, b, varargin) [m n] = size(a); if nargin > 3 ...
github
microsoft/ADBench-master
dpartial_acosh.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_acosh.m
482
utf_8
900807f3633b0fe5dedc76855adf0cbb
% function [dpartial y] = dpartial_acosh(x) % % Compute partial derivative diagonal of y = acosh(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_pop.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_pop.m
452
utf_8
e8ff380b938a24081a9f69b5cf0da0d2
% function r = adimat_pop() % pop value from stack % % see also adimat_push, adimat_store, adimat_clear_stack, adimat_stack_size % % This file is part of the ADiMat runtime environment % % Copyright 2010-2014 Johannes Willkomm % function varargout = adimat_pop() npop = max(1, nargout); varargout = cell(npop, 1); ...
github
microsoft/ADBench-master
a_adimat_trapz_i2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_trapz_i2.m
18,571
utf_8
a724167147f561eddee72c1d5fd2a1a5
% 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_complex1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_complex1.m
344
utf_8
226c48992b943e191e1bf0a054db10c2
% function a_x = a_complex(x, y, a_z) % % Compute adjoint a_x of z = complex(x, y), where a_z is the adjoint of z. % % This file is part of the ADiMat runtime environment % % Copyright (c) 2016 Johannes Willkomm function a_x = a_complex1(x, y, a_z) a_x = adimat_adjred(x, real(a_z)); % $Id: a_complex1.m 5110 2016-05-...
github
microsoft/ADBench-master
adimat_a_mpowerr.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_a_mpowerr.m
411
utf_8
fd01a6cb418a938cd15d6bd0ddcfc2b7
% function [a_b, z] = adimat_a_mpowerr(a, b, a_z) % % Compute adjoints a_b of z = a^b, matrix exponentiation. Also return % the function result z. % % This file is part of the ADiMat runtime environment. % % Copyright 2010-2012,2014 Johannes Willkomm % function [a_b, z] = adimat_a_mpowerr(a, b, a_z) [~, a_b, z] = adi...
github
microsoft/ADBench-master
a_adimat_sol_triu.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_sol_triu.m
6,668
utf_8
a0f430ce35d27d2a2e8dc03accef30aa
% 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
g_adimat_norm2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_norm2.m
7,402
utf_8
5beb303c70d31ded71ef956528cb0eef
% 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
dpartial_exp.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_exp.m
550
utf_8
cebb3d225d40a21e981930004df2e82c
% function [dpartial y] = partial_exp(x) % % Compute partial derivative diagonal of y = exp(x). % % This returns the diagonal of the partial derivative. The partial % derivative matrix can be obtained by using diag(dpartial). % % see also dpartial_sqrt, etc. % % This file is part of the ADiMat runtime environment % % C...
github
microsoft/ADBench-master
adimat_normalize_size.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_normalize_size.m
376
utf_8
5a61728dc7391c9a0dd9e8c48c9302e8
% function sz = adimat_normalize_size(sz) % % This file is part of the ADiMat runtime environment % % Copyright (C) 2015 Johannes Willkomm function sz = adimat_normalize_size(sz) nones = sz ~= 1; if any(nones) last = max(2, max(find(nones))); sz = sz(1:last); else sz = sz(1:2); end end % $Id: adima...
github
microsoft/ADBench-master
g_adimat_mpower.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_mpower.m
2,998
utf_8
6f48b45ce3b10d14409ab442706ae34e
% 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_cross2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_cross2.m
831
utf_8
4be6ece32284acded70d56b25e6aa5dc
% function g_z = g_cross2(g_a, a, g_b, b) % % Compute derivative of z = cross(a, b). % % This file is part of the ADiMat runtime environment. % % Copyright (c) 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt % Copyright (c) 2016 Johannes Willkomm function g_z = g_cross2(g_a...
github
microsoft/ADBench-master
adimat_a_mpowerl.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_a_mpowerl.m
459
utf_8
9e914e6cb4d46329a99dfbe516381ff3
% function [a_a, z] = adimat_a_mpowerl(a, b, a_z) % % Compute adjoint a_a of z = a^b, matrix exponentiation. Also % return the function result z. % % This file is part of the ADiMat runtime environment. % % Copyright 2010-2012,2014 Johannes Willkomm % function [a_a, z] = adimat_a_mpowerl(a, b, a_z) % FIXME: Provide s...
github
microsoft/ADBench-master
admMakeUserSeedMatrix.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMakeUserSeedMatrix.m
409
utf_8
830bb06dee035776192b93c28817e31a
% function [seedMatrix] = admMakeUserSeedMatrix(seedMatrix, nCompInputs) % % Copyright 2011 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment. % function [seedMatrix mod] = admMakeUserSeedMatrix(seedMatrix, nCompInp...
github
microsoft/ADBench-master
dpartial_cosd.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_cosd.m
467
utf_8
556036641eb03f4cd12b48edcc5cf999
% function [dpartial y] = dpartial_cosd(x) % % Compute partial derivative diagonal of y = cosd(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_cumtrapz.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_cumtrapz.m
1,736
utf_8
6db3c434e31e9f50c15304e8c42c1f90
% function z = adimat_cumtrapz(varargin) % % ADiMat replacement function for cumtrapz % % Copyright (C) 2015 Johannes Willkomm function z = adimat_cumtrapz(a, b, c) if nargin == 1 % trapz(Y) z = adimat_cumtrapz_uni1(a); elseif nargin == 2 if isscalar(b) % trapz(Y, dim) z = adimat_cumtrapz_un...
github
microsoft/ADBench-master
dpartial_sinh.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_sinh.m
451
utf_8
e84b042d0c11e4008333a43f91b899e0
% function [dpartial y] = dpartial_sinh(x) % % Compute partial derivative diagonal of y = sinh(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_sidestack.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_sidestack.m
1,913
utf_8
b6b428461ef85afc1000ea9643707aff
% function r = adimat_sidestack(mode, v) % mode=0: pop value from stack % mode=1: store value on stack % mode=2: clear stack % mode=3: query stack size % mode=4: query reserved stack size % mode=5: flush the stack (N/A) % mode=6: return the file size of the stack (N/A) % mode=7: return the entire stack ...
github
microsoft/ADBench-master
cost_function_hmult.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/cost_function_hmult.m
1,184
utf_8
014da0e0e43ee1759bfd38faf3bf471a
% function [HessV] = cost_function_hmult(x, V, params, adopts) % % An example wrapper function to adapt ADiMat to Matlab's fminunc when % using the HessMult field. % % [HessV] = cost_function_hmult(x, V, params, adopts) % % Run admHessian with seed vector V so that it returns the product H*V % of the Hessian and vecto...
github
microsoft/ADBench-master
adimat_h_mrdivide2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_h_mrdivide2.m
558
utf_8
8243402bcfe5389dcabf4fd4f965048a
% function [h_z g_z z] = adimat_h_mrdivide2(h_a, a, h_b, g_b, b) % % Compute first and second order derivative of z = a / b, matrix right % 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...
github
microsoft/ADBench-master
admDepList.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admDepList.m
1,212
utf_8
0ec365c7c19e7493b1a236c7e3c4691e
% function depList = admDepList(functionFile) % % Return the name of the dependency list file for functionFile. The % dependency list file will be in a status directory .adimat relative % to the file, which is created by this function if it does not exist. % % functionFile can have or not have the .m suffix. If it sta...
github
microsoft/ADBench-master
a_adimat_svd.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_svd.m
78,766
utf_8
fd381830fb0ca760ad5bb54419a996c9
% 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
d_adimat_norm1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/d_adimat_norm1.m
19,845
utf_8
e98a3aa89c5f37bca5a1707b17b3a886
% 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_g_pow_right.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_g_pow_right.m
1,507
utf_8
4a54eed16acd7abadac1ce0664c5feaa
% function [g_z z] = adimat_g_pow_right(a, g_b, b) % % Compute derivative of z = a^b, matrix exponentiation. Also return % the function result z. This a special version for constant a. % % This file is part of the ADiMat runtime environment. % % Copyright 2010-2012 Johannes Willkomm, Institute for Scientific Computing ...
github
microsoft/ADBench-master
dpartial_log1p.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_log1p.m
562
utf_8
219978a533ae9752c6a06e8f9a57c2c6
% function [dpartial y] = partial_log1p(x) % % Compute partial derivative diagonal of y = log1p(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
partial_interp1_3.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/partial_interp1_3.m
1,530
utf_8
448d28dff1cc78a84c8266232ddd7f18
% function [partial z] = partial_interp1_3(xs, ys, xis, varargin) % % Compute partial interp1(xs, ys, xis, ...) w.r.t. to xis % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function [partial z] = partial...
github
microsoft/ADBench-master
admTransform.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admTransform.m
8,082
utf_8
88549563de5325b441ecc9e4d73700eb
% function [success, message] = admTransform(func, indeps, deps, flags, opts) % % function [success, message] = admTransform(func, opts) % => admTransform(func, opts.indeps, opts.deps, [opts.mode ' ' opts.flags], opts) % % Differentiate the function func using ADiMat in reverse mode. % % Use automatic differentiation...
github
microsoft/ADBench-master
a_roots.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_roots.m
686
utf_8
3cd7265597de742e70f1765800596e45
% function a_c = a_roots(a_r, c) % Compute adjoint of r = roots(c). % % 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.Martin Bücker, Institute for Scientific Computing %...
github
microsoft/ADBench-master
adimat_getlreigvects.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_getlreigvects.m
631
utf_8
b45e13e97874d00ada0f62abfe5a1dce
% function [L R] = adimat_getlreigvects(A, lambda) % % This file is part of the ADiMat runtime environment % % Copyright (C) 2015 Johannes Willkomm function [L R] = adimat_getlreigvects(A, lambda) neigs = 1; tol = 1e-13; [R Ds] = eigs(A, neigs, lambda); [closest, i] = min(diag(Ds) - lambda); % abs(Ds(i) - lamb...
github
microsoft/ADBench-master
a_trapz.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_trapz.m
1,287
utf_8
0a86f8e8275037b07862543841f018fc
% function z = a_trapz(adj, ind, a, b, c) % % Copyright (C) 2015 Johannes Willkomm function z = a_trapz(adj, ind, a, b, c) if nargin-2 == 1 % trapz(Y) if ind == 1 J_Y = partial_trapz_Y(a); z = adj(:).' * J_Y; z = reshape(z, size(a)); else z = ascalaradj(); end elseif nargin-2...
github
microsoft/ADBench-master
admPlotStackHistory.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admPlotStackHistory.m
4,591
utf_8
75f0fe0f49f3075949d03fed71caf933
function [r_figures] = admPlotStackHistory(stackInfo, admOpts, tF) persistent legends1 legends2 figures maxSize maxItems minX maxX if nargin == 1 fprintf(1, 'load result data from file: %s\n', stackInfo); s = load(stackInfo); stackInfo = s.stackInfo; admOpts = s.admOpts; tF = s.tF; end r...
github
microsoft/ADBench-master
admUseParallel.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admUseParallel.m
782
utf_8
8ec51d18f85498704ade0c4e29690698
% function [res] = admUseParallel() % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt % % This file is part of the ADiMat runtime environment. % function [res] = admUseParallel() % here we use uigetpref directly since it concerns only MATLAB anyway. % u...
github
microsoft/ADBench-master
adimat_lreigs.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_lreigs.m
993
utf_8
c9ef222a95a30bfc58b4647e94921bff
% function [V D U]= adimat_lreigs(A, varargin) % % This file is part of the ADiMat runtime environment % % Copyright (C) 2015 Johannes Willkomm function [V D U]= adimat_lreigs(A, varargin) [U D] = eigs(A, varargin{:}); k = size(U, 2); [V, D2] = eigs(A.', varargin{:}); V = V.'; % this test is meant to detect c...
github
microsoft/ADBench-master
admMatMultV1MTa.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV1MTa.m
397
utf_8
240db34d24db5610dea8733f8f38639e
% function Z = admMatMultV1MT(A, B) % % see also admMatMultV1 % % Copyright (C) 2014 Johannes Willkomm % function Z = admMatMultV1MT(A, B) % A is (m x n) matrix % B is (k x n x p) tensor szA = size(A); szB = size(B); Z = zeros([szB(1), szA(1), szB(3)]); for k=1:szB(1) Z(k,:,:) = A * shiftdim(B(k,:,...
github
microsoft/ADBench-master
admUncompressJac.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admUncompressJac.m
787
utf_8
b30ebaa569deab2548fdbba42250d12e
% function [Jac] = admUncompressJac(compressedJac, pattern, coloring, S) % % Uncompress compressedJac according to pattern and coloring. % % Copyright 2011 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment % fu...
github
microsoft/ADBench-master
adimat_g_mrdivide2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_g_mrdivide2.m
626
utf_8
c7fea1891135b954efaf90bd5ac3ac74
% function [g_z z] = adimat_g_mrdivide2(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 functio...
github
microsoft/ADBench-master
a_fft2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_fft2.m
545
utf_8
bc2c9fdf2389daeec84b26eb2cb4dd3b
% function adj = a_fft2(adj, ind, a, m?, n?) % % Compute adjoint of z = fft2(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_fft2(adj, ind, a, m, n) sza =...
github
microsoft/ADBench-master
adimat_bsxfun.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_bsxfun.m
718
utf_8
925ff2405d69f2821171ed1b2810c52a
% function z = adimat_bsxfun(handle, a, b) % % ADiMat replacement function for bsxfun % % Copyright (C) 2015 Johannes Willkomm function z = adimat_bsxfun(handle, a, b) sza = size(a); szb = size(b); if length(szb) > length(sza) sza = [sza ones(1, length(szb)-length(sza))]; elseif length(sza) > length(szb) ...
github
microsoft/ADBench-master
adimat_a_mldivider.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_a_mldivider.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
admFDCoeffs.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admFDCoeffs.m
4,566
utf_8
a57ac6aba0fb918525af86d3728ffc8c
% function z = admFDCoeffs(mode, o, a) % % Return coefficients of the FD method mode for derivative order o and % accuracy a. % % Source for the coefficients: see % http://en.wikipedia.org/wiki/Finite_difference_coefficients, % retrieved 8.Oct.2011. % % There is a mistake in coefficient 6, of 6th order formula for 2nd ...
github
microsoft/ADBench-master
admDiffVFor.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admDiffVFor.m
4,674
utf_8
b90ff7c629af6c0270676c926ddf0074
% function [Jacobian, varargout] = admDiffVFor(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 t...
github
microsoft/ADBench-master
a_sparse.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_sparse.m
344
utf_8
7eeb72a33602d77232c1b4f64cbe2574
% 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_sparse(adj, val) adj = call(@full, adj); % $Id: a_sparse.m 3503 2013-01-...
github
microsoft/ADBench-master
a_eigs_10_31.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_eigs_10_31.m
672
utf_8
3efb5d7b21189fd0c8e3ba6c04df6521
% function a_A = a_eigs_10_31(a_V, A, k?, sigma?) % % Compute adjoint of A in [V D] = eig(A), given adjoint of V. % % This file is part of the ADiMat runtime environment % % Copyright (C) 2015 Johannes Willkomm function a_A = a_eigs_10_31(a_U, A, varargin) [V D U] = adimat_lreigs(A, varargin{:}); k = size(U,2); I...
github
microsoft/ADBench-master
admShowFilename.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admShowFilename.m
497
utf_8
a1090cae2fd4f9e878757bfb7c7d3be6
% function res = admShowFilename(fname) % % Remove current directory prefix from filename. % % Copyright 2011 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment. % function res = admShowFilename(fname) cwd = pw...
github
microsoft/ADBench-master
admClean.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admClean.m
1,675
utf_8
4ab0f5fa90118142357c55a73d772dc5
% function r = admClean(baseDir, modes) % % Delete ADiMat-generated files of modes from the directory % baseDir. % % baseDir is the name of a directory to cd to first. The default is % '.', the current directory. % % modes is a string of 1-5 characters with the follwoing meaning: % % - F: delete files generated by adm...
github
microsoft/ADBench-master
adimat_a_mrdivide.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_a_mrdivide.m
699
utf_8
cdae9bb08adaecd403a21ab04674a39e
% function [adj1 adj2] = adimat_a_mrdivide(divident, divisor, adj) % % This determines the adjoints of expr = divident / divisor where adj % is the adjoint of expr. % % see also adimat_a_mldivide % % This file is part of the ADiMat runtime environment. % % Copyright 2010-2014 Johannes Willkomm % function [adj1 adj2] = ...
github
microsoft/ADBench-master
adimat_pop_field.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_pop_field.m
973
utf_8
086922cb3facc41baa8ba8e837340a72
% function r = adimat_pop_field(structVar, fieldName) % Restore values given by structVar.(fieldName) from the stack, if this % field did exist, otherwise it is removed. % % see also adimat_push_field, a_zeros_field, adimat_push, adimat_pop % % This file is part of the ADiMat runtime environment % function r = adi...
github
microsoft/ADBench-master
a_adimat_trapz.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_trapz.m
23,065
utf_8
893e85028353e213c6e148337e0fea2d
% 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_tand.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_tand.m
469
utf_8
0e2f92e5971736b72f2dbe68b6b16b4d
% function [dpartial y] = dpartial_tand(x) % % Compute partial derivative diagonal of y = tand(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_mk_householder_elim_vec_lapack.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_mk_householder_elim_vec_lapack.m
5,025
utf_8
9f6fdb38d1e4f11da5b7b695f5a7de2e
% 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_g_mldivide2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_g_mldivide2.m
537
utf_8
be147499f3c9366c1412c51f2da1e495
% function [g_z z] = adimat_g_mldivide2(a, g_b, b) % % Compute derivative of z = a \ b, matrix left division. Also return % the function result z. % % This file is part of the ADiMat runtime environment. % % Copyright 2013,2014 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt fun...
github
microsoft/ADBench-master
admMatMultV3TM.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV3TM.m
491
utf_8
b679194192b3b2f73897e202afcbee78
% function Z = admMatMultV3TM(A, B) % % see also admMatMultV3 % % Copyright (C) 2014 Johannes Willkomm % function Z = admMatMultV3TM(A, B) % A is (m x n x k) tensor % B is (n x p) matrix szA = size(A); szB = size(B); % fprintf('admMatMultV3TM: (%s) * (%s)\n', mat2str(szA), mat2str(szB)); if szA(1)...
github
microsoft/ADBench-master
a_diag.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_diag.m
808
utf_8
e3f5e927a249672f7adbd46e5c9ee72a
% function [a_x] = a_diag(a_z, x, k) % % Compute adjoint of x in z = diag(x, k), 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_diag(a_z, x, k) if nargin < 3...
github
microsoft/ADBench-master
adimat_linsolve.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_linsolve.m
761
utf_8
dadbfe8c954ab5bfb5e69120180117d6
% function [S] = adimat_mldivide(A, B) % % Model MATLAB's linsolve function, for automatic differentiation. % % Copyright 2014 Johannes Willkomm % function [S] = adimat_linsolve(A, B, opts) [m n] = size(A); if nargin < 3 opts = struct; if m ~= n opts.RECT = true; end end if isscalar(A)...
github
microsoft/ADBench-master
dpartial_cos.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_cos.m
448
utf_8
eea4beb45e420c32c1b4cd4485c973a3
% function [dpartial y] = dpartial_cos(x) % % Compute partial derivative diagonal of y = cos(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_co...
github
microsoft/ADBench-master
a_adimat_fftconv2_1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_adimat_fftconv2_1.m
14,619
utf_8
0f98eed9c0c8666ba49a2f04e4409329
% 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
cost_function_wrapper.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/cost_function_wrapper.m
1,735
utf_8
5ae7672fe3f748cc4850ec39f71fc387
% function [q, grad, Hess] = cost_function_wrapper(x, params, adopts) % % An example wrapper function to adapt ADiMat to Matlab's fminunc % % [q] = cost_function_wrapper(x, params, adopts) % % Returns just the function result q. % % [q grad] = cost_function_wrapper(x, params, adopts) % % Returns the function result q ...
github
microsoft/ADBench-master
adimat_adjred.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_adjred.m
686
utf_8
a7e1dabd420de36d176348929bb3f932
% function r = adimat_adjred(val, adj) % This determines the adjoint value of val, given as parameter adj. % % If val is a scalar return adimat_allsum(adj), % otherwise return adj. % % see also adimat_allsum, adimat_adjmultl, adimat_adjmultr % % This file is part of the ADiMat runtime environment % % Copyright 20...
github
microsoft/ADBench-master
a_eigs_10_11.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_eigs_10_11.m
672
utf_8
3efb5d7b21189fd0c8e3ba6c04df6521
% function a_A = a_eigs_10_31(a_V, A, k?, sigma?) % % Compute adjoint of A in [V D] = eig(A), given adjoint of V. % % This file is part of the ADiMat runtime environment % % Copyright (C) 2015 Johannes Willkomm function a_A = a_eigs_10_31(a_U, A, varargin) [V D U] = adimat_lreigs(A, varargin{:}); k = size(U,2); I...
github
microsoft/ADBench-master
dpartial_sqrt.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_sqrt.m
427
utf_8
23ce52b97655641713f22793d0c41a6f
% function [dpartial y] = dpartial_sqrt(x) % % Compute partial derivative diagonal of y = sqrt(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_pop_cell_index.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_pop_cell_index.m
755
utf_8
c2407bff6f8a216b0597677b2c4b55fe
% function r = adimat_pop_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_pop, adimat_pop_index, adimat_push_cell_index ...
github
microsoft/ADBench-master
partial_trapz_Y.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/partial_trapz_Y.m
1,522
utf_8
f698a1f9f9e1a10f9bbd8e1d62148ced
% function z = partial_trapz_Y(arg...) % % Compute partial derivative of trapz function w.r.t. Y % % For calling sequence see trapz. % % see also trapz % % Copyright (C) 2015 Johannes Willkomm function J = partial_trapz_Y(a, b, c) if nargin == 1 % trapz(Y) J = partial_trapz_Y_uni(a); elseif nargin == 2 ...
github
microsoft/ADBench-master
g_adimat_first_nonsingleton.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_first_nonsingleton.m
2,303
utf_8
4e9a949f7d29faff866676cf480c3ce3
% 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_adimat_cumtrapz.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_cumtrapz.m
6,835
utf_8
f17c7e5129012cd6be4c551540bb492d
% 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
partial_interp1_1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/partial_interp1_1.m
1,664
utf_8
a2b660741ec1fb3a4c7c33d5126dadf2
% function [partial z] = partial_interp1_1(xs, ys, xis, varargin) % compute partial interp1(xs, ys, xis, ...) w.r.t. to xs % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt function [partial z] = partial_...
github
microsoft/ADBench-master
dpartial_bessely.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_bessely.m
508
utf_8
7236d50b19108553f6334f33573cca89
% function [dz, z] = dpartial_bessely(nu, x, opt?) % % Compute partial derivative diagonal of z = bessely(nu, x, opt) % w.r.t. x. % % see also dpartial_bessel, dpartial_exp. % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Fachgebiet Scientific Computing % ...
github
microsoft/ADBench-master
a_eigs_11_11.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_eigs_11_11.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_zeros_index2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_zeros_index2.m
979
utf_8
f96beab1e0925c635d090fb92a0f382e
% function r = a_zeros_index2(adjArrayVar, arrayVar, index1, index2) % 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...
github
microsoft/ADBench-master
adimat_qr_givens.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_qr_givens.m
340
utf_8
55e562cd5e6b9f25f17d1363000f769d
% function [Q R] = adimat_qr_givens(H) % % QR-decomposition of an upper Hessenberg matrix using Givens % rotations. % function [Q A] = adimat_qr_givens(A) n = size(A,1); Q = eye(n); for k=1:n-1 G = mk_givens_elim(A, k+1, k); Q = Q * G'; A = G * A; end end % $Id: adimat_qr_givens.m 3794 2013-06-26 07...
github
microsoft/ADBench-master
adimat_g_mldivide1.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_g_mldivide1.m
783
utf_8
88891a0d8c705acc0331d70e9caf5e34
% function [g_z z] = adimat_g_mldivide1(g_a, a, b) % % Compute derivative of z = a \ b, matrix left division. Also return % the function result z. % % This file is part of the ADiMat runtime environment. % % Copyright 2013,2014 Johannes Willkomm, Institute for Scientific Computing % TU Darmstadt fun...
github
microsoft/ADBench-master
dpartial_besselh.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_besselh.m
769
utf_8
6b8d7f3441ba24f6d9b58a4aad185bd8
% function [dz, z] = dpartial_besselh(nu, k, x, opt?) % % Compute partial derivative diagonal of z = besselh(nu, k, x, opt) % w.r.t. x. % % see also dpartial_exp. % % This file is part of the ADiMat runtime environment % % Copyright 2013 Johannes Willkomm, Fachgebiet Scientific Computing % TU Darmst...
github
microsoft/ADBench-master
admHessianT2ForPostMultS.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admHessianT2ForPostMultS.m
4,656
utf_8
c8abc7e8fc19153e2482094fba1255a2
% 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
adimat_max21.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_max21.m
751
utf_8
2f4676a8c08921ad004b127aabcf4625
% function adj = adimat_max21(val1, val2, adj) % % This determines the adjoint of val1 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_interp1_2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_interp1_2.m
538
utf_8
94c98994e473e4ed7e48a02c2794d918
% function adj = a_interp1_2(adj, xs, ys, xis, varargin) % compute adjoint of ys in interp1(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...
github
microsoft/ADBench-master
a_inv.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_inv.m
398
utf_8
d740bb5635f458b27b2ad918d035f54c
% function adj = a_inv(adj, val) % compute adjoint of inv(val) % % see also a_zeros, a_sum % % This file is part of the ADiMat runtime environment % % Copyright 2011 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University function adj = a_inv(adj, val) Ait = inv(val) .'; ...
github
microsoft/ADBench-master
admMatMultV1MTb.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admMatMultV1MTb.m
457
utf_8
189cd49687e54ed7c4b66814747c1ae9
% function Z = admMatMultV1MT(A, B) % % see also admMatMultV1 % % Copyright (C) 2014 Johannes Willkomm % function Z = admMatMultV1MT(A, B) % A is (m x n) matrix % B is (k x n x p) tensor szA = size(A); szB = size(B); szB3 = 1; if length(szB) > 2 szB3 = szB(3); end At = A.'; Z = zeros([s...
github
microsoft/ADBench-master
adimat_stack_file_name.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_stack_file_name.m
1,082
utf_8
6c72c8e7530722825483c7b8f5789d81
% function r = adimat_stack_file_name(name?) % % get/set file name for the stack data. This functionality is % implemented by setting the environment variable % ADIMAT_STACK_FILE. This setting applies to all stack implementations % with "file" in their name. % % adimat_stack_file_name(level) % - this sets the file na...
github
microsoft/ADBench-master
admGetPref.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admGetPref.m
4,784
utf_8
c28def419f407f25269592c634a72995
% function [r, asked] = admGetPref(name) % % This function retrieves user preference settings for the preference % given by name. % % All preferences are in the preference group 'adimat'. To see all the % currently set preferences use getpref('adimat'). To delete all the % currently set preferences use rmpref('adimat')...
github
microsoft/ADBench-master
a_interp2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/a_interp2.m
1,810
utf_8
de959fe24234340bb1b87a4ac241701d
% function adj = a_interp2(adj, xs, ys, v, xis, yis, ...) % compute adjoint of v in interp2(adj, xs, ys, v, xis, yis, ...) % % 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 fun...
github
microsoft/ADBench-master
adimat_clear_stack.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/adimat_clear_stack.m
316
utf_8
5214bb8f73d32e1c216615ad0c251311
% % function r = adimat_clear_stack() % clear stack % % see also adimat_store, adimat_stack, adimat_stack_size, adimat_flush_stack % % This file is part of the ADiMat runtime environment % function r = adimat_clear_stack() r = adimat_store(2, 0); % $Id: adimat_clear_stack.m 1764 2010-02-25 19:05:10Z willkomm $
github
microsoft/ADBench-master
admDiffComplex.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admDiffComplex.m
4,763
utf_8
0728a0b7c6a5eca2b4fbfa502797fe05
% function [Jacobian, varargout] = admDiffComplex(handle, seedMatrix, arg1, arg2, ..., argN, admOptions?) % % Compute first order derivatives of function given by handle, % evaluated at the real arguments arg1, arg2, ..., argN. This works % by running the complex variable method on each component of the % input arg...
github
microsoft/ADBench-master
admSelectDerivClass.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admSelectDerivClass.m
1,369
utf_8
73dd3fd466f956b3379669569d2bdddf
% function n = admSelectDerivClass(nDirDer, admOpts) % % Copyright 2011 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment. % function [n a] = admSelectDerivClass(nDirDer, admOpts) if isempty(admOpts.derivClassN...
github
microsoft/ADBench-master
dpartial_sind.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/dpartial_sind.m
464
utf_8
b2ad9ed32d693cc07ff9b0fc181c3036
% function [dpartial y] = dpartial_sind(x) % % Compute partial derivative diagonal of y = sind(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
admDiffFD.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/admDiffFD.m
6,470
utf_8
fa7c2fd31e1be82a15429a3273797312
% function [Jacobian, varargout] = admDiffFD(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 the finite difference method on each component of input % arguments. % % ...
github
microsoft/ADBench-master
g_adimat_issymmetric.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/runtime/g_adimat_issymmetric.m
2,046
utf_8
0ac6583657d60c96ecd12930d5d417e4
% 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 ...