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
sqrt.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/sqrt.m
214
utf_8
0f7689aafcc91460dcc7f0ba8afa7087
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = sqrt(obj) obj = unopFlat(obj, @sqrt); end % $Id: sqrt.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
rot90.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/rot90.m
394
utf_8
696171f9ff924237656724700e8c1497
% This file is part of the ADiMat runtime environment % % Copyright 2014 Johannes Willkomm % function obj = rot90(obj, k) if nargin < 2 k = 1; end k = mod(k, 4); if k < 0, k = k + 4; end switch k case 0 case 1 obj = flipud(obj.'); case 2 obj = flipud(fliplr(obj)); case 3 obj = fli...
github
microsoft/ADBench-master
minusdd.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/minusdd.m
233
utf_8
e5b460076a4f8f2b4336459107b181d0
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = minusdd(obj, right) obj = binopFlatdd(obj, right, @minus); end % $Id: minusdd.m 4393 2014-06-03 08:18:50Z willkomm $
github
microsoft/ADBench-master
exp.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/exp.m
211
utf_8
76172920e289e66753b01cbbd01ed19a
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = exp(obj) obj = unopFlat(obj, @exp); end % $Id: exp.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
zero.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/zero.m
225
utf_8
da95e6cfac0c84f686e17ea17783895f
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = zero(obj, val) obj = obj.init(zeros(size(val))); end % $Id: zero.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
linsolve.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/linsolve.m
1,046
utf_8
0179a33262d4f67fd1eee89d419eb833
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function res = linsolve(obj, right, varargin) if isobject(obj) warning('why here? This probably shows a bug'); obj = binopLoop(obj, right, @linsolve); else [m n] = size(obj); if nargin > 2 opts =...
github
microsoft/ADBench-master
times.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/times.m
232
utf_8
8116bd81aaeed87edbf0e7b3fc7564b2
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = times(obj, right) obj = binopFlat(obj, right, @times); end % $Id: times.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
timesddes.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/timesddes.m
234
utf_8
968d83be012a26dfcceccc7ef1851942
% This file is part of the ADiMat runtime environment % % Copyright 2014 Johannes Willkomm % function obj = timesddes(obj, right) obj = binopFlatddes(obj, right, @times); end % $Id: timesddes.m 4393 2014-06-03 08:18:50Z willkomm $
github
microsoft/ADBench-master
mean.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/mean.m
391
utf_8
151930b3b8501387a815dff7c4168298
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = mean(obj, k) if nargin < 2 k = adimat_first_nonsingleton(obj); end if admIsOctave() && k+1 > length(size(obj.m_derivs)) else obj.m_derivs = mean(obj.m_derivs, k+1); obj.m_size = computeS...
github
microsoft/ADBench-master
fft.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/fft.m
643
utf_8
013a5d1617e62aad841dfacd68d53713
% This file is part of the ADiMat runtime environment % % Copyright 2014 Johannes Willkomm % function obj = fft(obj, n, k) if nargin < 2 n = []; end if nargin < 3 k = adimat_first_nonsingleton(obj); end if admIsOctave() && k+1 > length(size(obj.m_derivs)) % note: this concerns only trailing dimen...
github
microsoft/ADBench-master
ctranspose.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/ctranspose.m
352
utf_8
f98991806a64fec03854eb76ead485ed
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = ctranspose(obj) obj.m_derivs = permute(obj.m_derivs, [1 3 2]); if ~isreal(obj.m_derivs) obj.m_derivs = conj(obj.m_derivs); end obj.m_size = fliplr(obj.m_size); end % $Id: ctranspose.m 4329 ...
github
microsoft/ADBench-master
le.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/le.m
211
utf_8
f5c7324e2a54673af8d7fed31b2f86a2
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function res = le(obj, v) res = cmpop(obj, v, @le); end % $Id: le.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
toDouble.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/toDouble.m
515
utf_8
b56eb7128090f10f34462b148dd2cc33
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function val = toDouble(obj) if isobject(obj.m_derivs{1}) nsz = [1 size(toDouble(obj.m_derivs{1}))]; vals = cellfun(@(x) reshape(toDouble(x), nsz), obj.m_derivs, 'UniformOutput', false); else nsz = [1...
github
microsoft/ADBench-master
flipud.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/flipud.m
208
utf_8
5166263a6c89d0776ed1767701195655
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = flipud(obj) obj = flipdim(obj, 1); end % $Id: flipud.m 4323 2014-05-23 09:17:16Z willkomm $
github
microsoft/ADBench-master
fftshift.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/fftshift.m
345
utf_8
857e4dcc19ba847876fbc0f25d86d7a2
% This file is part of the ADiMat runtime environment % % Copyright (c) 2018 Johannes Willkomm % function obj = fftshift(obj, dim) if nargin < 2 for k=2:ndims(obj.m_derivs) obj.m_derivs = fftshift(obj.m_derivs, k); end else if dim < ndims(obj.m_derivs) obj.m_derivs = fftshift(obj.m_derivs, d...
github
microsoft/ADBench-master
acos.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/acos.m
208
utf_8
b84a5fc3a2cdde2caab97ac46e4abe05
% This file is part of the ADiMat runtime environment % % Copyright (C) 2015 Johannes Willkomm % function obj = acos(obj) obj = unopFlat(obj, @acos); end % $Id: acos.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
plusdv.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/plusdv.m
223
utf_8
f5e7a58cabafaddfbe1d39dfe25c3cd4
% This file is part of the ADiMat runtime environment % % Copyright 2014 Johannes Willkomm % function obj = plus(obj, right) obj = binopFlatdv(obj, right, @plus); end % $Id: plusdv.m 4392 2014-06-03 07:41:31Z willkomm $
github
microsoft/ADBench-master
numel.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/numel.m
557
utf_8
c253ec5d837b2789d0895675753d5eb7
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function res = numel(obj, varargin) % fprintf('arrdercont.numel: %s\n', num2str(size(obj))); % disp(varargin); if nargin < 2 res = 1; return end s = varargin{1}; tinfo = whos('s'); if strcmp(tinfo...
github
microsoft/ADBench-master
binopFlat.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/binopFlat.m
908
utf_8
6f402cd7f8f726fab5495b90f1383776
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = binopFlat(obj, right, handle) if isobject(obj) isc_obj = prod(obj.m_size) == 1; dd1 = obj.m_derivs; if isobject(right) dd2 = right.m_derivs; if isc_obj obj.m_size = right.m...
github
microsoft/ADBench-master
minusddes.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/minusddes.m
239
utf_8
86239f098840bf59d5d67f7d2b28b3b9
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = minusddes(obj, right) obj = binopFlatddes(obj, right, @minus); end % $Id: minusddes.m 4393 2014-06-03 08:18:50Z willkomm $
github
microsoft/ADBench-master
asin.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/asin.m
208
utf_8
a875f5ac4e9e0f639c2522a0e5afb45e
% This file is part of the ADiMat runtime environment % % Copyright (C) 2015 Johannes Willkomm % function obj = asin(obj) obj = unopFlat(obj, @asin); end % $Id: asin.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
ldivide.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/ldivide.m
238
utf_8
0a423abccf02cad54f4011463f7df126
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = ldivide(obj, right) obj = binopFlat(obj, right, @ldivide); end % $Id: ldivide.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
isreal.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/isreal.m
222
utf_8
800f220232ab230c36c777e88ee2574d
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function res = isreal(obj) res = isreal(admGetDD(obj, 1)); end % $Id: isreal.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
conv.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/conv.m
1,357
utf_8
92cb3d0e65b8af8427f6932fe7a57b72
% function obj = conv(a, b, shape) % % This file is part of the ADiMat runtime environment % % Copyright (c) 2018 Johannes Willkomm % function obj = conv(a, b, shape) if nargin < 3 shape = 'full'; end % determining the output size of conv is complete voodoo, just % start a trial balloon and reshape in the e...
github
microsoft/ADBench-master
sum.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/sum.m
316
utf_8
c5299cf3335eb404b68b9d374351598e
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = sum(obj, k) if nargin < 2 k = adimat_first_nonsingleton(obj); end obj.m_derivs = sum(obj.m_derivs, k+1); obj.m_size = computeSize(obj); end % $Id: sum.m 4268 2014-05-20 08:28:26Z willkomm $
github
microsoft/ADBench-master
ifftshift.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/ifftshift.m
348
utf_8
60695d4dd05983d5dc6bc8f37c264398
% This file is part of the ADiMat runtime environment % % Copyright (c) 2018 Johannes Willkomm % function obj = ifftshift(obj, dim) if nargin < 2 for k=2:ndims(obj.m_derivs) obj.m_derivs = ifftshift(obj.m_derivs, k); end else if dim < ndims(obj.m_derivs) obj.m_derivs = ifftshift(obj.m_derivs...
github
microsoft/ADBench-master
callwo.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/callwo.m
439
utf_8
c81fe81191c9758d1999d04e887b9461
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = callwo(handle, varargin) wo = find(cellfun(@isobject, varargin)); cobj = varargin{wo}; if ismember(func2str(handle), methods(cobj)) obj = handle(varargin{:}); else obj = unopLoopWO(handle, w...
github
microsoft/ADBench-master
full.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/full.m
184
utf_8
5144c09ce008f50b6a0d6308f9514e45
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = full(obj) end % $Id: full.m 4323 2014-05-23 09:17:16Z willkomm $
github
microsoft/ADBench-master
ge.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/ge.m
211
utf_8
8bd1614022c322263c2e258615b38c15
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function res = ge(obj, v) res = cmpop(obj, v, @ge); end % $Id: ge.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
vertcat.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/vertcat.m
234
utf_8
fdae91ed5e418129ea44e72b4cd799bc
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = vertcat(obj, varargin) obj = cat(1, obj, varargin{:}); end % $Id: vertcat.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
repmat.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/repmat.m
361
utf_8
664cbf19a4494b3c8f8290cdb50d7727
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = repmat(obj, varargin) repv = [varargin{:}]; repvd = [1 repv]; obj.m_derivs = repmat(obj.m_derivs, repvd); obj.m_size = [obj.m_size ones(1, length(repv)-length(obj.m_size))] .* repv; end % $Id: repma...
github
microsoft/ADBench-master
complex.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/complex.m
474
utf_8
11fbf374605856773cd3401ec7ea4a78
% This file is part of the ADiMat runtime environment % % Copyright (c) 2016 Johannes Willkomm % Copyright (c) 2011-2014 Johannes Willkomm % function obj = complex(a, b) obj = arrdercont(a); if isscalar(a) obj.m_size = size(b); a.m_derivs = repmat(a.m_derivs, [1 b.m_size]); elseif isscalar(b) b.m_der...
github
microsoft/ADBench-master
size.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/size.m
475
utf_8
9af80e00909793314e8275dfec596966
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function [varargout] = size(obj, varargin) if nargin > 1 varargout{1} = obj.m_size(varargin{1}); else if nargout <= 1 varargout{1} = obj.m_size; else for i=1:nargout-1 varargout{i}...
github
microsoft/ADBench-master
flipdim.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/flipdim.m
233
utf_8
53eaab620547cecc220f24e2bde21403
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = flipdim(obj, k) obj.m_derivs = flipdim(obj.m_derivs, k+1); end % $Id: flipdim.m 4323 2014-05-23 09:17:16Z willkomm $
github
microsoft/ADBench-master
log.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/log.m
211
utf_8
30ee2aaaf785dbafff66740c5e1aaf96
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = log(obj) obj = unopFlat(obj, @log); end % $Id: log.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
plusdd.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/plusdd.m
225
utf_8
84dc692067b79e587aabd2d75d26c1d8
% This file is part of the ADiMat runtime environment % % Copyright 2014 Johannes Willkomm % function obj = plusdd(obj, right) obj = binopFlatdd(obj, right, @plus); end % $Id: plusdd.m 4392 2014-06-03 07:41:31Z willkomm $
github
microsoft/ADBench-master
conj.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/conj.m
214
utf_8
6b7bb48888b6c48f19779c96f8c3d7e0
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = conj(obj) obj = unopFlat(obj, @conj); end % $Id: conj.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
subsref.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/subsref.m
2,532
utf_8
51459915b7648fd556e2911887774ac5
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function varargout = subsref(obj, ind) % fprintf('arrdercont.subsref: %s, nargout=%d\n', num2str(size(obj)),nargout); % disp(ind); switch ind(1).type case '()' subs = ind(1).subs; sz = obj.m_size; isM ...
github
microsoft/ADBench-master
admGetDD.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/admGetDD.m
243
utf_8
48578924ac988436b8e076370e14598f
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function val = admGetDD(obj, i) val = reshape(obj.m_derivs(i,:), obj.m_size); end % $Id: admGetDD.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
plus.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/plus.m
229
utf_8
f0c723637f54a4399eaa6a0a90732e4b
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = plus(obj, right) obj = binopFlat(obj, right, @plus); end % $Id: plus.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
binopFlatdd.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/binopFlatdd.m
361
utf_8
2f6116a2167dbd98f2ffb6bdff892553
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = binopFlatdd(obj, right, handle) dd1 = obj.m_derivs; dd2 = right.m_derivs; if prod(obj.m_size) == 1 obj.m_size = right.m_size; end obj.m_derivs = bsxfun(handle, dd1, dd2); end % $Id: binopFlatd...
github
microsoft/ADBench-master
ndims.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/ndims.m
200
utf_8
a8728a90772c0a48e895c2f1e05d92b5
% This file is part of the ADiMat runtime environment % % Copyright 2015 Johannes Willkomm % function n = ndims(obj) n = length(obj.m_size); end % $Id: ndims.m 4863 2015-02-07 15:37:52Z willkomm $
github
microsoft/ADBench-master
admSetDD.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/admSetDD.m
230
utf_8
d5d19f53b3940c6653d9d26fe25c2106
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = admSetDD(obj, i, val) obj.m_derivs(i,:) = val(:); end % $Id: admSetDD.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
max.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/max.m
292
utf_8
ce18a4d4b083a2fcf10ef5b8e211f3a8
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function [obj, mi] = max(obj) [mv, mi] = max(obj.m_derivs{1}); for i=1:obj.m_ndd obj.m_derivs{i} = obj.m_derivs{i}(mi); end end % $Id: max.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
plusddes.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/plusddes.m
237
utf_8
2a8d40dd4f58272db22fee409849cfc2
% This file is part of the ADiMat runtime environment % % Copyright 2014 Johannes Willkomm % function obj = plusddes(obj, right) obj.m_derivs = obj.m_derivs + right.m_derivs; end % $Id: plusddes.m 4585 2014-06-22 08:06:21Z willkomm $
github
microsoft/ADBench-master
lt.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/lt.m
211
utf_8
d2263b049b7b23c1781cb5d82bd50c97
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function res = lt(obj, v) res = cmpop(obj, v, @lt); end % $Id: lt.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
binopFlatdv.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/binopFlatdv.m
686
utf_8
60a756878a79aba2ab711fae0073bec2
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = binopFlatdv(obj, right, handle) % fprintf(1, 'binopFlatdv: @%s, (%s), (%s)\n', func2str(handle), num2str(size(obj)), num2str(size(right))); dd1 = obj.m_derivs; if isscalar(right) obj.m_derivs = han...
github
microsoft/ADBench-master
mtimes.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/mtimes.m
2,409
utf_8
729d2a3da6ccdbb23654d13b37899ba0
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function res = mtimes(obj, right) if isscalar(obj) || isscalar(right) res = times(obj, right); else % pref = getpref('adimat', 'optimizeloopthreshold', 0.9); if isobject(obj) if isobject(right) ...
github
microsoft/ADBench-master
zerobj.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/zerobj.m
230
utf_8
303b1cee53aa3e6d49eaf9bb1046f894
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = zerobj(obj) obj.m_derivs = zeros([obj.m_ndd obj.m_size]); end % $Id: zerobj.m 4591 2014-06-22 08:16:04Z willkomm $
github
microsoft/ADBench-master
mldivide.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/mldivide.m
931
utf_8
184c44fca44878aa2ed07563ef193164
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function res = mldivide(obj, right) if isobject(obj) warning('why here? This probably shows a bug'); obj = binopLoop(obj, right, @mldivide); else if isscalar(obj) res = ldivide(obj, right); else ...
github
microsoft/ADBench-master
set.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/set.m
980
utf_8
103f3aba592ae3f2059f2ff5391825df
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = set(obj, name, varargin) if isa(name, 'char') val = varargin{1}; switch name case 'direct' Cs = mat2cell(val, size(val,1), repmat(obj.m_size(2:end), [obj.m_ndd,1])); obj.m_de...
github
microsoft/ADBench-master
binopFlatddes.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/binopFlatddes.m
267
utf_8
3f1d00ce29ededfd4060e78a7ea3e98b
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = binopFlatddes(obj, right, handle) obj.m_derivs = handle(obj.m_derivs, right.m_derivs); end % $Id: binopFlatddes.m 4497 2014-06-13 12:00:25Z willkomm $
github
microsoft/ADBench-master
rdividedv.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/rdividedv.m
242
utf_8
7102db47e06f61cf0c06790385044c78
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = rdividedv(obj, right) obj = binopFlatdv(obj, 1 ./ right, @times); end % $Id: rdividedv.m 4414 2014-06-04 06:22:28Z willkomm $
github
microsoft/ADBench-master
rdivide.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/rdivide.m
238
utf_8
8814baef9a3eac6c6e48c5df00210424
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = rdivide(obj, right) obj = binopFlat(obj, right, @rdivide); end % $Id: rdivide.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
disp.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/disp.m
374
utf_8
f3e2c85dce151a586e3f54b18145ad75
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function disp(obj) fprintf('N-Times wrapper with %d directions of size %s\n', obj.m_ndd, ... mat2str(size(obj))); for i=1:obj.m_ndd fprintf('Direction %d:\n', i); disp(admGetDD(obj, i)); end e...
github
microsoft/ADBench-master
bsxfun.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/bsxfun.m
463
utf_8
70c1256ddc432c81f65502ef3cfb84c3
% function obj = bsxfun(handle, x1, x2) % % Copyright (c) 2016 Johannes Willkomm, Johannes Willkomm Software Development function obj = bsxfun(handle, x1, x2) if isobject(x1) obj = x1; obj.m_derivs = bsxfun(handle, x1.m_derivs, reshape(x2, [1 size(x2)])); obj.m_size = computeSize(obj); elseif isobject(x...
github
microsoft/ADBench-master
unopLoop.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/unopLoop.m
450
utf_8
903a71dcf17757ed9548eff90e298fda
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = unopLoop(obj, handle, varargin) res = cell(obj.m_ndd, 1); for i=1:obj.m_ndd dd1 = reshape(obj.m_derivs(i,:), [obj.m_size]); dd = handle(dd1, varargin{:}); res{i} = reshape(full(dd), [1 size(...
github
microsoft/ADBench-master
cos.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/cos.m
211
utf_8
d3dee0420096e813f9a0f1be96e5ad4d
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = cos(obj) obj = unopFlat(obj, @cos); end % $Id: cos.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
sin.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/sin.m
211
utf_8
830e83e5fce94d805efa9a48e5a7f9f8
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = sin(obj) obj = unopFlat(obj, @sin); end % $Id: sin.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
computeSize.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/computeSize.m
345
utf_8
4d49d39afbd27fdccebf3d4e12b44342
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function [sz] = computeSize(obj) szd = size(obj.m_derivs); sz = szd(2:end); if length(sz) < 2 if sz(1) == 0 sz = [sz 0]; else sz = [sz 1]; end end end % $Id: computeSize.m 3862 2013-09...
github
microsoft/ADBench-master
min.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/min.m
292
utf_8
7d96e7900a784ca463f34abc66b82192
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function [obj, mi] = min(obj) [mv, mi] = min(obj.m_derivs{1}); for i=1:obj.m_ndd obj.m_derivs{i} = obj.m_derivs{i}(mi); end end % $Id: min.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
timesdv.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/timesdv.m
228
utf_8
a29167631e2f88162aab1fcab78b8afc
% This file is part of the ADiMat runtime environment % % Copyright 2014 Johannes Willkomm % function obj = timesdv(obj, right) obj = binopFlatdv(obj, right, @times); end % $Id: timesdv.m 4392 2014-06-03 07:41:31Z willkomm $
github
microsoft/ADBench-master
horzcat.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/horzcat.m
234
utf_8
295ec037f23dc61804fd46fa73fbd32c
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = horzcat(obj, varargin) obj = cat(2, obj, varargin{:}); end % $Id: horzcat.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
calln.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/calln.m
869
utf_8
c600bc13bf854f8896f415c9304942e5
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = calln(handle, varargin) if ismember(func2str(handle), methods(varargin{1})) obj = handle(varargin{:}); else nparm = nargin-1; tmpc = cell(nparm, 1); obj = arrdercont(varargin{1}); % ...
github
microsoft/ADBench-master
minus.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/minus.m
232
utf_8
6023c53c06ecbee4ee2c5d11d8a36cd5
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function obj = minus(obj, right) obj = binopFlat(obj, right, @minus); end % $Id: minus.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
arrdercont.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/arrdercont.m
1,037
utf_8
ac23189e3820657a6ee1ae2921a041ac
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = arrdercont(val, ndd, method) if nargin < 1 val = 0; end if isstruct(val) obj = struct('m_ndd', val.m_ndd, 'm_size', val.m_size, 'm_derivs', val.m_derivs); elseif isa(val, 'arrdercont') o...
github
microsoft/ADBench-master
ipermute.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/ipermute.m
282
utf_8
0df2d71569a0ded67a0aeb6ca673385a
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = ipermute(obj, order) obj.m_derivs = ipermute(obj.m_derivs, [1 order+1]); obj.m_size(order) = obj.m_size; end % $Id: ipermute.m 4323 2014-05-23 09:17:16Z willkomm $
github
microsoft/ADBench-master
gt.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/gt.m
211
utf_8
a2e2185536492cb620053c79fdbd9946
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function res = gt(obj, v) res = cmpop(obj, v, @gt); end % $Id: gt.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
cat.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/cat.m
504
utf_8
975fc7af838e8777bce79e29054485ae
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = cat(dim, varargin) areempty = cellfun(@isempty, varargin); nempty = varargin(~areempty); if isempty(nempty) obj = arrdercont([]); else dds = cellfun(@(x) full(x.m_derivs), nempty, 'UniformOu...
github
microsoft/ADBench-master
sign.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/sign.m
218
utf_8
7f4e2773b7786968db798534cf1742e5
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function res = sign(obj) [res] = sign(admGetDD(obj, 1)); end % $Id: sign.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
diff.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/diff.m
358
utf_8
b2cd4e6d35ab2fad61c987880cd79de5
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = diff(obj, n, k) if nargin < 2 n = 1; end if nargin < 3 k = adimat_first_nonsingleton(obj); end obj.m_derivs = diff(obj.m_derivs, n, k+1); obj.m_size = computeSize(obj); end % $Id: diff.m...
github
microsoft/ADBench-master
permute.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/permute.m
336
utf_8
ba0d3c26c0c7e8be0fe25d4f652d9371
% This file is part of the ADiMat runtime environment % % Copyright 2011-2014 Johannes Willkomm % function obj = permute(obj, order) obj.m_derivs = permute(obj.m_derivs, [1 order+1]); msz = [obj.m_size ones(1, length(order)-length(obj.m_size))]; obj.m_size = msz(order); end % $Id: permute.m 4895 2015-02-16 13:10...
github
microsoft/ADBench-master
ne.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclass/@arrdercont/ne.m
211
utf_8
10bdf32461862e9dac1a017ff0429f74
% This file is part of the ADiMat runtime environment % % Copyright 2011,2012,2013 Johannes Willkomm % function res = ne(obj, v) res = cmpop(obj, v, @ne); end % $Id: ne.m 3862 2013-09-19 10:50:56Z willkomm $
github
microsoft/ADBench-master
admGetNDD.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/admGetNDD.m
446
utf_8
26ffdf3d3c58460fd58060b3596e335c
% function num = admGetNDD(g_x) % % Return the number of directional derivatives of g_x. This function % returns always 1. % % This file is part of the ADiMat runtime environment, and belongs % to the scalar_directderivs derivative "class". % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % ...
github
microsoft/ADBench-master
admHessianFor.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/admHessianFor.m
424
utf_8
98c4b473d12755b3443dccdd049a8cc0
% function Jac = admJacFor(varargin) % % This file is part of the ADiMat runtime environment, and belongs % to the opt_derivclass derivative class. % % Copyright 2009-2011 Johannes Willkomm, Institute for Scientific Computing % Copyright 2001-2009 Andre Vehreschild, Institute for Scientific Computing % ...
github
microsoft/ADBench-master
createSeededGradientsRev.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/createSeededGradientsRev.m
806
utf_8
87fd28bbb3bf7c31be8329da889cce44
% function varargout = createSeededGradientsFor(seedVector, varargin) % % see also createFullGradients, createSeededGradientsFor % % This file is part of the ADiMat runtime environment, and belongs % to the scalar_directderivs derivative "class". % % Copyright 2009,2010 Johannes Willkomm, Institute for Scientific Compu...
github
microsoft/ADBench-master
admTaylor2For.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/admTaylor2For.m
755
utf_8
b34fc07e3246fbeea28d6fbdc6df685c
% function T2 = admTaylor2For(varargin) % % This file is part of ADiMat, and belongs to the scalar_directderivs % runtime environment. % % Copyright 2009-2011 Johannes Willkomm, Institute for Scientific Computing % Copyright 2001-2009 Andre Vehreschild, Institute for Scientific Computing % RWTH Aach...
github
microsoft/ADBench-master
createSeededGradientsFor.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/createSeededGradientsFor.m
1,104
utf_8
3f0463aed271f85e6b3b653bbb842b52
% function varargout = createSeededGradientsFor(seedVector, varargin) % % see also createFullGradients, createSeededGradientsRev % % This file is part of the ADiMat runtime environment, and belongs % to the scalar_directderivs derivative "class". % % Copyright 2009,2010 Johannes Willkomm, Institute for Scientific Compu...
github
microsoft/ADBench-master
admJacFor.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/admJacFor.m
413
utf_8
a68ba049333f4acc12bb11b268e24f42
% function Jac = admJacFor(varargin) % % This file is part of the ADiMat runtime environment. % % Copyright 2009,2010 Johannes Willkomm, Institute for Scientific Computing % Copyright 2001-2009 Andre Vehreschild, Institute for Scientific Computing % RWTH Aachen University function Jac = admJacFor(va...
github
microsoft/ADBench-master
admComputeDerivFor.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/admComputeDerivFor.m
4,455
utf_8
1faad2b4a1f222bd0aadb19e2f4b157a
% function [Jacobian, varargout] = ... % admComputeDerivFor(diffFunction, seedMatrix, ... % independents, dependents, fNargout, ... % admOpts, varargin) % % see also admDiffRev, admDiffVFor, admTransform, createFullGradients, % createSeededGradients, admJacFor, admOp...
github
microsoft/ADBench-master
adimat_derivclass_version_local.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/adimat_derivclass_version_local.m
611
utf_8
f27ec9b9a87cc3da820825753973cdb5
% function [dcv dck] = adimat_derivclass_version_local() % 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 2018 Johannes Willkomm % Copyright 2010 Johannes Willkomm, Institute for Sci...
github
microsoft/ADBench-master
admComputeDerivRev.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/admComputeDerivRev.m
3,383
utf_8
00f2aeaa07f52118953f395b159d2869
% function [Jacobian, varargout] = ... % admComputeDerivRev(diffFunction, seedMatrix, ... % independents, dependents, ... % functionResults, admOpts, varargin) % % see also admDiffFor, admDiffVFor, admTransform, createFullGradients, % createSeededGradients, admJac...
github
microsoft/ADBench-master
admGetDD.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/admGetDD.m
483
utf_8
12ba74a7ee8699d32300438f4d8f5ba9
% function dd = admGetDD(g_x, i) % % Return the i-th directional derivative of g_x. Index i must always % be 1. % % This file is part of the ADiMat runtime environment, and belongs % to the scalar_directderivs derivative "class". % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % ...
github
microsoft/ADBench-master
createZeroGradients.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/createZeroGradients.m
1,394
utf_8
be9595bdb0b9f5b53a353bcbc6b47335
%CREATEZEROGRADIENTS Create zero gradients of ndd dimensions. % [gradients]= createEmptyGradients(ndd, realobjects) % Create for every realobject a gradient object supplying % enough slots for g_dirs number of directional derivatives. % All gradient objects are zero matrices. % The number of the realobjects ...
github
microsoft/ADBench-master
admSetDD.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/admSetDD.m
520
utf_8
428de1c153d7a3985ba58b68b6679c46
% function [g_x] = admSetDD(g_x, i, dd) % % Set the i-th directional derivative of g_x to data given by % dd. Index i must always be 1. % % This file is part of the ADiMat runtime environment, and belongs % to the scalar_directderivs derivative "class". % % Copyright 2012 Johannes Willkomm, Institute for Scientific Com...
github
microsoft/ADBench-master
admJacRev.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/admJacRev.m
474
utf_8
4b14533a08314ba86ee954dd2fce8ffe
% function Jac = admJacRev(varargin) % % This file is part of the ADiMat runtime environment, and belongs % to the opt_derivclass derivative class. % % Copyright 2009,2010 Johannes Willkomm, Institute for Scientific Computing % Copyright 2001-2009 Andre Vehreschild, Institute for Scientific Computing % ...
github
microsoft/ADBench-master
admComputeDerivFor2.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/scalar_directderivs/admComputeDerivFor2.m
2,213
utf_8
34084d9c896ec747e8d53ea5394d1b4a
% function [Jacobian, varargout] = ... % admComputeDerivFor(diffFunction, seedV, seedW, ... % independents, dependents, fNargout, varargin) % % Compute derivatives in second order FM with RE scalar_directderivs. % % This file is part of the ADiMat runtime environment. % % Copyright 2014 Joh...
github
microsoft/ADBench-master
adimat_stack_info.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/info-stacks/check/adimat_stack_info.m
903
utf_8
5e70793b33a8027bf7d0b0ad3605f11c
% function r = adimat_stack_info(label, func, a, b, c) % % Utility function being called by statements inserted into adjoint % code when parameter printStackInfo is set. Feel free to replace or % modify this function. You can also change the name of the function % being called using parameter stackInfoFunction. % funct...
github
microsoft/ADBench-master
adimat_stack_info.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/info-stacks/null/adimat_stack_info.m
453
utf_8
2350e7ce0ef6f842ea7ff93dbcb7313d
% function r = adimat_stack_info(label, func, a, b, c) % % Utility function being called by statements inserted into adjoint % code when parameter printStackInfo is set. Feel free to replace or % modify this function. You can also change the name of the function % being called using parameter stackInfoFunction. % funct...
github
microsoft/ADBench-master
adimat_stack_info.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/info-stacks/save/adimat_stack_info.m
508
utf_8
afd69f0a120a30c247a1abdb75f84e70
% function r = adimat_stack_info(label, func, a, b, c) % % Utility function being called by statements inserted into adjoint % code when parameter printStackInfo is set. Feel free to replace or % modify this function. You can also change the name of the function % being called using parameter stackInfoFunction. % funct...
github
microsoft/ADBench-master
adimat_stack_info.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/info-stacks/log/adimat_stack_info.m
2,037
utf_8
b46e8293d1078ff47a872854216d2379
% function r = adimat_stack_info(label, func, a, b, c) % % Utility function being called by statements inserted into adjoint % code when parameter printStackInfo is set. Feel free to replace or % modify this function. You can also change the name of the function % being called using parameter stackInfoFunction. % funct...
github
microsoft/ADBench-master
createSeededGradientsRev.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclassdef/createSeededGradientsRev.m
1,249
utf_8
f50219d02da91232601b1df221444fe0
% function varargout = createSeededGradientsRev(seedMatrix, varargin) % this simply calls createSeededGradientsFor(seedMatrix', varargin) % % see also createFullGradients, createSeededGradientsFor % % This file is part of the ADiMat runtime environment, and belongs % to the opt_derivclass derivative class. % % Copyri...
github
microsoft/ADBench-master
admTaylor2For.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclassdef/admTaylor2For.m
864
utf_8
1b3c13cbf390db93a88c2ac56569b4c8
% function T2 = admTaylor2For(varargin) % % This file is part of the ADiMat runtime environment, and belongs % to the opt_derivclass derivative class. % % Copyright 2009-2012 Johannes Willkomm, Institute for Scientific Computing % Copyright 2001-2009 Andre Vehreschild, Institute for Scientific Computing % ...
github
microsoft/ADBench-master
createSeededGradientsFor.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclassdef/createSeededGradientsFor.m
1,364
utf_8
0e9040942a424a6ce8da19e74b0e629d
% function varargout = createSeededGradientsFor(seedMatrix, varargin) % % see also createFullGradients, createSeededGradientsRev % % This file is part of the ADiMat runtime environment, and belongs % to the opt_derivclass derivative class. % % Copyright 2014 Johannes Willkomm % Copyright 2009,2010 Johannes Willkomm, In...
github
microsoft/ADBench-master
admJacFor.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclassdef/admJacFor.m
1,013
utf_8
0a055b87248745552142342145a8b2ca
% function Jac = admJacFor(varargin) % % This file is part of the ADiMat runtime environment, and belongs % to the opt_derivclass derivative class. % % Copyright 2014 Johannes Willkomm % Copyright 2009-2012 Johannes Willkomm, Institute for Scientific Computing % Copyright 2001-2009 Andre Vehreschild, Institute for Scie...
github
microsoft/ADBench-master
getdd.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclassdef/getdd.m
397
utf_8
f810ac594b89e13f5c1aa388eaf4815d
% % function [derivative] = getdd(obj, index) % get the derivative directions ind from derivative object obj % % Copyright 2010 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment % function varargout = getdd(obj...
github
microsoft/ADBench-master
admComputeDerivFor.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclassdef/admComputeDerivFor.m
3,731
utf_8
86aaf8dd136a673432cf7cdea3f57f38
% function [Jacobian, varargout] = ... % admComputeDerivFor(diffFunction, seedMatrix, ... % independents, dependents, fNargout, ... % admOpts, varargin) % % see also admDiffRev, admDiffVFor, admTransform, createFullGradients, % createSeededGradients, admJacFor, admOp...
github
microsoft/ADBench-master
admComputeDerivRev.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclassdef/admComputeDerivRev.m
2,079
utf_8
a91bdb34884651087abbb1c1c97f8bb4
% function [Jacobian, varargout] = ... % admComputeDerivRev(diffFunction, seedMatrix, ... % independents, dependents, ... % functionResults, admOpts, varargin) % % see also admDiffFor, admDiffVFor, admTransform, createFullGradients, % createSeededGradients, admJac...
github
microsoft/ADBench-master
admJacRev.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclassdef/admJacRev.m
1,003
utf_8
28fe25a3bc71716ec022c8e8bb6b5d72
% function Jac = admJacRev(varargin) % % This file is part of the ADiMat runtime environment, and belongs % to the opt_derivclass derivative class. % % Copyright 2014 Johannes Willkomm % Copyright 2009-2012 Johannes Willkomm, Institute for Scientific Computing % Copyright 2001-2009 Andre Vehreschild, Institute for Scie...
github
microsoft/ADBench-master
arrdercontdef.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/arrderivclassdef/arrdercontdef.m
50,295
utf_8
64c41bece1f74c6458f2aa2910642132
classdef arrdercontdef properties m_derivs m_ndd m_size end methods(Static) function r = option(name, val) persistent global_ndd global_inner if nargin < 2 r = sprintf('unknown field %s', name); switch name case {'ndd', 'NumberOfDirectionalDerivatives'} r = global_ndd; case {'inner'}...