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
tsajed/nmr-pred-master
shaped_pulse_xy.m
.m
nmr-pred-master/spinach/kernel/pulses/shaped_pulse_xy.m
2,308
utf_8
1260d6e1278ac01983b4146f0ad12f8c
% Shaped pulse function using Cartesian coordinates. % % <http://spindynamics.org/wiki/index.php?title=Shaped_pulse_xy.m> function [rho,P]=shaped_pulse_xy(spin_system,drift,controls,amplitudes,time_grid,rho) % Check consistency grumble(drift,controls,amplitudes,time_grid,rho); % Decide the methods switch n...
github
tsajed/nmr-pred-master
pulse_shape.m
.m
nmr-pred-master/spinach/kernel/pulses/pulse_shape.m
1,558
utf_8
597f1551090d023b60c69f0c8be1440f
% Shaped pulse waveforms. Add your own if necessary. Syntax: % % waveform=pulse_shape(pulse_name,npoints) % % Parameters: % % pulse_name - the name of the pulse % % npoints - number of points in the pulse % % i.kuprov@soton.ac.uk function waveform=pulse_shape(pulse_name,npoints) %...
github
tsajed/nmr-pred-master
shaped_pulse_af.m
.m
nmr-pred-master/spinach/kernel/pulses/shaped_pulse_af.m
3,631
utf_8
b96a135717d2dcd2e93ff925404317ba
% Shaped pulse in amplitude-frequency coordinates using Fokker-Planck % formalism. Syntax: % % rho=shaped_pulse_af(spin_system,L0,Lx,Ly,rho,rf_frq_list,... % rf_amp_list,rf_dur_list,rf_phi,max_rank,method) % % Parameters: % % L0 - drift Liouvillian that continues % ...
github
tsajed/nmr-pred-master
read_wave.m
.m
nmr-pred-master/spinach/kernel/pulses/read_wave.m
1,720
utf_8
c5d0a2ff222049d09da608139ea7ec40
% Reads wavegauss.pk files. Arguments: % % filename - a string containing the name of the file % % npoints - waveform upsampling or downsampling is % performed to this number of points % % Note: phases are returned in degrees, amplitudes in percent. % % i.kuprov@soton.ac.uk fu...
github
tsajed/nmr-pred-master
triwave.m
.m
nmr-pred-master/spinach/kernel/pulses/triwave.m
1,156
utf_8
4cf472acf9cc9f3945fdfa385e52dd5d
% Returns a triangular waveform. Syntax: % % waveform=triwave(amplitude,frequency,time_grid) % % Arguments: % % amplitude - amplitude at the tooth top % % frequency - waveform frequency, Hz % % time_grid - vector of time points, seconds % % i.kuprov@soton.ac.uk function wavefor...
github
tsajed/nmr-pred-master
grad_sandw.m
.m
nmr-pred-master/spinach/kernel/pulses/grad_sandw.m
3,702
utf_8
05346aded1d5c4a56f9d56688ceb36b1
% Computes the effect of a gradient sandwich on the sample average density % matrix using Edwards formalism. It is assumed that the effect of diffusi- % on is negligible, that the gradients are linear, and that they are anti- % symmetric about the middle of the sample. Syntax: % % rho=grad_sandw(spin_system,L,...
github
tsajed/nmr-pred-master
cartesian2polar.m
.m
nmr-pred-master/spinach/kernel/pulses/cartesian2polar.m
5,606
utf_8
cd858484d46884e6e5f6e9124e021422
% Converts the [RF_x, RF_y] representation of a pulse waveform and the % derivatives of any function with respect to those RF values into the % [RF_amplitude, RF_phase] representation and the derivatives of the % function with respect to the amplitudes and phases. Syntax: % % [A,phi,df_dA,df_dphi]=cartesian...
github
tsajed/nmr-pred-master
vg_pulse.m
.m
nmr-pred-master/spinach/kernel/pulses/vg_pulse.m
8,574
utf_8
74f26e90fda6513d7234e7db168e9bf5
% Veshtort-Griffin shaped pulses, generated from tables given in % % http://dx.doi.org/10.1002/cphc.200400018 % % There are good reasons to believe (see Section 2.2 of the paper) that % these are the best possible pulses within their design specifications % and basis sets. Syntax: % % wa...
github
tsajed/nmr-pred-master
chirp_pulse_xy.m
.m
nmr-pred-master/spinach/kernel/pulses/chirp_pulse_xy.m
1,328
utf_8
60a1699f404ce6434d4dec3a29937a8b
% Chirp pulse waveform with a sine bell amplitude envelope in Cartesian % coordinates. Syntax: % % [Cx,Cy]=chirp_pulse_xy(npoints,duration,bandwidth,smfactor) % % with the following parameters: % % npoints - number of discretization points in % the waveform % % duration ...
github
tsajed/nmr-pred-master
polar2cartesian.m
.m
nmr-pred-master/spinach/kernel/pulses/polar2cartesian.m
5,677
utf_8
6bd36555a087883533cbbe7263d035e3
% Converts [RF_amplitude, RF_phase] representation of a pulse waveform and % the derivatives of any function with respect to those amplitudes and pha- % ses into the [RF_x, RF_y] representation and the derivatives of the func- % tion with respect to those X and Y RF values. Syntax: % % [x,y,df_dx,df_dy]=po...
github
tsajed/nmr-pred-master
grad_pulse.m
.m
nmr-pred-master/spinach/kernel/pulses/grad_pulse.m
4,237
utf_8
c183d457f49f7121f8d525daf67e7432
% Computes the effect of a gradient pulse on the sample average density % matrix using Edwards formalism. It is assumed that the effect of dif- % fusion is negligible, that the gradient is linear, and that it is an- % tisymmetric about the middle of the sample. Syntax: % % rho=grad_pulse(spin_system,rho,g_a...
github
tsajed/nmr-pred-master
wave_basis.m
.m
nmr-pred-master/spinach/kernel/pulses/wave_basis.m
3,090
utf_8
70011646cc9544f99942468390fb9dcf
% Common basis sets for the expansion of pulse waveforms. Returns the wave- % form basis functions as columns of a matrix. Syntax: % % basis_waves=wave_basis(basis_type,n_functions,n_steps) % % Parameters: % % basis_type - may be set to 'sine_waves', 'cosine_waves', % ...
github
tsajed/nmr-pred-master
oscillator.m
.m
nmr-pred-master/spinach/kernel/contexts/oscillator.m
1,368
utf_8
6c53aeeaf1935c1447ba630c0a307fe3
% Harmonic oscillator infrastructure. Syntax: % % [H_oscl,X_oscl,xgrid]=oscillator(parameters) % % where: % % parameters.frc_cnst - force constant % % parameters.dmd_mass - particle mass % % parameters.grv_cnst - gravitational acceleration % % parameters.n_points - number of di...
github
tsajed/nmr-pred-master
doublerot.m
.m
nmr-pred-master/spinach/kernel/contexts/doublerot.m
14,428
utf_8
cb152dc63d979f9801d438d1113dc5e8
% Fokker-Planck double angle spinning context. Generates a Liouvillian % superoperator and passes it on to the pulse sequence function, which % should be supplied as a handle. Syntax: % % answer=doublerot(spin_system,pulse_sequence,parameters,assumptions) % % where pulse sequence is a function handle to one of ...
github
tsajed/nmr-pred-master
gridfree.m
.m
nmr-pred-master/spinach/kernel/contexts/gridfree.m
9,938
utf_8
4022c6869a17347b8568ec5413610d90
% Fokker-Planck magic angle spinning and SLE context. Generates a Liouvil- % lian superoperator and passes it on to the pulse sequence function, which % should be supplied as a handle. Syntax: % % answer=gridfree(spin_system,pulse_sequence,parameters,assumptions) % % where pulse sequence is a function handle ...
github
tsajed/nmr-pred-master
roadmap.m
.m
nmr-pred-master/spinach/kernel/contexts/roadmap.m
9,126
utf_8
08c8533eb7af211f82f7270aea7bb271
% Runs a simulation of a user-specified pulse sequence for each % orientation found in the user-specified grid and returns the % corresponding angles, integration weights, tessellation trian- % gles and sequence results (as a cell array of whatever it is % that the pulse sequence returns). % % The function su...
github
tsajed/nmr-pred-master
singlerot.m
.m
nmr-pred-master/spinach/kernel/contexts/singlerot.m
12,699
utf_8
11c0be61b6734e767a0f62021d190e8d
% Fokker-Planck magic angle spinning context. Generates a Liouvillian % superoperator and passes it on to the pulse sequence function, which % should be supplied as a handle. Syntax: % % answer=singlerot(spin_system,pulse_sequence,parameters,assumptions) % % where pulse sequence is a function handle to one of t...
github
tsajed/nmr-pred-master
hydrodynamics.m
.m
nmr-pred-master/spinach/kernel/contexts/hydrodynamics.m
2,649
utf_8
bc4ad27ecd5cdc6c0d9387ead200ebe9
% A basic hydrodynamics infrastructure provider. % % i.kuprov@soton.ac.uk % a.j.allami@soton.ac.uk function [Fx,Fy,Fz]=hydrodynamics(parameters) % Build derivative operators switch parameters.cond{1} case 'period' % Finite-difference derivatives if numel(parameters.npts)...
github
tsajed/nmr-pred-master
liquid.m
.m
nmr-pred-master/spinach/kernel/contexts/liquid.m
7,042
utf_8
a05d9cd49ad028eb0ce831fd3d28e36b
% Liquid-phase interface to pulse sequences. Generates a Liouvillian % superoperator and passes it on to the pulse sequence function, which % should be supplied as a handle. % % This interface handles RDC mode -- if parameters.rdc switch is set, % it would use the order matrix supplied by the user to compute the ...
github
tsajed/nmr-pred-master
floquet.m
.m
nmr-pred-master/spinach/kernel/contexts/floquet.m
9,877
utf_8
65d69fc1a0387f63323369e3bedaaaa9
% Floquet magic angle spinning context. Generates a Liouvillian super- % operator and passes it on to the pulse sequence function, which sho- % uld be supplied as a handle. Syntax: % % answer=floquet(spin_system,pulse_sequence,parameters,assumptions) % % where pulse sequence is a function handle to one of the ...
github
tsajed/nmr-pred-master
crystal.m
.m
nmr-pred-master/spinach/kernel/contexts/crystal.m
7,327
utf_8
a81332b76ec1a047239c55862e7fe2f9
% Single-crystal interface to pulse sequences. Generates a Liouvillian % superoperator and passes it on to the pulse sequence function, which % should be supplied as a handle. Syntax: % % answer=crystal(spin_system,pulse_sequence,parameters,assumptions) % % where pulse sequence is a function handle to one of th...
github
tsajed/nmr-pred-master
powder.m
.m
nmr-pred-master/spinach/kernel/contexts/powder.m
8,514
utf_8
7cce16925a809009ed290cb07740a8cb
% Powder interface to pulse sequences. Generates a Liouvillian super- % operator, the initial state and the coil state, then passes them on % to the pulse sequence function. % % This function supports parallel processing via Matlab's Distributed % Computing Toolbox - different crystal orientations are evaluated on...
github
tsajed/nmr-pred-master
imaging.m
.m
nmr-pred-master/spinach/kernel/contexts/imaging.m
5,660
utf_8
ca7d80e75b1f4c5fb01b5c8cd16f89e7
% Generates spatially distributed dynamics operators. Syntax: % % [H,R,K,D,Gx,Gy,Gz,Fx,Fy,Fz]=imaging(H,Ph,K,Z,parameters) % % The following outputs are returned: % % H - spin Hamiltonian in the Fokker-Planck space % % R - spin relaxation superoperator in the Fokker- % Planc...
github
tsajed/nmr-pred-master
ttclass_amensum.m
.m
nmr-pred-master/spinach/kernel/overloads/ttclass_amensum.m
10,851
utf_8
32f7131d279f541862f1e4dededcda46
% Sums buffered tensor trains in a single tensor train by AMEn algorithm. % % y=ttclass_amensum(x, tol, opts) % % Input: x is a ttclass with buffered rank-one tensors % tol is a relative tolerance parameter, e.g. 1.e-10. % Output: y is a ttclass with a single tensor train, s.t. % | x - y | < tol | x...
github
tsajed/nmr-pred-master
ttclass_svd.m
.m
nmr-pred-master/spinach/kernel/overloads/ttclass_svd.m
1,496
utf_8
51fd6a6e6abd1c75c8085b5e8dcb8457
% Performs TT-truncation (right-to-left) for a tensor train. % Normally you should not call this subroutine directly. % % TTOUT=TTCLASS_SVD(TT) % % TT should contain a single tensor train, i.e. TT.ntrains=1. % TT should be orthogonalised left-to-right, eg. by TTCLASS_ORT. % TTOUT contains the same data approxim...
github
tsajed/nmr-pred-master
ttclass_sum.m
.m
nmr-pred-master/spinach/kernel/overloads/ttclass_sum.m
1,353
utf_8
43e2237a406fe30867a50049f6b837f9
% This subroutine packs all trains from buffer to a single train. % Normally you should not call it directly, use SHRINK instead. % % TTOUT=TTCLASS_SUM(TT) % % TT contains several buffered trains, % TTOUT has one train with sum-of-ranks. % % d.savostyanov@soton.ac.uk % function ttout=ttclass_sum(tt) % Rea...
github
tsajed/nmr-pred-master
ttclass_amen_solve.m
.m
nmr-pred-master/spinach/kernel/overloads/ttclass_amen_solve.m
18,579
utf_8
ed0bff477f38e79e4d9ae64abc3b3aa4
% Solves the linear system Ax=y using the AMEn iteration. % % x = amen_solve(A,y,tol,opts,x0) % % Input: A is a ttclass representing the square matrix; % y is a ttclass representing the right hand side. Both A and y % should have ntrains==1. Call shrink(A), shrink(y) if it is not % the c...
github
tsajed/nmr-pred-master
ttclass_chop.m
.m
nmr-pred-master/spinach/kernel/overloads/ttclass_chop.m
519
utf_8
8e97b25f14afdbf8d63e19ddc677e366
% This subroutine defines a rank of truncated SVD decomposition % Normal users whould not call it directly. % % R=TTCLASS_CHOP(S,TOLERANCE) % % Here S is a vector od singular values for a matrix, % TOLERANCE is absolute truncation threshold (Frobenius norm). % Returns the optimal rank of low-rank approxim...
github
tsajed/nmr-pred-master
ttclass_ort.m
.m
nmr-pred-master/spinach/kernel/overloads/ttclass_ort.m
3,819
utf_8
5de9198609fad42b00d0a1379c98a58f
% Performs TT-orthogonalisation for all trains from buffer. % DIR=+1 {default} gives you left-to-right orthogonality, % DIR=-1 right-to-left % Normally you should not call this subroutine directly. % % TT=TTCLASS_ORT(TT,DIR) % [TT,LOGNRM]=TTCLASS_ORT(TT,DIR) % % On input, TT contains several buffered trains, ...
github
tsajed/nmr-pred-master
ttclass_numel.m
.m
nmr-pred-master/spinach/kernel/overloads/ttclass_numel.m
710
utf_8
97f60f8e3294823ceb4f59353f1ba9d1
% Number of elements in the matrix represented by a tensor train. % Syntax: % n=ttclass_numel(ttrain) % % For large spin systems it may be too large to fit the integer. % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function n=ttclass_numel(ttrain) % Compute the number of eleme...
github
tsajed/nmr-pred-master
plus.m
.m
nmr-pred-master/spinach/kernel/overloads/@struct/plus.m
1,073
utf_8
93460242fd0dd5c04ff3062211674a88
% Adds corresponding fields of two structures. Nested structu- % res are processed recursively. Syntax: % % output_structure=plus(structure1,structure2) % % luke.edwards@ucl.ac.uk % i.kuprov@soton.ac.uk function str3=plus(str1,str2) % Decide how to proceed if isstruct(str1)&&isstruct(str2) ...
github
tsajed/nmr-pred-master
mtimes.m
.m
nmr-pred-master/spinach/kernel/overloads/@struct/mtimes.m
956
utf_8
5601726df09404a4212637629b5dc5e3
% Multiplies all entries of a structure by a user-specified % scalar. Nested structures are processed recursively. Syntax: % % output_structure=mtimes(scalar,input_structure) % % luke.edwards@ucl.ac.uk % i.kuprov@soton.ac.uk function str_out=mtimes(scalar,str_in) % Decide how to proceed if isscalar(sc...
github
tsajed/nmr-pred-master
plus.m
.m
nmr-pred-master/spinach/kernel/overloads/@cell/plus.m
940
utf_8
31149a14aaee466b40fb00c288f42050
% Adds cell arrays element-by-element. % % i.kuprov@soton.ac.uk function A=plus(A,B) if iscell(A)&&iscell(B)&&all(size(A)==size(B)) for n=1:numel(A), A{n}=A{n}+B{n}; end else error('cell array sizes must match.'); end end % I came into the room, which was half dark, and presently spotted Lord ...
github
tsajed/nmr-pred-master
mtimes.m
.m
nmr-pred-master/spinach/kernel/overloads/@cell/mtimes.m
543
utf_8
beb0e6df02028c9a678196badbcc4752
% Element-by-element multiplication of cell arrays of matrices. % % i.kuprov@soton.ac.uk function C=mtimes(A,B) if iscell(A)&&isnumeric(B) C=cell(size(A)); for n=1:numel(A), C{n}=A{n}*B; end elseif isnumeric(A)&&iscell(B) C=cell(size(B)); for n=1:numel(B), C{n}=A*B{n}; end else error('at least ...
github
tsajed/nmr-pred-master
minus.m
.m
nmr-pred-master/spinach/kernel/overloads/@cell/minus.m
300
utf_8
a452a40098a0deee00f05329e7fdf193
% Subtracts cell arrays element-by-element. % % i.kuprov@soton.ac.uk function A=minus(A,B) if iscell(A)&&iscell(B)&&all(size(A)==size(B)) for n=1:numel(A), A{n}=A{n}-B{n}; end else error('cell array sizes must match.'); end end % I can, therefore I am. % % Simone Weil
github
tsajed/nmr-pred-master
dot.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/dot.m
634
utf_8
4ed315ade74c2a8170df6bb02b79f71e
% Dot product of TT representations of matrices. Syntax: % % c=dot(a,b) % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function c=dot(a,b) % Check consistency grumble(a,b); % Compute the product c=ctranspose(a)*b; end % Consistency enforcement function grumble(a,b) i...
github
tsajed/nmr-pred-master
norm.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/norm.m
1,584
utf_8
6816c18c41f538aa0adf11e09a1d1402
% Computes the norm of the matrix represented by a tensor train. Syntax: % % ttnorm=norm(ttrain,norm_type) % % norm_type=1 returns the 1-norm % norm_type=inf returns the inf-norm % norm_type=2 returns the 2-norm % norm_type='fro' returns the Froben...
github
tsajed/nmr-pred-master
kron.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/kron.m
2,068
utf_8
c00292ef772aa5660ba73b7164905922
% Kronecker product of two matrices in a tensor train format. Syntax: % % c=kron(a,b) % % WARNING: the result is not the same as the flat matrix Kronecker pro- % duct (it is a row and column permutation away from it), but % the resulting order of elements is consis...
github
tsajed/nmr-pred-master
diag.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/diag.m
1,870
utf_8
191bfe0f479322a3bd9094dac9de24c1
% Mimics the diag behavior for tensor train matrix. Syntax: % % tt=diag(tt) % % If tt is a square matrix, return a vector by computing diag of every core. % If tt is a vector (one mode size is ones), return a diagonal matrix. % % d.savostyanov@soton.ac.uk function tt=diag(tt) % R...
github
tsajed/nmr-pred-master
transpose.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/transpose.m
587
utf_8
5806bbccc81adb6b93bba2a772a29743
% Transposes a tensor without complex conjugation. Syntax: % % ttrain=transpose(ttrain) % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function ttrain=transpose(ttrain) % Read tensor sizes and ranks [ncores,ntrains]=size(ttrain.cores); % Swap the middle dimensions of all cores fo...
github
tsajed/nmr-pred-master
mrdivide.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/mrdivide.m
720
utf_8
365b4610bcebe6bc9a9d0aef0b0221ca
% Divides a tensor train object by a scalar. Syntax: % % c=mrdivide(a,b) % % The first input should be a ttclass object and the % second one a scalar. % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function a=mrdivide(a,b) % Division of tensor train by a scalar if isa(a,'ttclass...
github
tsajed/nmr-pred-master
clearcoeff.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/clearcoeff.m
729
utf_8
02b24ad006d2659ceef5baeffa2cb49d
% Absorbs the physical coefficient of the tensor train into % its cores. Syntax: % % tt=clearcoeff(tt) % % The value of the tensor train remains the same. % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function tt=clearcoeff(tt) % Get the number of cores and trains [ncores,ntr...
github
tsajed/nmr-pred-master
isnumeric.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/isnumeric.m
438
utf_8
f38eac16170404dba2a67da27f6c7b20
% Returns TRUE for the tensor train class. Syntax: % % answer=isnumeric(tt) % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function answer=isnumeric(tt) % Non-empty tensor trains should return true() if isa(tt,'ttclass')&&(~isempty(tt.cores)) answer=true(); else answer=false(); end end ...
github
tsajed/nmr-pred-master
ttclass.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/ttclass.m
3,431
utf_8
5bd1a152d06f915314f7476f47b7b0f1
% Creates an object of a tensor train class. Syntax: % % tt=ttclass(coeff,kronterms,tolerance) % % Parameters: % % coeff - coefficient in front of the spin operator, % usually be the interaction magnitude % % kronterms - column cell array of matrices who...
github
tsajed/nmr-pred-master
ranks.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/ranks.m
822
utf_8
ed77cc9f19eac30b98342c6e2d4cffcc
% Returns the bond dimensions of a tensor train. Syntax: % % ttranks=ranks(ttrain) % % The output is (ncores+1) by (ntrains) array. The first % and the last elements for each train are 1. % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function ttranks=ranks(ttrain) % Get core arra...
github
tsajed/nmr-pred-master
mean.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/mean.m
1,780
utf_8
505c236ae5422286dda85b0231d3cc79
% Mean of elements of a tensor train representation of a % matrix. Syntax: % % answer=mean(ttrain,dim) % % The mean value is computed along the specified dimen- % sion (dim=1 or dim=2). % % d.savostyanov@soton.ac.uk function answer=mean(ttrain,dim) % Get sizes and ranks [ncores,ntrains]=siz...
github
tsajed/nmr-pred-master
ctranspose.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/ctranspose.m
606
utf_8
830087c613f5c3ecd61710101fca2e10
% Computes a Hermitian conjugate of a matrix in a tensor train % representation. Syntax: % % ttrain=ctranspose(ttrain) % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function ttrain=ctranspose(ttrain) % Read tensor sizes and ranks [ncores,ntrains]=size(ttrain.cores); % Swap the ...
github
tsajed/nmr-pred-master
vec.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/vec.m
1,384
utf_8
5aad94388c8dd72a7ff58440a6010884
% Stretches arrays into vectors - useful for situations when the stand- % ard (:) syntax is not available. Syntax: % % A=vec(A) % % WARNING: for tensor trains this operation proceeds by stretching eve- % ry core of the tensor train. the result is not the same as % ...
github
tsajed/nmr-pred-master
hdot.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/hdot.m
1,611
utf_8
eb6826af52215250705b7f51b54be0ea
% Haramard dot product between two tensor train matrices. Syntax: % % c=hdot(a,b) % % d.savostyanov@soton.ac.uk function c=hdot(a,b) % Check consistency grumble(a,b); % Read topology and initialize the answer [ncores,ntrains_a]=size(a.cores); ranks_a=ranks(a); [~ ,ntrains_b]=...
github
tsajed/nmr-pred-master
nnz.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/nnz.m
564
utf_8
339a7a7d65b6617798bed101c9cd61eb
% Number of nonzeros in all cores of a tensor train. Syntax: % % answer=nnz(ttrain) % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function answer=nnz(ttrain) % Count the non-zeros answer=sum(sum(cellfun(@nnz,ttrain.cores))); end % Men have always been and forever would rema...
github
tsajed/nmr-pred-master
revert.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/revert.m
674
utf_8
4f5ecd5143606ab0df50d58b16728f70
% Bit-revert permutation for the tensor train operator. Syntax: % % tt=revert(tt) % % d.savostyanov@soton.ac.uk function tt=revert(tt) % Read sizes and ranks [ncores,ntrains]=size(tt.cores); % Swap bond indices for n=1:ntrains for k=1:ncores tt.cores{k,n}=permute(tt.c...
github
tsajed/nmr-pred-master
isreal.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/isreal.m
672
utf_8
1bd8c5780bae5b52c47e596f70ed0347
% Returns TRUE for the real-valued ttclass. Syntax: % % answer=isreal(tt) % % d.savostyanov@soton.ac.uk function answer=isreal(tt) % Non-empty tensor trains should return true() if isa(tt,'ttclass') % Check coefficient first answer=all(isreal(tt.coeff)); % If the coefficients are real, ch...
github
tsajed/nmr-pred-master
sum.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/sum.m
1,823
utf_8
e0bcb7c4f07a01c8e5ae0b61c918d654
% Sum of elements of a tensor train representation of a matrix. Syntax: % % answer=sum(ttrain,dim) % % The sum is taken along the specified dimension (dim=1 or dim=2). % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function answer=sum(ttrain,dim) % Get sizes and ranks [ncores,...
github
tsajed/nmr-pred-master
shrink.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/shrink.m
908
utf_8
862451f6f6f1d11e28a63dacc4b6ff5e
% Approximates a given tensor train with lower TT-ranks. Syntax: % % ttrain=shrink(ttrain) % % Returns a single tensor train with right-to-left orthogonalisation. % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function ttrain=shrink(ttrain) % Read train sizes [d,~]=size(ttrai...
github
tsajed/nmr-pred-master
ismatrix.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/ismatrix.m
407
utf_8
b7254d251d685122914e49f515bb4b0f
% Returns TRUE for the tensor train class. Syntax: % % answer=ismatrix(tt) % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function answer=ismatrix(tt) % Non-empty tensor trains should return true() if isa(tt,'ttclass')&&(~isempty(tt.cores)) answer=true(); else answer=false(); end end % ...
github
tsajed/nmr-pred-master
full.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/full.m
1,492
utf_8
88c9bbf81a4497fc240f5126c863ca41
% Converts a tensor train representation of a matrix into a matrix. % Syntax: % answer=full(ttrain) % % Note: the result can be huge, careless use would crash the system. % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function answer=full(ttrain) % Preallocate the result a...
github
tsajed/nmr-pred-master
size.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/size.m
1,361
utf_8
222c4d5e38f9b1cadb6d3da9e6a4669d
% Returns the size of the matrix represented by a tensor train. % Syntax: % [m,n]=size(tt,dim) % % For large spin systems M and N may be too large to fit into % the maximum integer permitted by Matlab. % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function varargout=size(tt,d...
github
tsajed/nmr-pred-master
sizes.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/sizes.m
769
utf_8
3f04bc99817774a800acc1d1111751e2
% Returns mode sizes (physical dimensions of each core) of % a tensor train. Syntax: % % modesizes=sizes(tt) % % The output is an array with ncores rows and two columns. % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function modesizes=sizes(tt) % Determine the number of cores nc...
github
tsajed/nmr-pred-master
conj.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/conj.m
575
utf_8
3ceb631d25f6aa84ea4d7d1d6141a78c
% Conjugate the elements of the tensor train matrix. Syntax: % % tt=conj(tt) % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function tt=conj(tt) % Read tensor train sizes and ranks [ncores,ntrains]=size(tt.cores); % Conjugate the cores for n=1:ntrains for k=1:ncores ...
github
tsajed/nmr-pred-master
subsref.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/subsref.m
2,400
utf_8
6d416b5e01fa1147d3fa7eb199216cf9
% Dot and bracket property specifications for the tensor train class. % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function answer=subsref(ttrain,reference) switch reference(1).type % Methods and properties case '.' % Return the output requested switch refere...
github
tsajed/nmr-pred-master
rand.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/rand.m
850
utf_8
673cd6e50adc12fa9d9e408cb8b05cc2
% Generates tensor train matrix with random entries, same physical index % topology at the tensor train supplied, and specified TT-ranks. Syntax: % % tt=rand(tt,ttrank) % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function tt=rand(tt,ttrank) % Read tensor train sizes [d,~]=s...
github
tsajed/nmr-pred-master
plus.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/plus.m
1,037
utf_8
94add29cbc7f9d3cbc684e0c1595790a
% Tensor train addition operation. Does not perform the actual addition, % but instead concatenates the operands until such time as recompression % becomes absolutely necessary. Syntax: % % c=plus(a,b) % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function a=plus(a,b) ...
github
tsajed/nmr-pred-master
unit_like.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/unit_like.m
1,785
utf_8
0bdd95c2f58b8d61a904947ec98435d4
% Returns a unit object of the same type as whatever is supplied. % % A=unit_like(A) % % Full square matrices, sparse matrices and tensor train represen- % tations of square matrices are supported. % % i.kuprov@soton.ac.uk function A=unit_like(A) if isa(A,'ttclass') % Uni...
github
tsajed/nmr-pred-master
mtimes.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/mtimes.m
5,965
utf_8
2dc0443feb0d20eea9a969bcd0222188
% Performs tensor train multiplication followed by a shrink. Syntax: % % c=mtimes(a,b) % % where first operand (a) can be scalar or tensor train, second operand % (b) can be scalar, or tensor train, or full matrix. % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function c=mtim...
github
tsajed/nmr-pred-master
mldivide.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/mldivide.m
870
utf_8
753b64fec557e020644e064b581fd109
% Solves a linear system with tensor train objects. Syntax: % % x=mldivide(A,y) % % The first input should be a ttclass matrix and the % second one a ttclass vector of appropriate mode sizes. % % Note: the AMEn-solve algorithm is applied to symmetrized % system A'A x = A'y. % % d.sa...
github
tsajed/nmr-pred-master
trace.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/trace.m
1,192
utf_8
086e187c1371bff5bb6924cd7965a146
% Computes the trace of a tensor train operator. Syntax: % % tttrace=trace(tt) % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function tttrace=trace(tt) % Read sizes and ranks [ncores,ntrains]=size(tt.cores); tt_ranks=ranks(tt); tt_sizes=sizes(tt); % Make an auxiliary tensor tr...
github
tsajed/nmr-pred-master
rdivide.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/rdivide.m
752
utf_8
36cb64a77970cb6031449a15a3f65137
% Divides a tensor train object by a scalar. Syntax: % % c=rdivide(a,b) % % The first input should be a ttclass object and the % second one a scalar. % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function a=rdivide(a,b) % Division of tensor train by a scalar if isa(a,'ttclass')...
github
tsajed/nmr-pred-master
minus.m
.m
nmr-pred-master/spinach/kernel/overloads/@ttclass/minus.m
1,042
utf_8
c4a72a765e7bae60094e8ef1657324c6
% Tensor train subtraction operation. Does not perform the actual subtraction % but instead concatenates the operands until such time as recompression beco- % mes absolutely necessary. Syntax: % % c=minus(a,b) % % d.savostyanov@soton.ac.uk % i.kuprov@soton.ac.uk function a=minus(a,b)...
github
tsajed/nmr-pred-master
ist_product_table.m
.m
nmr-pred-master/spinach/kernel/cache/ist_product_table.m
2,349
utf_8
21a7346291a6dfd9ce26b0b64366d459
% Structure coefficient tables for the associateive envelopes of su(mult) % algebras. Syntax: % % [product_table_left,product_table_right]=ist_product_table(mult) % % The input parameter is the multiplicity of the spin in question. Output % contains the structure constants in the following conventions: % % ...
github
tsajed/nmr-pred-master
sle_operators.m
.m
nmr-pred-master/spinach/kernel/cache/sle_operators.m
12,203
utf_8
559f4a2c2b9b6a2c65735def057aa88e
% Lab space basis set and lab space operators required by % the SLE module. Syntax: % % [Lx,Ly,Lz,D,space_basis]=sle_operators(max_rank) % % Input parameters: % % max_rank - maximum L rank for Wigner functions % % Output parameters: % % space_basis - lab space basis set descriptor, in % ...
github
tsajed/nmr-pred-master
fminsimplex.m
.m
nmr-pred-master/spinach/kernel/optimcon/fminsimplex.m
13,910
utf_8
d3bff5cd1d377cf7d5a96e32dd76ddbe
% Nelder-Mead and Multi-directional search simplex algorithms for % minimisation of a gradient-free objective function % % <http://spindynamics.org/wiki/index.php?title=Fminsimplex.m> function [x, f_min, data] = fminsimplex(cost_function, x, optim, cost_fun_vars) x0 = x(:); data.x_shape=size(x); % Work with column ve...
github
tsajed/nmr-pred-master
control_sys.m
.m
nmr-pred-master/spinach/kernel/optimcon/control_sys.m
6,790
utf_8
57f9087ab0a0c20d9456ed9d05a872c3
% Options and structure creation for a control system. Sets the various % options used throughout optimal control algorithms. % % Modifications to this function are discouraged -- the accuracy settings % should be modified by setting the sub-fields of the ctrl_param structure. % % <http://spindynamics.org/wiki/in...
github
tsajed/nmr-pred-master
fminnewton.m
.m
nmr-pred-master/spinach/kernel/optimcon/fminnewton.m
17,628
utf_8
15ea3b38da97ebf79602ae45fa5bfee0
% Finds a local minimum of a function of several variables using % newton-based algorithms. % % Based on fminlbfgs.m code from D. Kroon, University of Twente (Nov 2010). % % <http://spindynamics.org/wiki/index.php?title=Fminnewton.m> function [x,fx,grad,hess,data]=fminnewton(cost_function,x_0,optim,hess_init,co...
github
tsajed/nmr-pred-master
optim_report.m
.m
nmr-pred-master/spinach/kernel/optimcon/optim_report.m
1,757
utf_8
f7dd7f8057046240b90b693d6bed03a2
% Writes a log message to the console or an ACSII file. Syntax: % % <http://spindynamics.org/wiki/index.php?title=Optim_report.m> function optim_report(output,report_string,depth,close_file) % close all open files if selected if nargin==4 && islogical(close_file) && close_file, fclose('all'); return; end ...
github
tsajed/nmr-pred-master
quasinewton.m
.m
nmr-pred-master/spinach/kernel/optimcon/quasinewton.m
2,352
utf_8
a57492127a57a92030c59bafac69caa9
% BFGS and SR1 Hessian update. % % <http://spindynamics.org/wiki/index.php?title=Quasinewton.m> function B_new=quasinewton(B_old,x_new,x_old,df_new,df_old,inv_method,algo) % Check consistency grumble(x_new,x_old,df_new,df_old); % if no method is supplied, use the bfgs formula if ~exist('algo','var'), algo='bfgs'; en...
github
tsajed/nmr-pred-master
krotov.m
.m
nmr-pred-master/spinach/kernel/optimcon/krotov.m
5,158
utf_8
abcabbd52696973dab872bdfe49c82ed
% Krotov type algorithms for phase-sensitive state-to-state transfer prob- % lems. % % <http://spindynamics.org/wiki/index.php?title=Krotov.m> function [diag_data,waveform,traj_fwd,traj_bwd,fidelity,grad]=... krotov(spin_system,ctrl_system,drift,waveform,traj_fwd,traj_bwd,hess) % Scale the waveform wavef...
github
tsajed/nmr-pred-master
grape.m
.m
nmr-pred-master/spinach/kernel/optimcon/grape.m
13,528
utf_8
8591860cae3678be8002f5235143c259
% Gradient Ascent Pulse Engineering (GRAPE) objective function, gradient % and Hessian. Propagates the system through a user-supplied shaped pulse % from a given initial state and projects the result onto the given final % state. The real part of the projection is returned, along with its % gradient and Hessian wit...
github
tsajed/nmr-pred-master
objeval.m
.m
nmr-pred-master/spinach/kernel/optimcon/objeval.m
3,088
utf_8
e60d6bdeefcb93c5557521470336efe2
% function to call and collect the correct amount of outputs from an % objective function % % <http://spindynamics.org/wiki/index.php?title=Objeval.m> function [data,fx,grad,hess]=objeval(x,obj_fun_handle, data) % Call the cost function with gradient and Hessian if nessesary fcn_list=dbstack; if numel(fcn_list)==1, o...
github
tsajed/nmr-pred-master
hessprep.m
.m
nmr-pred-master/spinach/kernel/optimcon/hessprep.m
1,734
utf_8
aaddb7bf831c91de17c966b0b5ebf3af
% function to prepare a Hessian matrix to be definite and well-conditioned % % <http://spindynamics.org/wiki/index.php?title=Hessprep.m> function [grad,hess,data]=hessprep(grad,hess,optim,data) % force real and symmetric hessian if ~isreal(hess), hess=real(hess); end if ~issymmetric(hess), hess=(hess+hess')./...
github
tsajed/nmr-pred-master
fminkrotov.m
.m
nmr-pred-master/spinach/kernel/optimcon/fminkrotov.m
12,813
utf_8
e8383a5b053d6fd38b292c83987db02c
% Krotov type algorithms for phase-sensitive state-to-state transfer prob- % lems. % % <http://spindynamics.org/wiki/index.php?title=Fminkrotov.m> function [x,fx,grad,data]=fminkrotov(cost_function,x_0,optim,hess_init,cost_fun_vars) % Initialize the structure of the initial guess x = x_0(:); data.x_shape=size...
github
tsajed/nmr-pred-master
penalty.m
.m
nmr-pred-master/spinach/kernel/optimcon/penalty.m
4,563
utf_8
5a621417cb8dffed9ed565c9888114f1
% Penalty terms for the Optimal Control module. Returns the penalty % function and its gradient for the waveform, which should be sup- % plied as row vector or a horizontal stack thereof. % % <http://spindynamics.org/wiki/index.php?title=Penalty.m> function [pen_term,pen_grad,pen_hess]=penalty(wf,type,fb,cb) ...
github
tsajed/nmr-pred-master
hessreg.m
.m
nmr-pred-master/spinach/kernel/optimcon/hessreg.m
8,444
utf_8
63121c6ece25f6262e476760d35d36ea
% Hessian Regularisation for quasi-Newton and Newton-Raphson optimisation % regularisations. To be used when ill-conditioned or near-singular Hessian % matrices are expected. Can also be used to condition any square, % symmetric matrix. % % <http://spindynamics.org/wiki/index.php?title=Hessreg.m> function [H,g,data]=...
github
tsajed/nmr-pred-master
lbfgs.m
.m
nmr-pred-master/spinach/kernel/optimcon/lbfgs.m
871
utf_8
20b9db7e31b7e671f27fcb1aff1ebc44
% L-BFGS optimization step update. % % <http://spindynamics.org/wiki/index.php?title=Lbfgs.m> function direction=lbfgs(x_hist,df_hist,grad,N) % Initialize variables a=zeros(1,N); p=zeros(1,N); for i=1:N p(i)= 1 / (df_hist(:,i)'*x_hist(:,i)); a(i) = p(i)* x_hist(:,i)' * grad; grad = grad - a(...
github
tsajed/nmr-pred-master
optim_tols.m
.m
nmr-pred-master/spinach/kernel/optimcon/optim_tols.m
43,168
utf_8
574a0a12d2b17e159d4daad011e4bbf8
% Tolerances and options for optimisation and control. Sets the various % optimisation methods, corresponding tolerances, and options used % throughout numerical optimisation. % % Modifications to this function are discouraged -- the accuracy settings % should be modified by setting the sub-fields of the optim str...
github
tsajed/nmr-pred-master
linesearch.m
.m
nmr-pred-master/spinach/kernel/optimcon/linesearch.m
11,759
utf_8
35f058447bda67464a20c82e7a0e5a98
% Performs a line search to find an appropriate step length called from % within a given optimisation algorithm, e.g. using fminnewton.m. This % function generally assumes cheap gradients. % % bracket-section line search based on fminlbfgs.m code from D. Kroon, % University of Twente (Nov 2010). % % <http://spi...
github
tsajed/nmr-pred-master
maryan.m
.m
nmr-pred-master/spinach/kernel/legacy/maryan.m
332
utf_8
c88272a34c8e931883d89b087f7d0565
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function maryan(varargin) % Direct the user to the new function error('This function is deprecated, use rydmr() or rydmr_exp() instead.'); end % No man is regular in his attendance at the House of % Commons until he is married. % % Benjamin ...
github
tsajed/nmr-pred-master
mfe.m
.m
nmr-pred-master/spinach/kernel/legacy/mfe.m
337
utf_8
d1059327267b2aa5a8882461ca2d288a
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function mfe(varargin) % Direct the user to the new function error('This function is deprecated, use rydmr() or rydmr_exp() instead.'); end % The bravest sight in the world is to see a great man % struggling against adversity. % % Lucius A...
github
tsajed/nmr-pred-master
g03_parse.m
.m
nmr-pred-master/spinach/kernel/legacy/g03_parse.m
544
utf_8
e4f122bac1d86bac4cbc9473dd477696
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function g03_parse(varargin) % Direct the user to the new function error('This function is deprecated, use gparse() instead.'); end % If some "pacifist" society renounced the retaliatory use of force, it % would be left helplessly at the mercy...
github
tsajed/nmr-pred-master
state_diagnostics.m
.m
nmr-pred-master/spinach/kernel/legacy/state_diagnostics.m
308
utf_8
ff3cdf6e21e55e60cbb2ade506247268
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function state_diagnostics(varargin) % Direct the user to the new function error('This function is deprecated, use stateinfo() instead.'); end % A man is never so proud as when striking an attitude of humility. % % C.S. Lewis
github
tsajed/nmr-pred-master
g03_to_spinach.m
.m
nmr-pred-master/spinach/kernel/legacy/g03_to_spinach.m
315
utf_8
ba075e44bb72a741911e87a47c19eb2b
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function g03_to_spinach(varargin) % Direct the user to the new function error('This function is deprecated, use g2spinach() instead.'); end % If I asked the public what they wanted, they would % say "a faster horse". % % Henry Ford
github
tsajed/nmr-pred-master
mary.m
.m
nmr-pred-master/spinach/kernel/legacy/mary.m
285
utf_8
5e5a909aaefa86cfcd8bfaec635b4034
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function mary(varargin) % Direct the user to the new function error('This function is deprecated, use rydmr() or rydmr_exp() instead.'); end % As for our majority... one is enough. % % Benjamin Disraeli
github
tsajed/nmr-pred-master
h_superop.m
.m
nmr-pred-master/spinach/kernel/legacy/h_superop.m
470
utf_8
06c55ce1e1ce4899428c98f16a9709c2
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function h_superop(varargin) % Direct the user to the new function error('This function is deprecated, use hamiltonian() instead.'); end % History has shown us that it's not religion that's % the problem, but any system of thought that insists...
github
tsajed/nmr-pred-master
offset.m
.m
nmr-pred-master/spinach/kernel/legacy/offset.m
283
utf_8
0aa7a17ad484f8a8946ca0f78da9c3a9
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function offset(varargin) % Direct the user to the new function error('This function is deprecated, use frqoffset() instead.'); end % "If nothing is self-evident, nothing can be proved" % % C.S. Lewis
github
tsajed/nmr-pred-master
statevec.m
.m
nmr-pred-master/spinach/kernel/legacy/statevec.m
399
utf_8
2dfe9115dc6b1570e6353d9dde35d405
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function statevec(varargin) % Direct the user to the new function error('This function is deprecated, use state() instead.'); end % We are back with the self-deluding idiocies of the liberals, % the people who think something that isn't a circ...
github
tsajed/nmr-pred-master
a_superop.m
.m
nmr-pred-master/spinach/kernel/legacy/a_superop.m
723
utf_8
f6f5fbc6e644c8af46730a38afce2626
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function a_superop(varargin) % Direct the user to the new function error('This function is deprecated, use operator() instead.'); end % For economic and political thought to make useful progress, % it needs to be informed by evolutionary biol...
github
tsajed/nmr-pred-master
k_superop.m
.m
nmr-pred-master/spinach/kernel/legacy/k_superop.m
371
utf_8
64e160237f5520e6d554c14ba0d8aa62
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function k_superop(varargin) % Direct the user to the new function error('This function is deprecated, use kinetics() instead.'); end % "Why 100? If I were wrong, one would have been enough." % % Albert Eistein's response to Nazis lining up ...
github
tsajed/nmr-pred-master
simpson2spinach.m
.m
nmr-pred-master/spinach/kernel/legacy/simpson2spinach.m
279
utf_8
38f1875f720e5ecada507cd0fedb0791
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function simpson2spinach(varargin) % Direct the user to the new function error('This function is deprecated, use s2spinach() instead.'); end % Science advances one funeral at a time. % % Max Planck
github
tsajed/nmr-pred-master
pulse_acquire.m
.m
nmr-pred-master/spinach/kernel/legacy/pulse_acquire.m
498
utf_8
2d7060200adeb4a2cbb3601e9318c288
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function pulse_acquire(varargin) % Direct the user to the new function error('This function is deprecated, use acquire(), hp_acquire() or sp_acquire() instead.'); end % I have brought myself, by long meditation, to the conviction % that a hum...
github
tsajed/nmr-pred-master
c_superop.m
.m
nmr-pred-master/spinach/kernel/legacy/c_superop.m
1,273
utf_8
9b74037eb18634a6e2ab64f677b0e8f7
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function c_superop(varargin) % Direct the user to the new function error('This function is deprecated, use operator() instead.'); end % You can always tell when a public figure has said something with the ring % of truth about it by the abject...
github
tsajed/nmr-pred-master
r_superop.m
.m
nmr-pred-master/spinach/kernel/legacy/r_superop.m
304
utf_8
4ff96fbb579f527d1f76ac6696066ec7
% A trap for legacy function calls. % % i.kuprov@soton.ac.uk function r_superop(varargin) % Direct the user to the new function error('This function is deprecated, use relaxation() instead.'); end % In the fields of observation chance favors only the prepared mind. % % Louis Pasteur