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
andreikarpau/DataScienceRepo-master
submitWeb.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Recommender Systems/submitWeb.m
827
utf_8
bfb2fa08cac9d8d797e3071d3fdd7ca1
% submitWeb Creates files from your code and output for web submission. % % If the submit function does not work for you, use the web-submission mechanism. % Call this function to produce a file for the part you wish to submit. Then, % submit the file to the class servers using the "Web Submission" button on ...
github
andreikarpau/DataScienceRepo-master
submit.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Linear Regression/submit.m
17,317
utf_8
c92fa7713d3c5747ef93f067dddcc54d
function submit(partId, webSubmit) %SUBMIT Submit your code and output to the ml-class servers % SUBMIT() will connect to the ml-class server and submit your solution fprintf('==\n== [ml-class] Submitting Solutions | Programming Exercise %s\n==\n', ... homework_id()); if ~exist('partId', 'var') || isem...
github
andreikarpau/DataScienceRepo-master
submitWeb.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Linear Regression/submitWeb.m
827
utf_8
bfb2fa08cac9d8d797e3071d3fdd7ca1
% submitWeb Creates files from your code and output for web submission. % % If the submit function does not work for you, use the web-submission mechanism. % Call this function to produce a file for the part you wish to submit. Then, % submit the file to the class servers using the "Web Submission" button on ...
github
andreikarpau/DataScienceRepo-master
submit.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Support Vector Machines/submit.m
16,836
utf_8
bbf9b999a1dae2f9a208e9edbfb6981a
function submit(partId, webSubmit) %SUBMIT Submit your code and output to the ml-class servers % SUBMIT() will connect to the ml-class server and submit your solution fprintf('==\n== [ml-class] Submitting Solutions | Programming Exercise %s\n==\n', ... homework_id()); if ~exist('partId', 'var') || isem...
github
andreikarpau/DataScienceRepo-master
porterStemmer.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Support Vector Machines/porterStemmer.m
9,902
utf_8
7ed5acd925808fde342fc72bd62ebc4d
function stem = porterStemmer(inString) % Applies the Porter Stemming algorithm as presented in the following % paper: % Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14, % no. 3, pp 130-137 % Original code modeled after the C version provided at: % http://www.tartarus.org/~martin/PorterStemmer/c.tx...
github
andreikarpau/DataScienceRepo-master
submitWeb.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Support Vector Machines/submitWeb.m
827
utf_8
bfb2fa08cac9d8d797e3071d3fdd7ca1
% submitWeb Creates files from your code and output for web submission. % % If the submit function does not work for you, use the web-submission mechanism. % Call this function to produce a file for the part you wish to submit. Then, % submit the file to the class servers using the "Web Submission" button on ...
github
andreikarpau/DataScienceRepo-master
submit.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Logistic Regression/submit.m
17,086
utf_8
6f26069c12237f7a430ed09fc0c1b344
function submit(partId, webSubmit) %SUBMIT Submit your code and output to the ml-class servers % SUBMIT() will connect to the ml-class server and submit your solution fprintf('==\n== [ml-class] Submitting Solutions | Programming Exercise %s\n==\n', ... homework_id()); if ~exist('partId', 'var') || isem...
github
andreikarpau/DataScienceRepo-master
submitWeb.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Logistic Regression/submitWeb.m
827
utf_8
bfb2fa08cac9d8d797e3071d3fdd7ca1
% submitWeb Creates files from your code and output for web submission. % % If the submit function does not work for you, use the web-submission mechanism. % Call this function to produce a file for the part you wish to submit. Then, % submit the file to the class servers using the "Web Submission" button on ...
github
andreikarpau/DataScienceRepo-master
submit.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Regularized Linear Regression/submit.m
17,211
utf_8
13a9995decf628307987cfb3364dd6a1
function submit(partId, webSubmit) %SUBMIT Submit your code and output to the ml-class servers % SUBMIT() will connect to the ml-class server and submit your solution fprintf('==\n== [ml-class] Submitting Solutions | Programming Exercise %s\n==\n', ... homework_id()); if ~exist('partId', 'var') || isem...
github
andreikarpau/DataScienceRepo-master
submitWeb.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Regularized Linear Regression/submitWeb.m
827
utf_8
bfb2fa08cac9d8d797e3071d3fdd7ca1
% submitWeb Creates files from your code and output for web submission. % % If the submit function does not work for you, use the web-submission mechanism. % Call this function to produce a file for the part you wish to submit. Then, % submit the file to the class servers using the "Web Submission" button on ...
github
andreikarpau/DataScienceRepo-master
submit.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Neural Networks Learning/submit.m
17,129
utf_8
bf5c5c1ceefb6cad621d632888b78dd1
function submit(partId, webSubmit) %SUBMIT Submit your code and output to the ml-class servers % SUBMIT() will connect to the ml-class server and submit your solution fprintf('==\n== [ml-class] Submitting Solutions | Programming Exercise %s\n==\n', ... homework_id()); if ~exist('partId', 'var') || isem...
github
andreikarpau/DataScienceRepo-master
submitWeb.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Neural Networks Learning/submitWeb.m
827
utf_8
bfb2fa08cac9d8d797e3071d3fdd7ca1
% submitWeb Creates files from your code and output for web submission. % % If the submit function does not work for you, use the web-submission mechanism. % Call this function to produce a file for the part you wish to submit. Then, % submit the file to the class servers using the "Web Submission" button on ...
github
andreikarpau/DataScienceRepo-master
submit.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Neural Networks/submit.m
17,041
utf_8
3222eb8403790dbbf400354e1e71d0de
function submit(partId, webSubmit) %SUBMIT Submit your code and output to the ml-class servers % SUBMIT() will connect to the ml-class server and submit your solution fprintf('==\n== [ml-class] Submitting Solutions | Programming Exercise %s\n==\n', ... homework_id()); if ~exist('partId', 'var') || isem...
github
andreikarpau/DataScienceRepo-master
submitWeb.m
.m
DataScienceRepo-master/Machine Learning Course Projects/Neural Networks/submitWeb.m
827
utf_8
bfb2fa08cac9d8d797e3071d3fdd7ca1
% submitWeb Creates files from your code and output for web submission. % % If the submit function does not work for you, use the web-submission mechanism. % Call this function to produce a file for the part you wish to submit. Then, % submit the file to the class servers using the "Web Submission" button on ...
github
andreikarpau/DataScienceRepo-master
submit.m
.m
DataScienceRepo-master/Machine Learning Course Projects/K-Means Clustering and PCA/submit.m
16,958
utf_8
44af178969606b83916b59695dd1a568
function submit(partId, webSubmit) %SUBMIT Submit your code and output to the ml-class servers % SUBMIT() will connect to the ml-class server and submit your solution fprintf('==\n== [ml-class] Submitting Solutions | Programming Exercise %s\n==\n', ... homework_id()); if ~exist('partId', 'var') || isem...
github
andreikarpau/DataScienceRepo-master
submitWeb.m
.m
DataScienceRepo-master/Machine Learning Course Projects/K-Means Clustering and PCA/submitWeb.m
827
utf_8
bfb2fa08cac9d8d797e3071d3fdd7ca1
% submitWeb Creates files from your code and output for web submission. % % If the submit function does not work for you, use the web-submission mechanism. % Call this function to produce a file for the part you wish to submit. Then, % submit the file to the class servers using the "Web Submission" button on ...
github
jercytryn/inception-master
axisAndangle2rot.m
.m
inception-master/thirdParty/VanishingPointMatlabCode/PerspectiveCamera/Utils/axisAndangle2rot.m
457
utf_8
63f8b4b9bea75ada2b8e98b6280f0eed
%ROTVEC Rotation about arbitrary axis % % TR = axisAndangle2rot(V, THETA) % % Returns a homogeneous transformation representing a rotation of THETA % about the vector V. % % See also: ROTX, ROTY, ROTZ. % Copyright (C) 1993-2002, by Peter I. Corke function r = axisAndangle2rot(v, t) v = v/norm(v); ct = cos(t); ...
github
jercytryn/inception-master
RefineVPAndFocalByMLE.m
.m
inception-master/thirdParty/VanishingPointMatlabCode/PerspectiveCamera/Utils/RefineVPAndFocalByMLE.m
5,285
utf_8
31daa3cde774855c750d50b1a95831e1
function [vp, focal, residual] = RefineVPAndFocalByMLE(lines, initVP, initFocal, Classification, kConsistencyMeasure) %%%This function is to refine the estimated vanishing points and the camera focal length according to the %%%classification result by a maximum likelihood estimator. %%%The maximum likelihood problem i...
github
jercytryn/inception-master
vpdetection.m
.m
inception-master/thirdParty/vpdetection/matlab/vpdetection.m
1,876
utf_8
c73ef502a723db8acea3a426ff09870f
%% % Copyright (c) 2011 Chen Feng (cforrest[at]umich[dot]edu) % and the University of Michigan % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % ...
github
jercytryn/inception-master
pseudocolor.m
.m
inception-master/thirdParty/vpdetection/matlab/pseudocolor.m
1,639
utf_8
167fcb5daeb8c3af09a8e11cde7698b5
%% % Copyright (c) 2011 Chen Feng (cforrest[at]umich[dot]edu) % and the University of Michigan % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % ...
github
jercytryn/inception-master
showClusters.m
.m
inception-master/thirdParty/vpdetection/JLinkage/Bin/showClusters.m
1,617
utf_8
4397fa2249b1f5eba80b330230e11d41
%----------------------------------------------------------- % Plot clustered Points % % Usage: % % showClusters(Points,T, minlength) % % Arguments: % Points - Data set % T - Clustered points Labels % minlength - Minimum number of element for a cluster %----------------------...
github
KartikSinghal/Short-text_Categorization-master
hyperagent_newest.m
.m
Short-text_Categorization-master/new_label_propagation/hyperagent_newest.m
4,601
utf_8
bf002fab82187a6664e8b5bb9ffb1cd4
% alpha: is the label diffusion parameter between 0 to 1 % delta: is the error convergence to stop diffusion % maxItr: is the max diffusion loop iterations function [] = hyperagent_newest() %========================= DATE PREPERATION ============================== % Hyper-incidence matrix H (m # Vertices X n # E...
github
microsoft/ADBench-master
mupad_ba_objective.m
.m
ADBench-master/tools/MuPad/mupad_ba_objective.m
1,522
utf_8
fc736665c226983a51312ac36275b8f3
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [compressedJ,reproj_err,w_err] = ... mupad_ba_objective(cams, X, w, obs,do_jac) % CAMERAS c x n % matrix containing parameters of n cameras % for now, supported format is only % [r...
github
microsoft/ADBench-master
mupad_ba_compute_weight_err.m
.m
ADBench-master/tools/MuPad/mupad_ba_compute_weight_err.m
785
utf_8
2af268f2b1e59181845ddbb5daee2071
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function err = mupad_ba_compute_weight_err(w, data) if nargin == 0 %% addpath('..') addpath('../awful/matlab') % Make a small random GMM w = rand(1); data = zeros(0,1); % Test call of the function f = @m...
github
microsoft/ADBench-master
mupad_ba_compute_reproj_err.m
.m
ADBench-master/tools/MuPad/mupad_ba_compute_reproj_err.m
1,247
utf_8
3b2db01fe09dc0778bb9b802255d13f1
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function err = mupad_ba_compute_reproj_err(params, data) if nargin == 0 %% addpath('..') addpath('../awful/matlab') % Make a small random GMM n = 1; m = 1; p = 1; [cam,X,w,obs] = generate_random_ba_instance(n...
github
microsoft/ADBench-master
MuPad_ba.m
.m
ADBench-master/tools/MuPad/MuPad_ba.m
901
utf_8
a28ac6ba99038746f8633ac60b4437c1
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [tf,tJ] = ... MuPad_ba(dir_in, dir_out, fn, nruns_f, nruns_J, time_limit) %MUPAD_GMM Run a single MuPad BA test % (description) addpath('../matlab-common'); addpath('../../submodules/awful/matlab'); [cams, X, w, obs] = load_ba_in...
github
microsoft/ADBench-master
mupad_gmm_objective.m
.m
ADBench-master/tools/MuPad/mupad_gmm_objective.m
651
utf_8
1cc4c02b53dfea030e60b3786056aee3
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [ J, err ] = mupad_gmm_objective( nruns, params,... x,hparams,do_jacobian) %mupad_gmm_objective Use mexed files d = size(x,1); k = size(params.alphas,2); n = size(x,2); mexname = sprintf('example_gmm_objective_mex_d%d_K%d', d, k); ...
github
microsoft/ADBench-master
MuPad_gmm.m
.m
ADBench-master/tools/MuPad/MuPad_gmm.m
975
utf_8
ef731130a7ac2bcfe7ec3a2cf5415fd2
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [tf,tJ] = ... MuPad_gmm(dir_in, dir_out, fn, nruns_f, nruns_J, time_limit, replicate_point) %MUPAD_GMM Run a single MuPad GMM test % (description) if nargin < 7 replicate_point = false end addpath('../matlab-common'); addpath...
github
microsoft/ADBench-master
mupad_hand_objective.m
.m
ADBench-master/tools/MuPad/mupad_hand_objective.m
4,978
utf_8
71953dadb5006661190404a03cce8dfd
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function err = mupad_hand_objective(params, data) %HAND_OBJECTIVE if nargin == 0 %% addpath('../matlab-common') addpath('../../submodules/awful/matlab') data_dir = 'C:/ZS/autodiff/data/hand/simple_small/'; for i=1:...
github
microsoft/ADBench-master
example_gmm_objective.m
.m
ADBench-master/tools/MuPad/example_gmm_objective.m
5,096
utf_8
4d6f19714ae6411348640e5919db0b2e
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function err = example_gmm_objective(params, data, get_lse_offset) % EXAMPLE_GMM_OBJECTIVE Evaluate GMM negative log likelihood for one point % First argument PARAMS stores GMM % params.log_alphas % vector of l...
github
microsoft/ADBench-master
MuPad_hand.m
.m
ADBench-master/tools/MuPad/MuPad_hand.m
980
utf_8
d96012b6d4a25f7f96759fef2ff55f43
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [tf,tJ] = ... MuPad_hand(dir_in, dir_out, fn, nruns_f, nruns_J, time_limit) %MUPAD_Hand Run a single MuPad Hand test % (description) addpath('../matlab-common'); addpath('../../submodules/awful/matlab'); [params, data] = load_han...
github
microsoft/ADBench-master
a_ba_compute_reproj_err.m
.m
ADBench-master/tools/ADiMat/a_ba_compute_reproj_err.m
20,021
utf_8
b46731eec7a03006950e43dae97c99b7
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. % Generated by ADiMat 0.6.0-4975 % © 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.d...
github
microsoft/ADBench-master
a_ba_objective.m
.m
ADBench-master/tools/ADiMat/a_ba_objective.m
27,911
utf_8
b70f23ea0e6e13decceed3c9e75b5038
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. % Generated by ADiMat 0.6.0-4975 % © 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.d...
github
microsoft/ADBench-master
d_hand_objective_complicated.m
.m
ADBench-master/tools/ADiMat/d_hand_objective_complicated.m
21,047
utf_8
7da4cfd9248576ace9297afa5b29f270
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. % Generated by ADiMat 0.6.0-4975 % © 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.d...
github
microsoft/ADBench-master
adimat_compute_sparse_J.m
.m
ADBench-master/tools/ADiMat/adimat_compute_sparse_J.m
1,132
utf_8
842e2a8224449915390d3e6b135fcba5
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [Jacobian, fval] = adimat_compute_sparse_J(diffFunction, funcArgs,... fNargout, independents, nzpattern, coloring, compressedSeedMatrix) if nargin < 6 colFunc = @cpr; [colResults{1:2}] = colFunc(nzpattern); coloring = co...
github
microsoft/ADBench-master
ADiMat_hand_simple.m
.m
ADBench-master/tools/ADiMat/ADiMat_hand_simple.m
1,737
utf_8
74f8211dfe83b5b20bb92e6c18512c1a
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [tf, tJ] = ... ADiMat_hand(dir_in, dir_out, fn, nruns_f, nruns_J, time_limit, do_adimat_sparse) %adimat_hand % compute derivative of hand % NOTE this is simple, find complicated differences in adimat_run_tests if nargin < 7 d...
github
microsoft/ADBench-master
adimat_run_ba.m
.m
ADBench-master/tools/ADiMat/adimat_run_ba.m
1,396
utf_8
b5579a619e7c6855e72f6912d3c5fb7c
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [J, fval] = adimat_run_ba(do_F_mode,... cams,X,w,obs) %adimat_run_ba Call already translated function % and create our gradient if do_F_mode error('adimat_run_ba: forward not implemented.'); end %other option...
github
microsoft/ADBench-master
adimat_run_gmm_tests.m
.m
ADBench-master/tools/ADiMat/adimat_run_gmm_tests.m
2,077
utf_8
8a974f9793075fff63884331ef5419e9
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [times_f, times_J] = ... adimat_run_gmm_tests(do_adimat_vector,params,data_dir,task_fns,... nruns_f,nruns_J,J_file,times_file,replicate_point) %adimat_run_gmm_tests % compute derivative of gmm ntasks = numel(task_fns); do_F_mo...
github
microsoft/ADBench-master
adimat_run_hand.m
.m
ADBench-master/tools/ADiMat/adimat_run_hand.m
860
utf_8
46f84e61f2ceaa1d677be6c1cdec33dc
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [J, fval] = adimat_run_hand(do_F_mode, params, data, us) if ~do_F_mode error('adimat_run_hand: reverse not implemented.'); end %other options include: % arrderivclass, arrderivclassvxdd, opt_derivclass, % opt_sp_derivclass, mat...
github
microsoft/ADBench-master
ADiMat_gmm.m
.m
ADBench-master/tools/ADiMat/ADiMat_gmm.m
1,553
utf_8
9abfea10916baa6306948514f4d96374
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [tf, tJ] = ... ADiMat_gmm(dir_in, dir_out, fn, nruns_f, nruns_J, time_limit, replicate_point,do_adimat_vector) %adimat_run_gmm_tests % compute derivative of gmm if nargin < 8 do_adimat_vector = false; end if nargin < 7 rep...
github
microsoft/ADBench-master
adimat_run_gmm.m
.m
ADBench-master/tools/ADiMat/adimat_run_gmm.m
1,268
utf_8
14d82cb3c4b9b265ecd7374857b35dbb
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [J, fval] = adimat_run_gmm(do_F_mode,do_adimat_vector,... alphas,means,inv_cov_factors,x,hparams) %adimat_run_gmm Call already translated function % and create our gradient if do_adimat_vector objective = 'gmm...
github
microsoft/ADBench-master
d_ba_objective.m
.m
ADBench-master/tools/ADiMat/d_ba_objective.m
8,711
utf_8
05c49eede2fa86e762c8280b25cff727
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. % Generated by ADiMat 0.6.0-4975 % © 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.d...
github
microsoft/ADBench-master
ADiMat_hand_complicated.m
.m
ADBench-master/tools/ADiMat/ADiMat_hand_complicated.m
1,693
utf_8
5356ea93ed6b761b199e68d0dfbda153
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [tf, tJ] = ... ADiMat_hand(dir_in, dir_out, fn, nruns_f, nruns_J, time_limit, do_adimat_sparse) %adimat_hand % compute derivative of hand if nargin < 7 do_adimat_sparse = false; end nruns_f = str2double(nruns_f); nruns_J = st...
github
microsoft/ADBench-master
d_gmm_objective.m
.m
ADBench-master/tools/ADiMat/d_gmm_objective.m
8,389
utf_8
5c9ecac355e39b6a9bb8aac87d1ba825
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. % Generated by ADiMat 0.6.0-4975 % © 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.d...
github
microsoft/ADBench-master
a_compute_w_err.m
.m
ADBench-master/tools/ADiMat/a_compute_w_err.m
2,196
utf_8
2f50e1b09e9683b4207101f600638939
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. % Generated by ADiMat 0.6.0-4975 % © 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.d...
github
microsoft/ADBench-master
a_gmm_objective_vector_repmat.m
.m
ADBench-master/tools/ADiMat/a_gmm_objective_vector_repmat.m
23,211
utf_8
ded88baa28c4c079600663db6029cf29
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. % Generated by ADiMat 0.6.0-4975 % © 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.d...
github
microsoft/ADBench-master
adimat_translate_if_new.m
.m
ADBench-master/tools/ADiMat/adimat_translate_if_new.m
909
utf_8
5bb2d3f78feca1aeafc54ea8a0c06c80
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function adimat_translate_if_new(func,independents,do_forward_mode) addpath('../../submodules/adimat-0.6.2-5288'); ADiMat_startup addpath('../../submodules/awful/matlab'); func_name = [func2str(func) '.m']; if do_forward_mode d_name = ['d_'...
github
microsoft/ADBench-master
a_gmm_objective.m
.m
ADBench-master/tools/ADiMat/a_gmm_objective.m
24,381
utf_8
31e536d89b7090ea3e0f8ef60aa36ffd
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. % Generated by ADiMat 0.6.0-4975 % © 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.d...
github
microsoft/ADBench-master
ADiMat_ba.m
.m
ADBench-master/tools/ADiMat/ADiMat_ba.m
1,836
utf_8
240ba62d99ae9d3425527f4b86b8fccf
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [tf, tJ] = ... ADiMat_ba(dir_in, dir_out, fn, nruns_f, nruns_J, time_limit, do_adimat_sparse) %adimat_ba % compute derivative of ba if nargin < 7 do_adimat_sparse = false; end nruns_f = str2double(nruns_f); nruns_J = str2doub...
github
microsoft/ADBench-master
d_hand_objective.m
.m
ADBench-master/tools/ADiMat/d_hand_objective.m
19,798
utf_8
8ffa7bad23071172d4cb51d2dc2db949
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. % Generated by ADiMat 0.6.0-4975 % © 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.d...
github
microsoft/ADBench-master
adimat_run_tests.m
.m
ADBench-master/tools/ADiMat/adimat_run_tests.m
3,868
utf_8
ad62500c79c74d5c91df7d21f21146d7
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [times_f, times_J, times_sparse] = ... adimat_run_tests(problem_name,do_adimat_sparse,data_dir,task_fns,... nruns_f,nruns_J,times_file) isba = strcmp(problem_name,'ba'); ishandsimple = strcmp(problem_name,'handsimple'); ishandco...
github
microsoft/ADBench-master
ba_objective.m
.m
ADBench-master/tools/matlab-common/ba_objective.m
1,586
utf_8
eef05097c2cae9e752370a4e6aac5005
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [reproj_err, w_error] = ba_objective( cams, X, w, obs ) %BA_OBJECTIVE Bundle adjustment objective function % CAMERAS c x n % matrix containing parameters of n cameras % for now, supported format is on...
github
microsoft/ADBench-master
refresh_files.m
.m
ADBench-master/tools/matlab-common/refresh_files.m
640
utf_8
41a3704367bcdfb9fdab54cd3267cb3a
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function refresh_files(data_dir,tool,fns) ntasks = numel(fns); postfix = ['_times_' tool.ext]; if tool.call_type < 3 postfix = [postfix '.txt']; for j=1:ntasks fn = [data_dir fns{j} postfix]; if exist(fn,'file') ...
github
microsoft/ADBench-master
get_skinned_vertex_positions.m
.m
ADBench-master/tools/matlab-common/get_skinned_vertex_positions.m
2,613
utf_8
88e63f76158a17b7480304e9d3c31988
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function positions = get_skinned_vertex_positions(model, pose_params) relatives = get_posed_relatives(model, pose_params); absolutes = relatives_to_absolutes(relatives, model.parents); transforms = zeros(size(absolutes)); for i=1:size(transform...
github
microsoft/ADBench-master
mupad_run_gmm_tests.m
.m
ADBench-master/tools/matlab-common/mupad_run_gmm_tests.m
1,405
utf_8
93341e2d274bd58926967e3bab9b2722
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [times_f, times_J] = ... mupad_run_gmm_tests(params,data_dir,task_fns,... nruns_f,nruns_J,out_file,replicate_point) %mupad_run_gmm_tests % compute derivative of gmm addpath('mupad'); addpath('awful\matlab'); ntasks = numel(ta...
github
microsoft/ADBench-master
read_times.m
.m
ADBench-master/tools/matlab-common/read_times.m
1,421
utf_8
3da0e04154c0c8e8c805a79ec56e3239
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [times_f,times_J,up_to_date_mask] = ... read_times(data_dir,data_dir_est,fns,tools,problem_name) ntasks = numel(fns); ntools = numel(tools); times_f = Inf(ntasks,ntools); times_J = Inf(ntasks,ntools); up_to_date_mask = false(ntasks...
github
microsoft/ADBench-master
finite_diff_example.m
.m
ADBench-master/tools/matlab-common/finite_diff_example.m
766
utf_8
2b2682c369f701bad87545ce1c476b61
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function finite_diff_example h = 1e-14; while h(end)<10000 h(end+1) = h(end)*1.05; end lw = 1.5; x = 1e3; dyFD = FDfwd(x,h); dy = dfoo(x); plot(h,abs(dyFD-dy)/dy,'linewidth',lw); hold on x = 1; dyFD = FDfwd(x,h); dy = dfoo(x); plot(h,abs(d...
github
microsoft/ADBench-master
load_ba_instance.m
.m
ADBench-master/tools/matlab-common/load_ba_instance.m
1,131
utf_8
37eea891095e73588d8435c1afbcbcdb
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [cams, X, w, obs] = load_ba_instance( fn ) %LOAD_BA_INSTANCE format: % n m p % cam1 (row) % . % camn (row) % X1 (row) % . % Xm (row) % w1 w2 ... wp % ...
github
microsoft/ADBench-master
compute_w_err.m
.m
ADBench-master/tools/matlab-common/compute_w_err.m
131
utf_8
92bde3f5b56397064f1f3130022b87e3
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function w_err = compute_w_err(w) w_err = 1 - w.*w; end
github
microsoft/ADBench-master
generate_symbols.m
.m
ADBench-master/tools/matlab-common/generate_symbols.m
543
utf_8
3a617f54a590c2167263ad1f36369570
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function symbols_map = generate_symbols() symbols_map = containers.Map; symbols_map('') = 'none'; symbols_map('eigen') = '^'; symbols_map('vector') = 'v'; symbols_map('split') = 'x'; symbols_map('eigen_vector') = 'diamond'; symbols_map('auto...
github
microsoft/ADBench-master
logsumexp_repmat.m
.m
ADBench-master/tools/matlab-common/logsumexp_repmat.m
374
utf_8
5745d2a497488bea3b22481d63a8ce8a
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function out = logsumexp_repmat(x) % LOGSUMEXP Compute log(sum(exp(x))) stably. % X is k x n % OUT is 1 x n mx = max(x); emx = exp(x - repmat(mx,size(x,1),1)); % emx = exp(bsxfun(@minus, x, mx)); % bsxfun does not wo...
github
microsoft/ADBench-master
mupad_run_ba_tests.m
.m
ADBench-master/tools/matlab-common/mupad_run_ba_tests.m
1,312
utf_8
65dfe4c4318991018ac5820fe4e5b441
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [times_f, times_J] = ... mupad_run_ba_tests(params,data_dir,task_fns,... nruns_f,nruns_J,out_file) %mupad_run_ba_tests % compute derivative of ba addpath('mupad'); addpath('awful\matlab'); ntasks = numel(task_fns); times_f = ...
github
microsoft/ADBench-master
get_tools_gmm.m
.m
ADBench-master/tools/matlab-common/get_tools_gmm.m
6,646
utf_8
7776c632715a729c539524f14ea42d4d
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function tools = get_tools_gmm(exe_dir,python_dir,julia_dir) % call_type: % 0 standard - tools(id).run_cmd % 1 theano - tools(id).run_cmd % 2 ceres - tools(id).run_cmd+d+k % 3 adimat % 4 adimat vectorized % 5 mupad % 6 finite differ...
github
microsoft/ADBench-master
gmm_objective.m
.m
ADBench-master/tools/matlab-common/gmm_objective.m
2,724
utf_8
8c878ea585c2e948310f7f857d24ade2
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function err = gmm_objective(alphas,means,inv_cov_factors,x,hparams) % GMM_OBJECTIVE Evaluate GMM negative log likelihood for one point % ALPHAS % 1 x k vector of logs of mixture weights (unnormalized), so % ...
github
microsoft/ADBench-master
hand_objective.m
.m
ADBench-master/tools/matlab-common/hand_objective.m
443
utf_8
6c59de6f51baaf1d4e3eea5e8a26dd49
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function err = hand_objective(theta, data) %HAND_OBJECTIVE pose_params = to_pose_params(theta, size(data.model.bone_names,1)); vertex_positions = get_skinned_vertex_positions(data.model, pose_params); n_corr = numel(data.correspondences); err...
github
microsoft/ADBench-master
generate_ba_instance_params.m
.m
ADBench-master/tools/matlab-common/generate_ba_instance_params.m
1,710
utf_8
f820a062a2eed9c448b9fefb8dcd02d1
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function params_final = generate_ba_instance_params % generate_ba_instance_params: % assuming 11 camera parameters and zach robustifier % ntasks x [n_cams, n_pts, n_obs, total_in_params] % % returns a cell array of: % ...
github
microsoft/ADBench-master
create_nonzero_pattern_ba.m
.m
ADBench-master/tools/matlab-common/create_nonzero_pattern_ba.m
1,551
utf_8
180ba9ae64a81031ba0643f65bb7cee5
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function P = create_nonzero_pattern_ba( ncams, npts, obs ) %create_nonzero_pattern % CAMERAS c x n % matrix containing parameters of n cameras % for now, supported format is only % [r1 r2 r3 C...
github
microsoft/ADBench-master
load_J.m
.m
ADBench-master/tools/matlab-common/load_J.m
315
utf_8
908c8581a1663c476c7bb793d5f7be32
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [ J ] = load_J( fn ) %LOAD_J Summary of this function goes here % Detailed explanation goes here fid = fopen(fn,'r'); rows = fscanf(fid,'%i',1); cols = fscanf(fid,'%i',1); J = fscanf(fid,'%lf',[cols rows])'; fclose(fid); end
github
microsoft/ADBench-master
determine_n_runs.m
.m
ADBench-master/tools/matlab-common/determine_n_runs.m
525
utf_8
a42307fb1cca624873e13d765dcb385e
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function nruns = determine_n_runs(times_est) nruns = zeros(size(times_est)); for i=1:numel(times_est) if times_est(i) < 5 nruns(i) = 1000; elseif times_est(i) < 30 nruns(i) = 100; elseif times_est(i) < 120 nru...
github
microsoft/ADBench-master
save_ba_instance.m
.m
ADBench-master/tools/matlab-common/save_ba_instance.m
1,254
utf_8
890b4c2a790ad2d61157b96c81de9442
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function save_ba_instance( fn, cams, X, w, obs, n, m, p ) %SAVE_BA_INSTANCE format: % n m p % cam (row) % pt (row) % w % feat1 (row [x y]) fid = fopen(fn,'w'); if nargin < 6 n = size(cams,2)...
github
microsoft/ADBench-master
write_script.m
.m
ADBench-master/tools/matlab-common/write_script.m
4,581
utf_8
67c178880196f998d6bd1f9376097f68
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function write_script(script_fn,params,dir_in,dir_out,... fns,tools,nruns_f,nruns_J,replicate_point) if ~exist('replicate_point','var') replicate_point = false; end isgmm = (numel(params{1}) == 3); isba = (numel(params{1}) == 6); ishand...
github
microsoft/ADBench-master
get_tools_hand.m
.m
ADBench-master/tools/matlab-common/get_tools_hand.m
4,054
utf_8
a3b344f5eefc29597caf67003c321e68
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function tools = get_tools_hand(exe_dir,python_dir,julia_dir) % call_type: % 0 standard - tools(id).run_cmd % 1 theano - tools(id).run_cmd % 2 ceres - tools(id).run_cmd+d+k % 3 adimat % 4 adimat sparse % 5 mupad % markers cols = gene...
github
microsoft/ADBench-master
to_pose_params.m
.m
ADBench-master/tools/matlab-common/to_pose_params.m
905
utf_8
c0cf4aed644a06fcd1d66a534fd62bfa
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function pose_params = to_pose_params(theta,n_bones) % to_pose_params !!!!!!!!!!!!!!! fixed order pose_params !!!!! % 1) global_rotation 2) scale 3) global_translation % 4) wrist % 5) thumb1, 6)thumb2, 7) thumb3, 8) thumb4 % ...
github
microsoft/ADBench-master
get_tools_ba.m
.m
ADBench-master/tools/matlab-common/get_tools_ba.m
4,795
utf_8
7426b98ee88a9c7ea5d400ec039ef0a8
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function tools = get_tools_ba(exe_dir,python_dir,julia_dir) % call_type: % 0 standard - tools(id).run_cmd % 1 theano - tools(id).run_cmd % 2 ceres - tools(id).run_cmd+d+k % 3 adimat % 4 adimat sparse % 5 mupad % markers cols = genera...
github
microsoft/ADBench-master
load_hand_instance.m
.m
ADBench-master/tools/matlab-common/load_hand_instance.m
1,787
utf_8
a363e48f8725c82362bef5dcdc353979
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [params, data, us] = load_hand_instance(model_dir,fn) bones_fn = fullfile(model_dir,'bones.txt'); A=readtable(bones_fn,'Delimiter',':','ReadVariableNames',false); bone_names = table2cell(A(:,1)); n_bones = size(bone_names,1); parents...
github
microsoft/ADBench-master
is_up_to_date.m
.m
ADBench-master/tools/matlab-common/is_up_to_date.m
320
utf_8
682a45c6d7be8b9f2c04557c96902cde
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function out = is_up_to_date(results_fn,tool_fn) if ~exist(results_fn,'file') out = false; return end a = dir(results_fn); results_age = datetime(a.date); b = dir(tool_fn); tool_age = datetime(b.date); out = (tool_age < results_age);
github
microsoft/ADBench-master
generate_random_ba_instance.m
.m
ADBench-master/tools/matlab-common/generate_random_ba_instance.m
1,881
utf_8
b0e606d11d3930021fb5174ad6d37e06
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [cams,X,w,obs] = generate_random_ba_instance(n,m,p) %GENERATE_RANDOM_BA_INSTANCE % N is the number of cameras % M is the number of points % P is the number of observations % % CAMERAS c x n matrix containi...
github
microsoft/ADBench-master
gmm_objective_vector_repmat.m
.m
ADBench-master/tools/matlab-common/gmm_objective_vector_repmat.m
2,605
utf_8
e6a829b29e6bb2dd4b9e4fe08fdb10f1
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function err = gmm_objective_vector_repmat(alphas,means,inv_cov_factors,x,hparams) % GMM_OBJECTIVE Evaluate GMM negative log likelihood for one point % ALPHAS % 1 x k vector of logs of mixture weights (unnormalized), ...
github
microsoft/ADBench-master
plot_log_runtimes.m
.m
ADBench-master/tools/matlab-common/plot_log_runtimes.m
916
utf_8
d41bf4c46fe5eb0bca8fc5cf65733c57
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function plot_log_runtimes( tools, times, xvals, title_, ylabel_,xlabel_) lw = 2; msz = 7; [xvals, order] = sort(xvals); figure; to_show = 1:numel(tools); % all emphasized = []; % emphasized = [11 17 22]; for i=to_show properties = {'linew...
github
microsoft/ADBench-master
hand_objective_complicated.m
.m
ADBench-master/tools/matlab-common/hand_objective_complicated.m
658
utf_8
05f78396697dadecd265e50439f06dcb
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function err = hand_objective_complicated(theta, us, data) %HAND_OBJECTIVE pose_params = to_pose_params(theta, size(data.model.bone_names,1)); vertex_positions = get_skinned_vertex_positions(data.model, pose_params); n_corr = numel(data.corre...
github
microsoft/ADBench-master
get_tools_hand_complicated.m
.m
ADBench-master/tools/matlab-common/get_tools_hand_complicated.m
3,580
utf_8
a551ce2492de2f8ef7925517ec6b0541
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function tools = get_tools_hand_complicated(exe_dir,python_dir,julia_dir) % call_type: % 0 standard - tools(id).run_cmd % 1 theano - tools(id).run_cmd % 2 ceres - tools(id).run_cmd+d+k % 3 adimat % 4 adimat sparse % 5 mupad % markers...
github
microsoft/ADBench-master
load_gmm_instance.m
.m
ADBench-master/tools/matlab-common/load_gmm_instance.m
1,085
utf_8
28458897b7bfa54e4e2dcfc19d31fcd1
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function [params, x, hparams] = load_gmm_instance( fn, replicate_point ) %LOAD_GMM_INSTANCE % format: % d k n % alpha1 % alpha2 % . % alphak % mean1 (in row) % . % ...
github
microsoft/ADBench-master
logsumexp.m
.m
ADBench-master/tools/matlab-common/logsumexp.m
275
utf_8
67542bb7edb40d51af5c9c3ad614f249
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function out = logsumexp(x) % LOGSUMEXP Compute log(sum(exp(x))) stably. % X is k x n % OUT is 1 x n mx = max(x); emx = exp(x - mx); semx = sum(emx); out = log(semx) + mx;
github
microsoft/ADBench-master
generate_colors.m
.m
ADBench-master/tools/matlab-common/generate_colors.m
721
utf_8
178418a1364380de26d673b18d1fc130
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function cols_map = generate_colors() cols_map = containers.Map; cols_map('manual') = [230 159 0]/255; % orange cols_map('tapenade') = [0 .8 .8]; % cyan cols_map('adolc') = [0 114 178]/255; % blue cols_map('adept') = [0 0 0]; % black cols_m...
github
microsoft/ADBench-master
ba_compute_reproj_err.m
.m
ADBench-master/tools/matlab-common/ba_compute_reproj_err.m
1,004
utf_8
ba7930bd6b60ad3c6104795139f23025
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function err = ba_compute_reproj_err(cam,X,w,feat) i_rot = 1:3; i_C = 4:6; i_f = 7; i_princ_pt = 8:9; i_rad_params = 10:11; Xo = X - cam(i_C); Xcam = rodrigues_rotate_point(cam(i_rot),Xo); Xcam_e = Xcam(1:end-1)/Xcam(end); distorted = radial_di...
github
microsoft/ADBench-master
save_gmm_instance.m
.m
ADBench-master/tools/matlab-common/save_gmm_instance.m
1,387
utf_8
144f7671f3493eed3d35b6be9e8d47ea
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function save_gmm_instance(fn, params, x, hparams, n) %SAVE_GMM_INSTANCE % format: % d k n % alpha1 % alpha2 % . % alphak % mean1 (in row) % . % meank (in row)...
github
microsoft/ADBench-master
create_nonzero_pattern_hand.m
.m
ADBench-master/tools/matlab-common/create_nonzero_pattern_hand.m
952
utf_8
1cef7b6c46689b69493ecc0f8b05d581
% Copyright (c) Microsoft Corporation. % Licensed under the MIT license. function P = create_nonzero_pattern_hand(data) weights = data.model.weights; parents = data.model.parents; global_params = [true(3) logical(eye(3))]; nnz = (weights(:,data.correspondences) ~= 0)'; [~,parents_order] = sort(parents,'descend'); ...
github
microsoft/ADBench-master
adimat_opdiff_esol_right.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/tvector_directderivs/adimat_opdiff_esol_right.m
427
utf_8
413a7b88c111b5e85e8a153899d0bb65
% function r = adimat_opdiff_esol_right(t_val1, val1, val2) % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment % function t_res = adimat_opdiff_esol_right(t_val1, val1, val2) t_res = adimat_op...
github
microsoft/ADBench-master
adimat_opdiff_epow_right.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/tvector_directderivs/adimat_opdiff_epow_right.m
557
utf_8
c50bed19031e5d694d8f8fa38bb291e3
% function r = adimat_opdiff_epow_right(t_val1, val1, val2) % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment % function t_res = adimat_opdiff_epow_right(t_val1, val1, val2) % compute a.^x as...
github
microsoft/ADBench-master
adimat_opdiff_mult.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/tvector_directderivs/adimat_opdiff_mult.m
900
utf_8
4bf9b8026601e77c99c4f8a3883decda
% function r = adimat_opdiff_mult(t_val1, val1, t_val2, val2) % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment % function t_res = adimat_opdiff_mult(t_val1, val1, t_val2, val2) if isscalar(v...
github
microsoft/ADBench-master
adimat_opdiff_div_right.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/tvector_directderivs/adimat_opdiff_div_right.m
654
utf_8
cf66805452e6ce21bf9d7a443d6e2330
% function r = adimat_opdiff_div_right(g_val1, val1, val2) % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment % function r = adimat_opdiff_div_right(g_val1, val1, val2) if isscalar(val1) || is...
github
microsoft/ADBench-master
adimat_taylor_sinhcosh.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/tvector_directderivs/adimat_taylor_sinhcosh.m
1,093
utf_8
2159cca55630249de8792edec654a727
% function [t_sinh sinhx t_cosh coshx] = adimat_taylor_sinhcosh(t_x, x) % % Compute taylor coefficients of sinh(x) and cosh(x) simultaneously. % % see also admTaylorFor % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University. % function [t_sinh sinhx t_cosh coshx] = a...
github
microsoft/ADBench-master
adimat_t_size.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/tvector_directderivs/adimat_t_size.m
493
utf_8
e8fb431e6df2985e55dd1969a295ab47
% function sz = adimat_d_size(dval) % % Copyright 2011 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University. % This code is under development! Use at your own risk! Duplication, % modification and distribution FORBIDDEN! function sz = adimat_t_size(dval) sz = size(dval); sz = sz...
github
microsoft/ADBench-master
adimat_taylor_sqrt.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/tvector_directderivs/adimat_taylor_sqrt.m
737
utf_8
29e704b5e5a98775b692d8eb2cbb8fc9
% function [t_sqrt sqrtx] = adimat_taylor_sqrt(t_x, x) % % Compute taylor coefficients of sqrt(x). % % see also admTaylorFor % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University. % function [t_sqrt sqrtx] = adimat_taylor_sqrt(t_x, x) [ndd maxOrder nel] = size(t_x...
github
microsoft/ADBench-master
adimat_opdiff_sol_left.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/tvector_directderivs/adimat_opdiff_sol_left.m
656
utf_8
d5be08d440f461d55d3d7423ff87c623
% function r = adimat_opdiff_sol_left(val1, g_val2, val2) % % Copyright 2010,2011 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment % function r = adimat_opdiff_sol_left(val1, g_val2, val2) if isscalar(val1) ||...
github
microsoft/ADBench-master
adimat_opdiff_epow.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/tvector_directderivs/adimat_opdiff_epow.m
570
utf_8
67ca8fe8d276df2ac5d4cc807b5133bc
% function t_res = adimat_opdiff_epow(g_val1, val1, g_val2, val2) % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment % function [t_res res] = adimat_opdiff_epow(t_val1, val1, t_val2, val2) % c...
github
microsoft/ADBench-master
d_struct.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/tvector_directderivs/d_struct.m
657
utf_8
0e7296d9c5197d67180b23a06fa477b8
% function varargout = d_struct(varargin) % Create zero derivative object of struct objects % % see also d_zeros, a_struct % % This file is part of the ADiMat runtime environment % function varargout = d_struct(varargin) for i=1:nargin res = repmat(struct(), size(varargin{i})); fns = fieldnames(varargin{i})...
github
microsoft/ADBench-master
adimat_opdiff_ediv_left.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/tvector_directderivs/adimat_opdiff_ediv_left.m
475
utf_8
1766a9fe9d823594f2d741a689cc07e9
% function r = adimat_opdiff_ediv_left(v1, t_v2, v2) % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment % function [t_res res] = adimat_opdiff_ediv_left(v1, t_v2, v2) [t_v2i v2i] = adimat_tayl...
github
microsoft/ADBench-master
adimat_taylor_logs.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/tvector_directderivs/adimat_taylor_logs.m
978
utf_8
62c9a5dd0afa697ae37add3be0ba6bdf
% function [t_log logx] = adimat_taylor_logs(t_x, x, mode) % % Compute taylor coefficients of functions log, log2, log10, and log1p. % % see also admTaylorFor % % Copyright 2012 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University. % function [t_log logx] = adimat_taylor_logs(t_x, x,...
github
microsoft/ADBench-master
adimat_opdiff_pow.m
.m
ADBench-master/submodules/adimat-0.6.2-5288/tvector_directderivs/adimat_opdiff_pow.m
1,663
utf_8
9aab60a0ad8c6f738381c5d7b580ad4e
% function r = adimat_opdiff_pow(t_val1, val1, t_val2, val2) % % Copyright 2010,2011 Johannes Willkomm, Institute for Scientific Computing % RWTH Aachen University % % This file is part of the ADiMat runtime environment % function t_res = adimat_opdiff_pow(t_val1, val1, t_val2, val2) if isscalar(...