<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://spindynamics.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Admin</id>
	<title>Spinach Documentation Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://spindynamics.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Admin"/>
	<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Special:Contributions/Admin"/>
	<updated>2026-12-01T19:28:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.15</generator>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Guess_j_nuc.m&amp;diff=5201</id>
		<title>Guess j nuc.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Guess_j_nuc.m&amp;diff=5201"/>
		<updated>2023-08-09T13:48:42Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:guess_j_nuc.m}} __NOTOC__&lt;br /&gt;
Assigns &amp;#039;&amp;#039;J&amp;#039;&amp;#039;-couplings in nucleic acids from atomic coordinates using semi-empirical estimates. It is a graph-theoretical estimator with the following stages:&lt;br /&gt;
&lt;br /&gt;
# Molecular bonding graph is partitioned into connected subgraphs of size two, and one-bond &amp;#039;&amp;#039;J&amp;#039;&amp;#039;-couplings are assigned from a complete database of atom pairs. There are fewer than 50 unique connected atom pairs in regular nucleic acids; most one-bond &amp;#039;&amp;#039;J&amp;#039;&amp;#039;-couplings within those pairs can be either found in the literature, or measured in individual nucleic acids, or estimated with sufficient accuracy using electronic structure theory software.&lt;br /&gt;
# Molecular bonding graph is partitioned into connected subgraphs of size three, and two-bond &amp;#039;&amp;#039;J&amp;#039;&amp;#039;-couplings are assigned from a complete database of connected atom triples. There are fewer than 75 unique connected atom triples in nucleic acids, a small enough number for an exhaustive list to be compiled from experiments, literature, and electronic structure theory estimates.&lt;br /&gt;
# Molecular bonding graph is partitioned into sequentially connected subgraphs of size four and dihedral angles are computed from atomic coordinates, allowing three-bond &amp;#039;&amp;#039;J&amp;#039;&amp;#039;-couplings to be assigned from a complete database of Karplus curves. The number of unique sequentially connected atom quartets found in nucleic acids (fewer than 100, many belonging to similar structural types) is sufficiently small for a complete database of Karplus curves to be compiled from literature data, experiments, and electronic structure theory estimates.&lt;br /&gt;
&lt;br /&gt;
J-couplings across more than three bonds are ignored.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     jmatrix=guess_j_nuc(nuc_num,nuc_typ,pdb_id,coords)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
     nuc_num  - nspins x 1 vector giving the number of the nucleotide to which each spin belongs&lt;br /&gt;
 &lt;br /&gt;
     nuc_typ  - nspins x 1 cell array of strings giving the PDB identifier of the nucleotide to &lt;br /&gt;
                which each spin belongs (e.g. &amp;#039;GUA&amp;#039;)&lt;br /&gt;
 &lt;br /&gt;
     pdb_id   - nspins x 1 cell array of strings giving the PDB identifier of the nucleic acid atom &lt;br /&gt;
                type to which each spin belongs (e.g. &amp;#039;C1P&amp;#039;)&lt;br /&gt;
 &lt;br /&gt;
     coords   - nspins x 1 cell array of 3-vectors giving cartesian coordinates of each spin in Angstrom&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     jmatrix  - nspins x nspins sparse matrix of J-couplings in Hz&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
The function accepts, for example, the output of [[read_pdb_nuc.m]]:&lt;br /&gt;
&lt;br /&gt;
     % Parse the PDB file&lt;br /&gt;
     [pdb_nuc_num,pdb_nuc_typ,pdb_atom_id,pdb_coords]=read_pdb_nuc(&amp;#039;example.pdb&amp;#039;);&lt;br /&gt;
 &lt;br /&gt;
     % Guess the J-couplings&lt;br /&gt;
     jmatrix=guess_j_nuc(pdb_nuc_num,pdb_nuc_typ,pdb_atom_id,pdb_coords)&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
# You can modify the J-coupling database by editing the function text.&lt;br /&gt;
# Atoms in the subgraph descriptors are listed alphabetically to make the descriptors unique.&lt;br /&gt;
# The four numbers in the subgraph descriptors refer to the bonding order, e.g. [1, 3, 2, 4] means that the first atom in the descriptor is bonded to the third, which is bonded to the second, which is bonded to the fourth. The coupling in this case is between atom 1 and atom 4 in the descriptor.&lt;br /&gt;
# J-couplings produced by this functions are rough estimates. For accurate nucleic acid work you must supply your own J-couplings.&lt;br /&gt;
# This is an auxiliary function that is called by [[nuclacid.m]]; direct calls should not be necessary.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[read_pdb_nuc.m]], [[protein.m]], [[guess_j_pro.m]], [[nuclacid.m]]&lt;br /&gt;
&lt;br /&gt;
[[Import,_export,_and_visualisation#Data_import|Data import]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.8, authors: [[Ilya Kuprov]], [[Zenawi Welderufael]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Guess_j_nuc.m&amp;diff=5200</id>
		<title>Guess j nuc.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Guess_j_nuc.m&amp;diff=5200"/>
		<updated>2023-08-09T13:46:13Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:guess_j_nuc.m}} __NOTOC__&lt;br /&gt;
This function assigns J-couplings in nucleic acids from atomic coordinates using semi-empirical estimates. It is a graph-theoretical estimator with the following stages:&lt;br /&gt;
&lt;br /&gt;
# The molecular bonding graph is partitioned into connected subgraphs of size two, and one-bond J-couplings are assigned from a complete database of atom pairs. Our experience indicates that there are fewer than 50 unique connected atom pairs in regular nucleic acids, and that most one-bond J-couplings within those pairs can be either found in the literature, or measured in individual nucleic acids, or estimated with sufficient accuracy using electronic structure theory software.&lt;br /&gt;
# The molecular bonding graph is partitioned into connected subgraphs of size three, and two-bond J-couplings assigned from a complete database of connected atom triples. The number of unique connected atom triples in nucleic acids is also reasonable – fewer than 75 in regular ones, a small enough number for an exhaustive list to be compiled from experiments, literature and electronic structure theory estimates.&lt;br /&gt;
# The molecular bonding graph is partitioned into sequentially connected subgraphs of size four and dihedral angles are computed from atomic coordinates, allowing three-bond J-couplings to be assigned from a complete database of Karplus curves. Karplus curves are a well-researched topic, with specific data available for the backbone and less accurate generic curves available for the rest of the structure. The number of unique sequentially connected atom quartets found in nucleic acids (fewer than 100, many belonging to similar structural types) is sufficiently small for a complete database of Karplus curves to be compiled from literature data, experiments, and electronic structure theory estimates.&lt;br /&gt;
&lt;br /&gt;
J-couplings across more than three bonds are ignored.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     jmatrix=guess_j_nuc(nuc_num,nuc_typ,pdb_id,coords)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
     nuc_num  - nspins x 1 vector giving the number of the nucleotide to which each spin belongs&lt;br /&gt;
 &lt;br /&gt;
     nuc_typ  - nspins x 1 cell array of strings giving the PDB identifier of the nucleotide to &lt;br /&gt;
                which each spin belongs (e.g. &amp;#039;GUA&amp;#039;)&lt;br /&gt;
 &lt;br /&gt;
     pdb_id   - nspins x 1 cell array of strings giving the PDB identifier of the nucleic acid atom &lt;br /&gt;
                type to which each spin belongs (e.g. &amp;#039;C1P&amp;#039;)&lt;br /&gt;
 &lt;br /&gt;
     coords   - nspins x 1 cell array of 3-vectors giving cartesian coordinates of each spin in Angstrom&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     jmatrix  - nspins x nspins sparse matrix of J-couplings in Hz&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
The function accepts, for example, the output of [[read_pdb_nuc.m]]:&lt;br /&gt;
&lt;br /&gt;
     % Parse the PDB file&lt;br /&gt;
     [pdb_nuc_num,pdb_nuc_typ,pdb_atom_id,pdb_coords]=read_pdb_nuc(&amp;#039;example.pdb&amp;#039;);&lt;br /&gt;
 &lt;br /&gt;
     % Guess the J-couplings&lt;br /&gt;
     jmatrix=guess_j_nuc(pdb_nuc_num,pdb_nuc_typ,pdb_atom_id,pdb_coords)&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
# You can modify the J-coupling database by editing the function text.&lt;br /&gt;
# Atoms in the subgraph descriptors are listed alphabetically to make the descriptors unique.&lt;br /&gt;
# The four numbers in the subgraph descriptors refer to the bonding order, e.g. [1, 3, 2, 4] means that the first atom in the descriptor is bonded to the third, which is bonded to the second, which is bonded to the fourth. The coupling in this case is between atom 1 and atom 4 in the descriptor.&lt;br /&gt;
# J-couplings produced by this functions are rough estimates. For accurate nucleic acid work you must supply your own J-couplings.&lt;br /&gt;
# This is an auxiliary function that is called by [[nuclacid.m]]; direct calls should not be necessary.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[read_pdb_nuc.m]], [[protein.m]], [[guess_j_pro.m]], [[nuclacid.m]]&lt;br /&gt;
&lt;br /&gt;
[[Import,_export,_and_visualisation#Data_import|Data import]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.8, authors: [[Ilya Kuprov]], [[Zenawi Welderufael]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Guess_j_nuc.m&amp;diff=5199</id>
		<title>Guess j nuc.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Guess_j_nuc.m&amp;diff=5199"/>
		<updated>2023-08-09T13:44:51Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:guess_j_nuc.m}} __NOTOC__&lt;br /&gt;
This function assigns J-couplings in nucleic acids from atomic coordinates using semi-empirical estimates. It is a graph-theoretical estimator with the following stages:&lt;br /&gt;
&lt;br /&gt;
# The molecular bonding graph is partitioned into connected subgraphs of size two, and one-bond J-couplings are assigned from a complete database of atom pairs. Our experience indicates that there are fewer than 50 unique connected atom pairs in regular nucleic acids, and that most one-bond J-couplings within those pairs can be either found in the literature, or measured in individual nucleic acids, or estimated with sufficient accuracy using electronic structure theory software.&lt;br /&gt;
# The molecular bonding graph is partitioned into connected subgraphs of size three, and two-bond J-couplings assigned from a complete database of connected atom triples. The number of unique connected atom triples in nucleic acids is also reasonable – fewer than 75 in regular ones, a small enough number for an exhaustive list to be compiled from experiments, literature and electronic structure theory estimates.&lt;br /&gt;
# The molecular bonding graph is partitioned into sequentially connected subgraphs of size four and dihedral angles are computed from atomic coordinates, allowing three-bond J-couplings to be assigned from a complete database of Karplus curves. Karplus curves are a well-researched topic, with specific data available for the backbone and less accurate generic curves available for the rest of the structure. The number of unique sequentially connected atom quartets found in nucleic acids (fewer than 100, many belonging to similar structural types) is sufficiently small for a complete database of Karplus curves to be compiled from literature data, experiments, and electronic structure theory estimates.&lt;br /&gt;
&lt;br /&gt;
J-couplings across more than three bonds are ignored.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     jmatrix=guess_j_nuc(nuc_num,nuc_typ,pdb_id,coords)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
     nuc_num  - nspins x 1 vector giving the number of the nucleotide to which each spin belongs&lt;br /&gt;
 &lt;br /&gt;
     nuc_typ  - nspins x 1 cell array of strings giving the PDB identifier of the nucleotide to &lt;br /&gt;
                which each spin belongs (e.g. &amp;#039;GUA&amp;#039;)&lt;br /&gt;
 &lt;br /&gt;
     pdb_id   - nspins x 1 cell array of strings giving the PDB identifier of the nucleic acid atom &lt;br /&gt;
                type to which each spin belongs (e.g. &amp;#039;C1P&amp;#039;)&lt;br /&gt;
 &lt;br /&gt;
     coords   - nspins x 1 cell array of 3-vectors giving cartesian coordinates of each spin in Angstrom&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     jmatrix  - nspins x nspins sparse matrix of J-couplings in Hz&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
The function accepts, for example, the output of [[read_pdb_nuc.m]]:&lt;br /&gt;
&lt;br /&gt;
     % Parse the PDB file&lt;br /&gt;
     [pdb_nuc_num,pdb_nuc_typ,pdb_atom_id,pdb_coords]=read_pdb_nuc(&amp;#039;example.pdb&amp;#039;);&lt;br /&gt;
 &lt;br /&gt;
     % Guess the J-couplings&lt;br /&gt;
     jmatrix=guess_j_nuc(pdb_nuc_num,pdb_nuc_typ,pdb_atom_id,pdb_coords)&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
# You can modify the J-coupling database by editing the function text.&lt;br /&gt;
# Atoms in the subgraph descriptors are listed alphabetically to make the descriptors unique.&lt;br /&gt;
# The four numbers in the subgraph descriptors refer to the bonding order, e.g. [1, 3, 2, 4] means that the first atom in the descriptor is bonded to the third, which is bonded to the second, which is bonded to the fourth. The coupling in this case is between atom 1 and atom 4 in the descriptor.&lt;br /&gt;
# J-couplings produced by this functions are rough estimates. For accurate nucleic acid work you must supply your own J-couplings.&lt;br /&gt;
# This is an auxiliary function that is called by [[nuclacid.m]]; direct calls should not be necessary.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[read_pdb_nuc.m]], [[protein.m]], [[guess_j_pro.m]], [[nuclacid.m]]&lt;br /&gt;
&lt;br /&gt;
[[Import,_export,_and_visualisation#Data_import|Data import]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.8, authors: [[Ilya Kuprov]], [[Zenawi Welderufael]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3803</id>
		<title>Built-in experiments</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3803"/>
		<updated>2019-01-23T17:15:49Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Liquid state NMR experiments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section contains a list of the pre-programmed pulse sequences supplied with &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;. Everything is open-source, so feel free to hack and modify as appropriate. If your particular sequence is not listed below, or if you have written something that is worthy of broad public adoption, drop us a note – we are always interested in expanding &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; capabilities. &lt;br /&gt;
&lt;br /&gt;
Unless stated otherwise in the experiment description, all of the functions listed below below should be invoked &amp;#039;&amp;#039;via&amp;#039;&amp;#039; a [[kernel contexts|kernel context]] function that sets the appropriate (solid, liquid, &amp;#039;&amp;#039;etc.&amp;#039;&amp;#039;) simulation infrastructure.&lt;br /&gt;
==General experiments==&lt;br /&gt;
&lt;br /&gt;
[[acquire.m]] – simple forward time evolution with signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[cpmg.m]] - CPMG echo train with detection.&lt;br /&gt;
&lt;br /&gt;
[[holeburn.m]] - hole burning experiment.&lt;br /&gt;
&lt;br /&gt;
[[hp_acquire.m]] – standard hard pulse acquire sequence. The user must supply the pulse operator, the pulse duration and the initial condition.&lt;br /&gt;
&lt;br /&gt;
[[impound.m]] - captures what it receives from the context function and returns it to the user.&lt;br /&gt;
&lt;br /&gt;
[[levelpop.m]] - energy levels and their populations.&lt;br /&gt;
&lt;br /&gt;
[[relaxan.m]] - automated relaxation theory analysis. &lt;br /&gt;
&lt;br /&gt;
[[slowpass.m]] – calculates spectrum values at the user specified frequency positions using the Fourier transform of the Liouville - von Neumann equation. The biggest advantage over the fid + fft style detection is easy parallelization and the possibility of getting spectrum values at specific frequencies without recalculating the entire free induction decay.&lt;br /&gt;
&lt;br /&gt;
[[sp_acquire.m]] - a pulse-acquire sequence with a soft pulse.&lt;br /&gt;
&lt;br /&gt;
[[traject.m]] - simple forward time evolution, trajectory is returned as a stack of density matrices.&lt;br /&gt;
&lt;br /&gt;
==Liquid state NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[clip_hsqc.m]] – CLIP-HSQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[cosy.m]] – phase-sensitive COSY pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[dept.m]]  - DEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[deptq.m]] - DEPTQ pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dqf_cosy.m]] – phase-sensitive double-quantum filtered COSY pulse sequence&lt;br /&gt;
&lt;br /&gt;
[[hetcor.m]] – magnitude mode HETCOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[hmbc.m]] - HMBC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[hmqc.m]] – magnitude mode HMQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[hnco.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hncoca.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hoesy.m]] - phase-sensitive heteronuclear NOESY sequence.&lt;br /&gt;
&lt;br /&gt;
[[hsqc.m]] – phase-sensitive HSQC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inadequate.m]] - INADEQUATE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inept.m]] - INEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inv_rec.m]] - inversion-revocery sequence.&lt;br /&gt;
&lt;br /&gt;
[[m2s.m]] - magnetisation to singlet state.&lt;br /&gt;
&lt;br /&gt;
[[mqs.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[mqs_refocus.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesy.m]] – phase-sensitive homonuclear NOESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesyhsqc.m]] – phase-sensitive NOESY-HSQC pulse sequence. Hard-wired to 1H, 15N, 1H.&lt;br /&gt;
&lt;br /&gt;
[[pansy_cosy.m]] - PANSY-COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[roesy.m]] - phase-sensitive homonuclear ROESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[s2m.m]] - singlet state to magnetisation.&lt;br /&gt;
&lt;br /&gt;
[[sat_rec.m]] - saturation-recovery sequence.&lt;br /&gt;
&lt;br /&gt;
[[tocsy.m]] - amplitude-mode homonuclear TOCSY.&lt;br /&gt;
&lt;br /&gt;
==Solid state NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[cn2d_sq.m]] – CN2D experiment under MAS, single-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cn2d_dq.m]] – CN2D experiment under MAS, double-quantum.&lt;br /&gt;
&lt;br /&gt;
[[crosspol.m]] – cross-polarization experiment.&lt;br /&gt;
&lt;br /&gt;
[[dante.m]] - DANTE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[mqmas.m]] - 2D multiple-quantum MAS pulse sequence for quadrupolar nuclei.&lt;br /&gt;
&lt;br /&gt;
[[respiration.m]] - RESPIRATION CP pulse sequence.&lt;br /&gt;
&lt;br /&gt;
==Spatially encoded NMR==&lt;br /&gt;
&lt;br /&gt;
===Ultrafast, pure-shift, and diffusion NMR===&lt;br /&gt;
&lt;br /&gt;
[[spencosy.m]] - ultrafast COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosy.m]] - ultrafast DOSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosycosy.m]] - ultrafast 3D DOSY-COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[psyche.m]] - PSYCHE 1D pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[ufmq.m]] - ultrafast multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[st_ideal.m]] - ideal Stejskal-Tanner pulse sequence.&lt;br /&gt;
&lt;br /&gt;
===Gradient signal suppression===&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_select.m]] - DPFGSE signal selection&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_suppress.m]] - DPFGSE signal suppression&lt;br /&gt;
&lt;br /&gt;
==Magnetic resonance imaging==&lt;br /&gt;
{{:mri_sequence_list}}&lt;br /&gt;
&lt;br /&gt;
==Overtone NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[overtone_a.m]] - overtone signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[overtone_cp.m]] - overtone cross-polarisation.&lt;br /&gt;
&lt;br /&gt;
[[overtone_pa.m]] - overtone pulse-acquire.&lt;br /&gt;
&lt;br /&gt;
[[overtone_dante.m]] - overtone DANTE.&lt;br /&gt;
&lt;br /&gt;
==ESR experiments==&lt;br /&gt;
&lt;br /&gt;
[[endor_cw.m]] – continuous-wave ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_mims.m]] – Mims ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_davies.m]] - Davies ENDOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[eseem.m]] – ESEEM pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[fieldsweep.m]] - field sweep ESR experiment using steady state formalism.&lt;br /&gt;
&lt;br /&gt;
[[hyscore.m]] – HYSCORE experiment.&lt;br /&gt;
&lt;br /&gt;
[[oopeseem.m]] - out-of-phase ESEEM experiment.&lt;br /&gt;
&lt;br /&gt;
[[rapidscan.m]] - ESR rapid field scan experiment.&lt;br /&gt;
&lt;br /&gt;
[[ridme.m]] - RIDME pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[sifter.m]] - SIFTER experiment&lt;br /&gt;
&lt;br /&gt;
==DEER/PELDOR experiments==&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_echo.m]] - echo diagnostocs for ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_deer.m]] - ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_deer.m]] - three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_hole.m]] - pulse hole diagnostics for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_diag.m]] - full diagnostics suite for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_deer.m]] - four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_hole.m]] - pulse hole diagnostics for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_diag.m]] - full diagnostics suite for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
==DNP experiments==&lt;br /&gt;
&lt;br /&gt;
[[dnp_field_scan.m]] – field scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[dnp_freq_scan.m]] – frequency scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[solid_effect.m]] – large-scale simulation of solid effect DNP.&lt;br /&gt;
&lt;br /&gt;
[[masdnp.m]] - magic angle spinning DNP.&lt;br /&gt;
&lt;br /&gt;
==Paramagnetic NMR spectroscopy==&lt;br /&gt;
&lt;br /&gt;
[[centroid.m]] - centre of mass point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
[[csa2racs.m]] - residual anisotropic chemical shift.&lt;br /&gt;
&lt;br /&gt;
[[eqmag.m]] - molar magnetization vector at the thermal equilibrium. &lt;br /&gt;
&lt;br /&gt;
[[fieldscan_enlev.m]] - energy levels as a function of the magnetic field.&lt;br /&gt;
&lt;br /&gt;
[[fieldscan_magn.m]] - Z magnetisation in a finite-speed field sweep.&lt;br /&gt;
&lt;br /&gt;
[[geffect.m]] - Effective g-tensor for a user-specified Kramers doublet.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pcs.m]] - computes pseudocontact shifts from hyperfine couplings and susceptibility tensors.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pms.m]] - computes paramagnetic shifts (contact + pseudocontact) from hyperfine couplings and susceptibility data.&lt;br /&gt;
&lt;br /&gt;
[[ipcs.m]] – tag probability density recovery from pseudocontact shifts..&lt;br /&gt;
&lt;br /&gt;
[[ippcs.m]] – point electron model fitting to PCS data.&lt;br /&gt;
&lt;br /&gt;
[[kpcs.m]] – PCS calculation using Kuprov equation. &lt;br /&gt;
&lt;br /&gt;
[[pms2chi.m]] - extracts magnetic susceptibility tensors from paramagnetic shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs2chi.m]] - extracts rank 2 components of the magnetic susceptibility tensors from pseudocontact shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs_combi_fit.m]] - PCS data fitting with ambiguous assignments.&lt;br /&gt;
&lt;br /&gt;
[[ppcs.m]] - Computes pseudocontact shift from a point electron centre at the nuclear coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[probmax.m]] - maximum point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
==Exotica==&lt;br /&gt;
[[rydmr.m]] – singlet-singlet RYDMR experiment with exponential recombination function, as described in the paper by Timmel and co-authors.&lt;br /&gt;
&lt;br /&gt;
[[zerofield.m]] - gamma-weighted pulse-acquire sequence in zero field.&lt;br /&gt;
&lt;br /&gt;
[[zulf_abrupt.m]] - zero-field NMR with an abrupt field drop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Repulsion.m&amp;diff=3802</id>
		<title>Repulsion.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Repulsion.m&amp;diff=3802"/>
		<updated>2019-01-14T14:29:53Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Generates repulsion grids on a unit hypersphere.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     [alphas,betas,gammas,weights]=repulsion(npoints,ndims,niter)&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Strangely enough, for all the apparent simplicity of the generation procedure, these are probably the best grids for most practical solid state magnetic resonance purposes. A large number of pre-computed grids is stored in kernel/grids. See the paper by Bak and Nielsen (http://dx.doi.org/10.1006/jmre.1996.1087) to get further information on the algorithm involved.&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
     npoints - number of points in the resulting spherical grid&lt;br /&gt;
 &lt;br /&gt;
       ndims - hypersphere dimension: 2 returns a single-angle &lt;br /&gt;
               (beta) grid, 3 returns a two-angle grid (alpha,&lt;br /&gt;
               beta), 4 returns a three-angle (alpha,beta,gam-&lt;br /&gt;
               ma) spherical grid&lt;br /&gt;
 &lt;br /&gt;
       niter - number of repulsion interations (simple clipped&lt;br /&gt;
               gradient descent at the moment)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
&lt;br /&gt;
      alphas - alpha Euler angles of the grid, in radians,&lt;br /&gt;
               zeros for single-angle grids&lt;br /&gt;
 &lt;br /&gt;
       betas - beta Euler angles of the grid, in radians&lt;br /&gt;
 &lt;br /&gt;
      gammas - gamma Euler angles of the grid, in radians,&lt;br /&gt;
               zeros for two-angle grids&lt;br /&gt;
 &lt;br /&gt;
     weights - point weights of the grid&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
See kernel/grids directory for a long list of one-, two- and three angle REPULSION grids.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Uniform weights are assigned at the moment, use [[shrewd.m]] function to generate optimal weights.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[get_hull.m]], [[grid_kron.m]], [[grid_test.m]], [[shrewd.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 1.10, authors: [[Ilya Kuprov]], [[Frederic Mentink-Vigier]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Psyche.m&amp;diff=3801</id>
		<title>Psyche.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Psyche.m&amp;diff=3801"/>
		<updated>2019-01-12T19:29:01Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;PSYCHE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
        fid=psyche(spin_system,parameters,H,R,K,G,F)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
 parameters.rho0           initial state&lt;br /&gt;
 &lt;br /&gt;
 parameters.coil           detection state&lt;br /&gt;
 &lt;br /&gt;
 parameters.spins          nuclei on which the sequence runs&lt;br /&gt;
 &lt;br /&gt;
 parameters.g_amp          gradient amplitude (T/m)&lt;br /&gt;
 &lt;br /&gt;
 parameters.dims           size of the sample (m)&lt;br /&gt;
 &lt;br /&gt;
 parameters.npts           number of discretization points in the grid&lt;br /&gt;
 &lt;br /&gt;
 parameters.sweep          spectral range (Hz)&lt;br /&gt;
 &lt;br /&gt;
 parameters.npoints        number of points in the sweep&lt;br /&gt;
 &lt;br /&gt;
 parameters.zerofill       number of points for the zero filling&lt;br /&gt;
 &lt;br /&gt;
 parameters.diff           diffusion constant (m^2/s)&lt;br /&gt;
 &lt;br /&gt;
 H                         Fokker-Planck Hamiltonian&lt;br /&gt;
 &lt;br /&gt;
 R                         Fokker-Planck relaxation superoperator&lt;br /&gt;
 &lt;br /&gt;
 K                         Fokker-Planck kinetics superoperator&lt;br /&gt;
 &lt;br /&gt;
 G                         Fokker-Planck gradient superoperators&lt;br /&gt;
 &lt;br /&gt;
 F                         Fokker-Planck diffusion and flow superoperator&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
&lt;br /&gt;
 1D spectrum of the PSYCHE experiment&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
The last five parameters are built automatically by [[imaging.m]] context function when this sequence is called from that [[Kernel_contexts|context]].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[step.m]], [[evolution.m]], [[coherence.m]], [[chirp_pulse_xy.m]], [[shaped_pulse_xy.m]] &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 1.10, authors: [[Mohammadali Foroozandeh]], [[Maria Grazia Concilio]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Dilute.m&amp;diff=3800</id>
		<title>Dilute.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Dilute.m&amp;diff=3800"/>
		<updated>2019-01-12T18:12:42Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:dilute.m}} __NOTOC__&lt;br /&gt;
Splits the spin system into several independent subsystems, each containing only one instance of a user specified isotope or isotope tuple that is deemed &amp;quot;dilute&amp;quot;. All spin system data is updated accordingly. Basis set information, if found, is destroyed.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     subsystems=dilute(spin_system,isotope,tuples)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
    spin_system   - spin system object obtained &lt;br /&gt;
                    from create.m function&lt;br /&gt;
 &lt;br /&gt;
    isotope       - isotope specification string,&lt;br /&gt;
                    for example &amp;#039;13C&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
    tuples        - 1 returns all subsystems with&lt;br /&gt;
                    a single instance of the isoto-&lt;br /&gt;
                    pe, 2 returns all subsystems&lt;br /&gt;
                    where two instances of the iso-&lt;br /&gt;
                    tope are present, etc.&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
    spin_systems  - a cell array of spin system &lt;br /&gt;
                    objects, with each cell cor-&lt;br /&gt;
                    responding to one of the new-&lt;br /&gt;
                    ly formed isotopomers.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
HSQC and HMQC examples in examples/nmr_liquids folder use this function for single-spin dilution. INADEQUATE examples use it for spin pair dilution.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[kill_spin.m]], [[create.m]], [[coherence.m]], [[inadequate.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Ilya Kuprov]], [[Bud Macaulay]], [[Luke Edwards]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3799</id>
		<title>Built-in experiments</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3799"/>
		<updated>2019-01-12T16:45:12Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Liquid state NMR experiments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section contains a list of the pre-programmed pulse sequences supplied with &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;. Everything is open-source, so feel free to hack and modify as appropriate. If your particular sequence is not listed below, or if you have written something that is worthy of broad public adoption, drop us a note – we are always interested in expanding &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; capabilities. &lt;br /&gt;
&lt;br /&gt;
Unless stated otherwise in the experiment description, all of the functions listed below below should be invoked &amp;#039;&amp;#039;via&amp;#039;&amp;#039; a [[kernel contexts|kernel context]] function that sets the appropriate (solid, liquid, &amp;#039;&amp;#039;etc.&amp;#039;&amp;#039;) simulation infrastructure.&lt;br /&gt;
==General experiments==&lt;br /&gt;
&lt;br /&gt;
[[acquire.m]] – simple forward time evolution with signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[cpmg.m]] - CPMG echo train with detection.&lt;br /&gt;
&lt;br /&gt;
[[holeburn.m]] - hole burning experiment.&lt;br /&gt;
&lt;br /&gt;
[[hp_acquire.m]] – standard hard pulse acquire sequence. The user must supply the pulse operator, the pulse duration and the initial condition.&lt;br /&gt;
&lt;br /&gt;
[[impound.m]] - captures what it receives from the context function and returns it to the user.&lt;br /&gt;
&lt;br /&gt;
[[levelpop.m]] - energy levels and their populations.&lt;br /&gt;
&lt;br /&gt;
[[relaxan.m]] - automated relaxation theory analysis. &lt;br /&gt;
&lt;br /&gt;
[[slowpass.m]] – calculates spectrum values at the user specified frequency positions using the Fourier transform of the Liouville - von Neumann equation. The biggest advantage over the fid + fft style detection is easy parallelization and the possibility of getting spectrum values at specific frequencies without recalculating the entire free induction decay.&lt;br /&gt;
&lt;br /&gt;
[[sp_acquire.m]] - a pulse-acquire sequence with a soft pulse.&lt;br /&gt;
&lt;br /&gt;
[[traject.m]] - simple forward time evolution, trajectory is returned as a stack of density matrices.&lt;br /&gt;
&lt;br /&gt;
==Liquid state NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[clip_hsqc.m]] – CLIP-HSQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[cosy.m]] – phase-sensitive COSY pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[dept.m]]  - DEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[deptq.m]] - DEPTQ pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dqf_cosy.m]] – phase-sensitive double-quantum filtered COSY pulse sequence&lt;br /&gt;
&lt;br /&gt;
[[hetcor.m]] – magnitude mode HETCOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[hmbc.m]] - HMBC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[hmqc.m]] – magnitude mode HMQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[hnco.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hncoca.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hoesy.m]] - phase-sensitive heteronuclear NOESY sequence.&lt;br /&gt;
&lt;br /&gt;
[[hsqc.m]] – phase-sensitive HSQC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inadequate.m]] - INADEQUATE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inept.m]] - INEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inv_rec.m]] - inversion-revocery sequence.&lt;br /&gt;
&lt;br /&gt;
[[lcosy.m]] – localised COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[m2s.m]] - magnetisation to singlet state.&lt;br /&gt;
&lt;br /&gt;
[[mqs.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[mqs_refocus.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesy.m]] – phase-sensitive homonuclear NOESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesyhsqc.m]] – phase-sensitive NOESY-HSQC pulse sequence. Hard-wired to 1H, 15N, 1H.&lt;br /&gt;
&lt;br /&gt;
[[pansy_cosy.m]] - PANSY-COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[roesy.m]] - phase-sensitive homonuclear ROESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[s2m.m]] - singlet state to magnetisation.&lt;br /&gt;
&lt;br /&gt;
[[sat_rec.m]] - saturation-recovery sequence.&lt;br /&gt;
&lt;br /&gt;
[[tocsy.m]] - amplitude-mode homonuclear TOCSY.&lt;br /&gt;
&lt;br /&gt;
==Solid state NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[cn2d_sq.m]] – CN2D experiment under MAS, single-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cn2d_dq.m]] – CN2D experiment under MAS, double-quantum.&lt;br /&gt;
&lt;br /&gt;
[[crosspol.m]] – cross-polarization experiment.&lt;br /&gt;
&lt;br /&gt;
[[dante.m]] - DANTE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[mqmas.m]] - 2D multiple-quantum MAS pulse sequence for quadrupolar nuclei.&lt;br /&gt;
&lt;br /&gt;
[[respiration.m]] - RESPIRATION CP pulse sequence.&lt;br /&gt;
&lt;br /&gt;
==Spatially encoded NMR==&lt;br /&gt;
&lt;br /&gt;
===Ultrafast, pure-shift, and diffusion NMR===&lt;br /&gt;
&lt;br /&gt;
[[spencosy.m]] - ultrafast COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosy.m]] - ultrafast DOSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosycosy.m]] - ultrafast 3D DOSY-COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[psyche.m]] - PSYCHE 1D pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[ufmq.m]] - ultrafast multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[st_ideal.m]] - ideal Stejskal-Tanner pulse sequence.&lt;br /&gt;
&lt;br /&gt;
===Gradient signal suppression===&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_select.m]] - DPFGSE signal selection&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_suppress.m]] - DPFGSE signal suppression&lt;br /&gt;
&lt;br /&gt;
==Magnetic resonance imaging==&lt;br /&gt;
{{:mri_sequence_list}}&lt;br /&gt;
&lt;br /&gt;
==Overtone NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[overtone_a.m]] - overtone signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[overtone_cp.m]] - overtone cross-polarisation.&lt;br /&gt;
&lt;br /&gt;
[[overtone_pa.m]] - overtone pulse-acquire.&lt;br /&gt;
&lt;br /&gt;
[[overtone_dante.m]] - overtone DANTE.&lt;br /&gt;
&lt;br /&gt;
==ESR experiments==&lt;br /&gt;
&lt;br /&gt;
[[endor_cw.m]] – continuous-wave ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_mims.m]] – Mims ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_davies.m]] - Davies ENDOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[eseem.m]] – ESEEM pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[fieldsweep.m]] - field sweep ESR experiment using steady state formalism.&lt;br /&gt;
&lt;br /&gt;
[[hyscore.m]] – HYSCORE experiment.&lt;br /&gt;
&lt;br /&gt;
[[oopeseem.m]] - out-of-phase ESEEM experiment.&lt;br /&gt;
&lt;br /&gt;
[[rapidscan.m]] - ESR rapid field scan experiment.&lt;br /&gt;
&lt;br /&gt;
[[ridme.m]] - RIDME pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[sifter.m]] - SIFTER experiment&lt;br /&gt;
&lt;br /&gt;
==DEER/PELDOR experiments==&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_echo.m]] - echo diagnostocs for ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_deer.m]] - ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_deer.m]] - three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_hole.m]] - pulse hole diagnostics for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_diag.m]] - full diagnostics suite for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_deer.m]] - four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_hole.m]] - pulse hole diagnostics for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_diag.m]] - full diagnostics suite for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
==DNP experiments==&lt;br /&gt;
&lt;br /&gt;
[[dnp_field_scan.m]] – field scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[dnp_freq_scan.m]] – frequency scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[solid_effect.m]] – large-scale simulation of solid effect DNP.&lt;br /&gt;
&lt;br /&gt;
[[masdnp.m]] - magic angle spinning DNP.&lt;br /&gt;
&lt;br /&gt;
==Paramagnetic NMR spectroscopy==&lt;br /&gt;
&lt;br /&gt;
[[centroid.m]] - centre of mass point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
[[csa2racs.m]] - residual anisotropic chemical shift.&lt;br /&gt;
&lt;br /&gt;
[[eqmag.m]] - molar magnetization vector at the thermal equilibrium. &lt;br /&gt;
&lt;br /&gt;
[[fieldscan_enlev.m]] - energy levels as a function of the magnetic field.&lt;br /&gt;
&lt;br /&gt;
[[fieldscan_magn.m]] - Z magnetisation in a finite-speed field sweep.&lt;br /&gt;
&lt;br /&gt;
[[geffect.m]] - Effective g-tensor for a user-specified Kramers doublet.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pcs.m]] - computes pseudocontact shifts from hyperfine couplings and susceptibility tensors.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pms.m]] - computes paramagnetic shifts (contact + pseudocontact) from hyperfine couplings and susceptibility data.&lt;br /&gt;
&lt;br /&gt;
[[ipcs.m]] – tag probability density recovery from pseudocontact shifts..&lt;br /&gt;
&lt;br /&gt;
[[ippcs.m]] – point electron model fitting to PCS data.&lt;br /&gt;
&lt;br /&gt;
[[kpcs.m]] – PCS calculation using Kuprov equation. &lt;br /&gt;
&lt;br /&gt;
[[pms2chi.m]] - extracts magnetic susceptibility tensors from paramagnetic shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs2chi.m]] - extracts rank 2 components of the magnetic susceptibility tensors from pseudocontact shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs_combi_fit.m]] - PCS data fitting with ambiguous assignments.&lt;br /&gt;
&lt;br /&gt;
[[ppcs.m]] - Computes pseudocontact shift from a point electron centre at the nuclear coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[probmax.m]] - maximum point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
==Exotica==&lt;br /&gt;
[[rydmr.m]] – singlet-singlet RYDMR experiment with exponential recombination function, as described in the paper by Timmel and co-authors.&lt;br /&gt;
&lt;br /&gt;
[[zerofield.m]] - gamma-weighted pulse-acquire sequence in zero field.&lt;br /&gt;
&lt;br /&gt;
[[zulf_abrupt.m]] - zero-field NMR with an abrupt field drop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=File:Hoesy_camphor.png&amp;diff=3798</id>
		<title>File:Hoesy camphor.png</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=File:Hoesy_camphor.png&amp;diff=3798"/>
		<updated>2019-01-12T16:44:22Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Hoesy.m&amp;diff=3797</id>
		<title>Hoesy.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Hoesy.m&amp;diff=3797"/>
		<updated>2019-01-12T16:44:06Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:hoesy.m}} __NOTOC__&lt;br /&gt;
Phase-sensitive heteronuclear NOESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     fid=hoesy(spin_system,parameters,H,R,K)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
     parameters.sweep     two sweep widths, Hz&lt;br /&gt;
 &lt;br /&gt;
     parameters.npoints   number of FID points for both&lt;br /&gt;
                          dimensions&lt;br /&gt;
 &lt;br /&gt;
     parameters.spins     nuclei on which the sequence runs,&lt;br /&gt;
                          e.g. {&amp;#039;15N&amp;#039;,&amp;#039;13C&amp;#039;}&lt;br /&gt;
 &lt;br /&gt;
     parameters.tmix      mixing time, seconds&lt;br /&gt;
 &lt;br /&gt;
     H - Hamiltonian matrix, received from context function&lt;br /&gt;
 &lt;br /&gt;
     R - relaxation superoperator, received from context function&lt;br /&gt;
 &lt;br /&gt;
     K - kinetics superoperator, received from context function&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     fid.cos,fid.sin - two components of the FID for F1 hyper-&lt;br /&gt;
                       complex processing&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
A HOESY simulation for camphor (examples/nmr_liquids/hoesy_camphor.m) appears below.&lt;br /&gt;
&lt;br /&gt;
[[File:hoesy_camphor.png]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[noesy.m]], [[roesy.m]], [[relaxation.m]], [[hsqc.m]], [[hmqc.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Zak El-Machachi]], [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Hoesy.m&amp;diff=3796</id>
		<title>Hoesy.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Hoesy.m&amp;diff=3796"/>
		<updated>2019-01-12T16:42:59Z</updated>

		<summary type="html">&lt;p&gt;Admin: Created page with &amp;quot;{{DISPLAYTITLE:hoesy.m}} __NOTOC__ Phase-sensitive heteronuclear NOESY pulse sequence.  ==Syntax==       fid=hoesy(spin_system,parameters,H,R,K)  ==Arguments==       parameter...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:hoesy.m}} __NOTOC__&lt;br /&gt;
Phase-sensitive heteronuclear NOESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     fid=hoesy(spin_system,parameters,H,R,K)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
     parameters.sweep     two sweep widths, Hz&lt;br /&gt;
 &lt;br /&gt;
     parameters.npoints   number of FID points for both&lt;br /&gt;
                          dimensions&lt;br /&gt;
 &lt;br /&gt;
     parameters.spins     nuclei on which the sequence runs,&lt;br /&gt;
                          e.g. {&amp;#039;15N&amp;#039;,&amp;#039;13C&amp;#039;}&lt;br /&gt;
 &lt;br /&gt;
     parameters.tmix      mixing time, seconds&lt;br /&gt;
 &lt;br /&gt;
     H - Hamiltonian matrix, received from context function&lt;br /&gt;
 &lt;br /&gt;
     R - relaxation superoperator, received from context function&lt;br /&gt;
 &lt;br /&gt;
     K - kinetics superoperator, received from context function&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     fid.cos,fid.sin - two components of the FID for F1 hyper-&lt;br /&gt;
                       complex processing&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
A description of what is done in the example below:&lt;br /&gt;
&lt;br /&gt;
     % Comment&lt;br /&gt;
     matlab code&lt;br /&gt;
 &lt;br /&gt;
     % Comment&lt;br /&gt;
     matlab code&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Further notes on good and bad practices.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[noesy.m]], [[roesy.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Zak El-Machachi]], [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=File:Hmbc_camphor.png&amp;diff=3795</id>
		<title>File:Hmbc camphor.png</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=File:Hmbc_camphor.png&amp;diff=3795"/>
		<updated>2019-01-12T16:39:13Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Hmbc.m&amp;diff=3794</id>
		<title>Hmbc.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Hmbc.m&amp;diff=3794"/>
		<updated>2019-01-12T16:31:46Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:hmbc.m}} __NOTOC__&lt;br /&gt;
Magnitude-mode HMBC pulse sequence from A. Bax and M.F. Summers, J. Am. Chem. Soc., 108, 2093 (1986).&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     fid=hmbc(spin_system,parameters,H,R,K)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
    parameters.sweep          [F1 F2] sweep widths in each&lt;br /&gt;
                              frequency direction, Hz&lt;br /&gt;
 &lt;br /&gt;
    parameters.npoints        [F1 F2] numbers of points in&lt;br /&gt;
                              each time direction&lt;br /&gt;
 &lt;br /&gt;
    parameters.spins          {F1 F2} nuclei, e.g. {&amp;#039;15N&amp;#039;,&amp;#039;1H&amp;#039;}&lt;br /&gt;
 &lt;br /&gt;
    parameters.J              primary scalar coupling, Hz&lt;br /&gt;
 &lt;br /&gt;
    parameters.delta_b        delta_2 delay from the paper&lt;br /&gt;
                              cited above; the authors recom-&lt;br /&gt;
                              mend 60e-3 seconds&lt;br /&gt;
 &lt;br /&gt;
    H - Hamiltonian matrix, received from context function&lt;br /&gt;
 &lt;br /&gt;
    R - relaxation superoperator, received from context function&lt;br /&gt;
 &lt;br /&gt;
    K - kinetics superoperator, received from context function&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
    fid - free induction decay for magnitude mode processing&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
A simulated HMBC spectrum for camphor (examples/nmr_liquids/hmbc_camphor.m) appears below.&lt;br /&gt;
&lt;br /&gt;
[[File:hmbc_camphor.png]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Natural abundance experiments should make use of the isotope dilution functionality. See [[dilute.m]] function.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[dilute.m]], [[inept.m]], [[dept.m]], [[deptq.m]], [[hsqc.m]], [[hmqc.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Bud Macaulay]], [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Hmbc.m&amp;diff=3793</id>
		<title>Hmbc.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Hmbc.m&amp;diff=3793"/>
		<updated>2019-01-12T16:31:31Z</updated>

		<summary type="html">&lt;p&gt;Admin: Created page with &amp;quot;{{DISPLAYTITLE:function.m}} __NOTOC__ Magnitude-mode HMBC pulse sequence from A. Bax and M.F. Summers, J. Am. Chem. Soc., 108, 2093 (1986).  ==Syntax==       fid=hmbc(spin_sys...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:function.m}} __NOTOC__&lt;br /&gt;
Magnitude-mode HMBC pulse sequence from A. Bax and M.F. Summers, J. Am. Chem. Soc., 108, 2093 (1986).&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     fid=hmbc(spin_system,parameters,H,R,K)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
    parameters.sweep          [F1 F2] sweep widths in each&lt;br /&gt;
                              frequency direction, Hz&lt;br /&gt;
 &lt;br /&gt;
    parameters.npoints        [F1 F2] numbers of points in&lt;br /&gt;
                              each time direction&lt;br /&gt;
 &lt;br /&gt;
    parameters.spins          {F1 F2} nuclei, e.g. {&amp;#039;15N&amp;#039;,&amp;#039;1H&amp;#039;}&lt;br /&gt;
 &lt;br /&gt;
    parameters.J              primary scalar coupling, Hz&lt;br /&gt;
 &lt;br /&gt;
    parameters.delta_b        delta_2 delay from the paper&lt;br /&gt;
                              cited above; the authors recom-&lt;br /&gt;
                              mend 60e-3 seconds&lt;br /&gt;
 &lt;br /&gt;
    H - Hamiltonian matrix, received from context function&lt;br /&gt;
 &lt;br /&gt;
    R - relaxation superoperator, received from context function&lt;br /&gt;
 &lt;br /&gt;
    K - kinetics superoperator, received from context function&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
    fid - free induction decay for magnitude mode processing&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
A simulated HMBC spectrum for camphor (examples/nmr_liquids/hmbc_camphor.m) appears below.&lt;br /&gt;
&lt;br /&gt;
[[File:hmbc_camphor.png]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Natural abundance experiments should make use of the isotope dilution functionality. See [[dilute.m]] function.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[dilute.m]], [[inept.m]], [[dept.m]], [[deptq.m]], [[hsqc.m]], [[hmqc.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Bud Macaulay]], [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3792</id>
		<title>Built-in experiments</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3792"/>
		<updated>2019-01-12T16:27:11Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Liquid state NMR experiments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section contains a list of the pre-programmed pulse sequences supplied with &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;. Everything is open-source, so feel free to hack and modify as appropriate. If your particular sequence is not listed below, or if you have written something that is worthy of broad public adoption, drop us a note – we are always interested in expanding &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; capabilities. &lt;br /&gt;
&lt;br /&gt;
Unless stated otherwise in the experiment description, all of the functions listed below below should be invoked &amp;#039;&amp;#039;via&amp;#039;&amp;#039; a [[kernel contexts|kernel context]] function that sets the appropriate (solid, liquid, &amp;#039;&amp;#039;etc.&amp;#039;&amp;#039;) simulation infrastructure.&lt;br /&gt;
==General experiments==&lt;br /&gt;
&lt;br /&gt;
[[acquire.m]] – simple forward time evolution with signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[cpmg.m]] - CPMG echo train with detection.&lt;br /&gt;
&lt;br /&gt;
[[holeburn.m]] - hole burning experiment.&lt;br /&gt;
&lt;br /&gt;
[[hp_acquire.m]] – standard hard pulse acquire sequence. The user must supply the pulse operator, the pulse duration and the initial condition.&lt;br /&gt;
&lt;br /&gt;
[[impound.m]] - captures what it receives from the context function and returns it to the user.&lt;br /&gt;
&lt;br /&gt;
[[levelpop.m]] - energy levels and their populations.&lt;br /&gt;
&lt;br /&gt;
[[relaxan.m]] - automated relaxation theory analysis. &lt;br /&gt;
&lt;br /&gt;
[[slowpass.m]] – calculates spectrum values at the user specified frequency positions using the Fourier transform of the Liouville - von Neumann equation. The biggest advantage over the fid + fft style detection is easy parallelization and the possibility of getting spectrum values at specific frequencies without recalculating the entire free induction decay.&lt;br /&gt;
&lt;br /&gt;
[[sp_acquire.m]] - a pulse-acquire sequence with a soft pulse.&lt;br /&gt;
&lt;br /&gt;
[[traject.m]] - simple forward time evolution, trajectory is returned as a stack of density matrices.&lt;br /&gt;
&lt;br /&gt;
==Liquid state NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[clip_hsqc.m]] – CLIP-HSQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[cosy.m]] – phase-sensitive COSY pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[dept.m]]  - DEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[deptq.m]] - DEPTQ pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dqf_cosy.m]] – phase-sensitive double-quantum filtered COSY pulse sequence&lt;br /&gt;
&lt;br /&gt;
[[hetcor.m]] – magnitude mode HETCOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[hmbc.m]] - HMBC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[hmqc.m]] – magnitude mode HMQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[hnco.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hncoca.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hsqc.m]] – phase-sensitive HSQC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inadequate.m]] - INADEQUATE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inept.m]] - INEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inv_rec.m]] - inversion-revocery sequence.&lt;br /&gt;
&lt;br /&gt;
[[lcosy.m]] – localised COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[m2s.m]] - magnetisation to singlet state.&lt;br /&gt;
&lt;br /&gt;
[[mqs.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[mqs_refocus.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesy.m]] – phase-sensitive homonuclear NOESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesyhsqc.m]] – phase-sensitive NOESY-HSQC pulse sequence. Hard-wired to 1H, 15N, 1H.&lt;br /&gt;
&lt;br /&gt;
[[pansy_cosy.m]] - PANSY-COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[roesy.m]] - phase-sensitive homonuclear ROESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[s2m.m]] - singlet state to magnetisation.&lt;br /&gt;
&lt;br /&gt;
[[sat_rec.m]] - saturation-recovery sequence.&lt;br /&gt;
&lt;br /&gt;
[[tocsy.m]] - amplitude-mode homonuclear TOCSY.&lt;br /&gt;
&lt;br /&gt;
==Solid state NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[cn2d_sq.m]] – CN2D experiment under MAS, single-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cn2d_dq.m]] – CN2D experiment under MAS, double-quantum.&lt;br /&gt;
&lt;br /&gt;
[[crosspol.m]] – cross-polarization experiment.&lt;br /&gt;
&lt;br /&gt;
[[dante.m]] - DANTE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[mqmas.m]] - 2D multiple-quantum MAS pulse sequence for quadrupolar nuclei.&lt;br /&gt;
&lt;br /&gt;
[[respiration.m]] - RESPIRATION CP pulse sequence.&lt;br /&gt;
&lt;br /&gt;
==Spatially encoded NMR==&lt;br /&gt;
&lt;br /&gt;
===Ultrafast, pure-shift, and diffusion NMR===&lt;br /&gt;
&lt;br /&gt;
[[spencosy.m]] - ultrafast COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosy.m]] - ultrafast DOSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosycosy.m]] - ultrafast 3D DOSY-COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[psyche.m]] - PSYCHE 1D pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[ufmq.m]] - ultrafast multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[st_ideal.m]] - ideal Stejskal-Tanner pulse sequence.&lt;br /&gt;
&lt;br /&gt;
===Gradient signal suppression===&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_select.m]] - DPFGSE signal selection&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_suppress.m]] - DPFGSE signal suppression&lt;br /&gt;
&lt;br /&gt;
==Magnetic resonance imaging==&lt;br /&gt;
{{:mri_sequence_list}}&lt;br /&gt;
&lt;br /&gt;
==Overtone NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[overtone_a.m]] - overtone signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[overtone_cp.m]] - overtone cross-polarisation.&lt;br /&gt;
&lt;br /&gt;
[[overtone_pa.m]] - overtone pulse-acquire.&lt;br /&gt;
&lt;br /&gt;
[[overtone_dante.m]] - overtone DANTE.&lt;br /&gt;
&lt;br /&gt;
==ESR experiments==&lt;br /&gt;
&lt;br /&gt;
[[endor_cw.m]] – continuous-wave ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_mims.m]] – Mims ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_davies.m]] - Davies ENDOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[eseem.m]] – ESEEM pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[fieldsweep.m]] - field sweep ESR experiment using steady state formalism.&lt;br /&gt;
&lt;br /&gt;
[[hyscore.m]] – HYSCORE experiment.&lt;br /&gt;
&lt;br /&gt;
[[oopeseem.m]] - out-of-phase ESEEM experiment.&lt;br /&gt;
&lt;br /&gt;
[[rapidscan.m]] - ESR rapid field scan experiment.&lt;br /&gt;
&lt;br /&gt;
[[ridme.m]] - RIDME pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[sifter.m]] - SIFTER experiment&lt;br /&gt;
&lt;br /&gt;
==DEER/PELDOR experiments==&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_echo.m]] - echo diagnostocs for ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_deer.m]] - ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_deer.m]] - three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_hole.m]] - pulse hole diagnostics for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_diag.m]] - full diagnostics suite for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_deer.m]] - four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_hole.m]] - pulse hole diagnostics for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_diag.m]] - full diagnostics suite for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
==DNP experiments==&lt;br /&gt;
&lt;br /&gt;
[[dnp_field_scan.m]] – field scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[dnp_freq_scan.m]] – frequency scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[solid_effect.m]] – large-scale simulation of solid effect DNP.&lt;br /&gt;
&lt;br /&gt;
[[masdnp.m]] - magic angle spinning DNP.&lt;br /&gt;
&lt;br /&gt;
==Paramagnetic NMR spectroscopy==&lt;br /&gt;
&lt;br /&gt;
[[centroid.m]] - centre of mass point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
[[csa2racs.m]] - residual anisotropic chemical shift.&lt;br /&gt;
&lt;br /&gt;
[[eqmag.m]] - molar magnetization vector at the thermal equilibrium. &lt;br /&gt;
&lt;br /&gt;
[[fieldscan_enlev.m]] - energy levels as a function of the magnetic field.&lt;br /&gt;
&lt;br /&gt;
[[fieldscan_magn.m]] - Z magnetisation in a finite-speed field sweep.&lt;br /&gt;
&lt;br /&gt;
[[geffect.m]] - Effective g-tensor for a user-specified Kramers doublet.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pcs.m]] - computes pseudocontact shifts from hyperfine couplings and susceptibility tensors.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pms.m]] - computes paramagnetic shifts (contact + pseudocontact) from hyperfine couplings and susceptibility data.&lt;br /&gt;
&lt;br /&gt;
[[ipcs.m]] – tag probability density recovery from pseudocontact shifts..&lt;br /&gt;
&lt;br /&gt;
[[ippcs.m]] – point electron model fitting to PCS data.&lt;br /&gt;
&lt;br /&gt;
[[kpcs.m]] – PCS calculation using Kuprov equation. &lt;br /&gt;
&lt;br /&gt;
[[pms2chi.m]] - extracts magnetic susceptibility tensors from paramagnetic shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs2chi.m]] - extracts rank 2 components of the magnetic susceptibility tensors from pseudocontact shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs_combi_fit.m]] - PCS data fitting with ambiguous assignments.&lt;br /&gt;
&lt;br /&gt;
[[ppcs.m]] - Computes pseudocontact shift from a point electron centre at the nuclear coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[probmax.m]] - maximum point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
==Exotica==&lt;br /&gt;
[[rydmr.m]] – singlet-singlet RYDMR experiment with exponential recombination function, as described in the paper by Timmel and co-authors.&lt;br /&gt;
&lt;br /&gt;
[[zerofield.m]] - gamma-weighted pulse-acquire sequence in zero field.&lt;br /&gt;
&lt;br /&gt;
[[zulf_abrupt.m]] - zero-field NMR with an abrupt field drop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3791</id>
		<title>Built-in experiments</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3791"/>
		<updated>2019-01-12T16:27:01Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* NMR experiments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section contains a list of the pre-programmed pulse sequences supplied with &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;. Everything is open-source, so feel free to hack and modify as appropriate. If your particular sequence is not listed below, or if you have written something that is worthy of broad public adoption, drop us a note – we are always interested in expanding &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; capabilities. &lt;br /&gt;
&lt;br /&gt;
Unless stated otherwise in the experiment description, all of the functions listed below below should be invoked &amp;#039;&amp;#039;via&amp;#039;&amp;#039; a [[kernel contexts|kernel context]] function that sets the appropriate (solid, liquid, &amp;#039;&amp;#039;etc.&amp;#039;&amp;#039;) simulation infrastructure.&lt;br /&gt;
==General experiments==&lt;br /&gt;
&lt;br /&gt;
[[acquire.m]] – simple forward time evolution with signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[cpmg.m]] - CPMG echo train with detection.&lt;br /&gt;
&lt;br /&gt;
[[holeburn.m]] - hole burning experiment.&lt;br /&gt;
&lt;br /&gt;
[[hp_acquire.m]] – standard hard pulse acquire sequence. The user must supply the pulse operator, the pulse duration and the initial condition.&lt;br /&gt;
&lt;br /&gt;
[[impound.m]] - captures what it receives from the context function and returns it to the user.&lt;br /&gt;
&lt;br /&gt;
[[levelpop.m]] - energy levels and their populations.&lt;br /&gt;
&lt;br /&gt;
[[relaxan.m]] - automated relaxation theory analysis. &lt;br /&gt;
&lt;br /&gt;
[[slowpass.m]] – calculates spectrum values at the user specified frequency positions using the Fourier transform of the Liouville - von Neumann equation. The biggest advantage over the fid + fft style detection is easy parallelization and the possibility of getting spectrum values at specific frequencies without recalculating the entire free induction decay.&lt;br /&gt;
&lt;br /&gt;
[[sp_acquire.m]] - a pulse-acquire sequence with a soft pulse.&lt;br /&gt;
&lt;br /&gt;
[[traject.m]] - simple forward time evolution, trajectory is returned as a stack of density matrices.&lt;br /&gt;
&lt;br /&gt;
==Liquid state NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[clip_hsqc.m]] – CLIP-HSQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[cosy.m]] – phase-sensitive COSY pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[dept.m]]  - DEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[deptq.m]] - DEPTQ pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dqf_cosy.m]] – phase-sensitive double-quantum filtered COSY pulse sequence&lt;br /&gt;
&lt;br /&gt;
[[hetcor.m]] – magnitude mode HETCOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[hmbc.m]] - HMBC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[hmqc.m]] – magnitude mode HMQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[hnco.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hncoca.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hsqc.m]] – phase-sensitive HSQC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inadequate.m]] - INADEQUATE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inept.m]] - INEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inv_rec.m]] - inversion-revocery sequence.&lt;br /&gt;
&lt;br /&gt;
[[lcosy.m]] – localised COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[m2s.m]] - magnetisation to singlet state.&lt;br /&gt;
&lt;br /&gt;
[[mqs.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[mqs_refocus.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesy.m]] – phase-sensitive homonuclear NOESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesyhsqc.m]] – phase-sensitive NOESY-HSQC pulse sequence. Hard-wired to 1H, 15N, 1H.&lt;br /&gt;
&lt;br /&gt;
[[pansy_cosy.m]] - PANSY-COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[roesy.m]] - phase-sensitive homonuclear ROESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[s2m.m]] - singlet state to magnetisation.&lt;br /&gt;
&lt;br /&gt;
[[sat_rec.m]] - saturation-recovery sequence.&lt;br /&gt;
&lt;br /&gt;
[[tocsy.m]] - amplitude-mode homonuclear TOCSY.&lt;br /&gt;
&lt;br /&gt;
==Solid state NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[cn2d_sq.m]] – CN2D experiment under MAS, single-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cn2d_dq.m]] – CN2D experiment under MAS, double-quantum.&lt;br /&gt;
&lt;br /&gt;
[[crosspol.m]] – cross-polarization experiment.&lt;br /&gt;
&lt;br /&gt;
[[dante.m]] - DANTE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[mqmas.m]] - 2D multiple-quantum MAS pulse sequence for quadrupolar nuclei.&lt;br /&gt;
&lt;br /&gt;
[[respiration.m]] - RESPIRATION CP pulse sequence.&lt;br /&gt;
&lt;br /&gt;
==Spatially encoded NMR==&lt;br /&gt;
&lt;br /&gt;
===Ultrafast, pure-shift, and diffusion NMR===&lt;br /&gt;
&lt;br /&gt;
[[spencosy.m]] - ultrafast COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosy.m]] - ultrafast DOSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosycosy.m]] - ultrafast 3D DOSY-COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[psyche.m]] - PSYCHE 1D pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[ufmq.m]] - ultrafast multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[st_ideal.m]] - ideal Stejskal-Tanner pulse sequence.&lt;br /&gt;
&lt;br /&gt;
===Gradient signal suppression===&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_select.m]] - DPFGSE signal selection&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_suppress.m]] - DPFGSE signal suppression&lt;br /&gt;
&lt;br /&gt;
==Magnetic resonance imaging==&lt;br /&gt;
{{:mri_sequence_list}}&lt;br /&gt;
&lt;br /&gt;
==Overtone NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[overtone_a.m]] - overtone signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[overtone_cp.m]] - overtone cross-polarisation.&lt;br /&gt;
&lt;br /&gt;
[[overtone_pa.m]] - overtone pulse-acquire.&lt;br /&gt;
&lt;br /&gt;
[[overtone_dante.m]] - overtone DANTE.&lt;br /&gt;
&lt;br /&gt;
==ESR experiments==&lt;br /&gt;
&lt;br /&gt;
[[endor_cw.m]] – continuous-wave ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_mims.m]] – Mims ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_davies.m]] - Davies ENDOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[eseem.m]] – ESEEM pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[fieldsweep.m]] - field sweep ESR experiment using steady state formalism.&lt;br /&gt;
&lt;br /&gt;
[[hyscore.m]] – HYSCORE experiment.&lt;br /&gt;
&lt;br /&gt;
[[oopeseem.m]] - out-of-phase ESEEM experiment.&lt;br /&gt;
&lt;br /&gt;
[[rapidscan.m]] - ESR rapid field scan experiment.&lt;br /&gt;
&lt;br /&gt;
[[ridme.m]] - RIDME pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[sifter.m]] - SIFTER experiment&lt;br /&gt;
&lt;br /&gt;
==DEER/PELDOR experiments==&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_echo.m]] - echo diagnostocs for ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_deer.m]] - ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_deer.m]] - three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_hole.m]] - pulse hole diagnostics for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_diag.m]] - full diagnostics suite for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_deer.m]] - four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_hole.m]] - pulse hole diagnostics for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_diag.m]] - full diagnostics suite for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
==DNP experiments==&lt;br /&gt;
&lt;br /&gt;
[[dnp_field_scan.m]] – field scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[dnp_freq_scan.m]] – frequency scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[solid_effect.m]] – large-scale simulation of solid effect DNP.&lt;br /&gt;
&lt;br /&gt;
[[masdnp.m]] - magic angle spinning DNP.&lt;br /&gt;
&lt;br /&gt;
==Paramagnetic NMR spectroscopy==&lt;br /&gt;
&lt;br /&gt;
[[centroid.m]] - centre of mass point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
[[csa2racs.m]] - residual anisotropic chemical shift.&lt;br /&gt;
&lt;br /&gt;
[[eqmag.m]] - molar magnetization vector at the thermal equilibrium. &lt;br /&gt;
&lt;br /&gt;
[[fieldscan_enlev.m]] - energy levels as a function of the magnetic field.&lt;br /&gt;
&lt;br /&gt;
[[fieldscan_magn.m]] - Z magnetisation in a finite-speed field sweep.&lt;br /&gt;
&lt;br /&gt;
[[geffect.m]] - Effective g-tensor for a user-specified Kramers doublet.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pcs.m]] - computes pseudocontact shifts from hyperfine couplings and susceptibility tensors.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pms.m]] - computes paramagnetic shifts (contact + pseudocontact) from hyperfine couplings and susceptibility data.&lt;br /&gt;
&lt;br /&gt;
[[ipcs.m]] – tag probability density recovery from pseudocontact shifts..&lt;br /&gt;
&lt;br /&gt;
[[ippcs.m]] – point electron model fitting to PCS data.&lt;br /&gt;
&lt;br /&gt;
[[kpcs.m]] – PCS calculation using Kuprov equation. &lt;br /&gt;
&lt;br /&gt;
[[pms2chi.m]] - extracts magnetic susceptibility tensors from paramagnetic shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs2chi.m]] - extracts rank 2 components of the magnetic susceptibility tensors from pseudocontact shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs_combi_fit.m]] - PCS data fitting with ambiguous assignments.&lt;br /&gt;
&lt;br /&gt;
[[ppcs.m]] - Computes pseudocontact shift from a point electron centre at the nuclear coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[probmax.m]] - maximum point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
==Exotica==&lt;br /&gt;
[[rydmr.m]] – singlet-singlet RYDMR experiment with exponential recombination function, as described in the paper by Timmel and co-authors.&lt;br /&gt;
&lt;br /&gt;
[[zerofield.m]] - gamma-weighted pulse-acquire sequence in zero field.&lt;br /&gt;
&lt;br /&gt;
[[zulf_abrupt.m]] - zero-field NMR with an abrupt field drop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3790</id>
		<title>Built-in experiments</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3790"/>
		<updated>2019-01-12T16:25:16Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* NMR experiments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section contains a list of the pre-programmed pulse sequences supplied with &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;. Everything is open-source, so feel free to hack and modify as appropriate. If your particular sequence is not listed below, or if you have written something that is worthy of broad public adoption, drop us a note – we are always interested in expanding &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; capabilities. &lt;br /&gt;
&lt;br /&gt;
Unless stated otherwise in the experiment description, all of the functions listed below below should be invoked &amp;#039;&amp;#039;via&amp;#039;&amp;#039; a [[kernel contexts|kernel context]] function that sets the appropriate (solid, liquid, &amp;#039;&amp;#039;etc.&amp;#039;&amp;#039;) simulation infrastructure.&lt;br /&gt;
==General experiments==&lt;br /&gt;
&lt;br /&gt;
[[acquire.m]] – simple forward time evolution with signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[cpmg.m]] - CPMG echo train with detection.&lt;br /&gt;
&lt;br /&gt;
[[holeburn.m]] - hole burning experiment.&lt;br /&gt;
&lt;br /&gt;
[[hp_acquire.m]] – standard hard pulse acquire sequence. The user must supply the pulse operator, the pulse duration and the initial condition.&lt;br /&gt;
&lt;br /&gt;
[[impound.m]] - captures what it receives from the context function and returns it to the user.&lt;br /&gt;
&lt;br /&gt;
[[levelpop.m]] - energy levels and their populations.&lt;br /&gt;
&lt;br /&gt;
[[relaxan.m]] - automated relaxation theory analysis. &lt;br /&gt;
&lt;br /&gt;
[[slowpass.m]] – calculates spectrum values at the user specified frequency positions using the Fourier transform of the Liouville - von Neumann equation. The biggest advantage over the fid + fft style detection is easy parallelization and the possibility of getting spectrum values at specific frequencies without recalculating the entire free induction decay.&lt;br /&gt;
&lt;br /&gt;
[[sp_acquire.m]] - a pulse-acquire sequence with a soft pulse.&lt;br /&gt;
&lt;br /&gt;
[[traject.m]] - simple forward time evolution, trajectory is returned as a stack of density matrices.&lt;br /&gt;
&lt;br /&gt;
==NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[clip_hsqc.m]] – CLIP-HSQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[cn2d_sq.m]] – CN2D experiment under MAS, single-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cn2d_dq.m]] – CN2D experiment under MAS, double-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cosy.m]] – phase-sensitive COSY pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[crosspol.m]] – cross-polarization experiment.&lt;br /&gt;
&lt;br /&gt;
[[dante.m]] - DANTE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dept.m]]  - DEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[deptq.m]] - DEPTQ pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dqf_cosy.m]] – phase-sensitive double-quantum filtered COSY pulse sequence&lt;br /&gt;
&lt;br /&gt;
[[hetcor.m]] – magnitude mode HETCOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[hmbc.m]] - HMBC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[hmqc.m]] – magnitude mode HMQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[hnco.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hncoca.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hsqc.m]] – phase-sensitive HSQC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inadequate.m]] - INADEQUATE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inept.m]] - INEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inv_rec.m]] - inversion-revocery sequence.&lt;br /&gt;
&lt;br /&gt;
[[lcosy.m]] – localised COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[m2s.m]] - magnetisation to singlet state.&lt;br /&gt;
&lt;br /&gt;
[[mqmas.m]] - 2D multiple-quantum MAS pulse sequence for quadrupolar nuclei. &lt;br /&gt;
&lt;br /&gt;
[[mqs.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[mqs_refocus.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesy.m]] – phase-sensitive homonuclear NOESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesyhsqc.m]] – phase-sensitive NOESY-HSQC pulse sequence. Hard-wired to 1H, 15N, 1H.&lt;br /&gt;
&lt;br /&gt;
[[pansy_cosy.m]] - PANSY-COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[respiration.m]] - RESPIRATION CP pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[roesy.m]] - phase-sensitive homonuclear ROESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[s2m.m]] - singlet state to magnetisation.&lt;br /&gt;
&lt;br /&gt;
[[sat_rec.m]] - saturation-recovery sequence.&lt;br /&gt;
&lt;br /&gt;
[[tocsy.m]] - amplitude-mode homonuclear TOCSY.&lt;br /&gt;
&lt;br /&gt;
==Spatially encoded NMR==&lt;br /&gt;
&lt;br /&gt;
===Ultrafast, pure-shift, and diffusion NMR===&lt;br /&gt;
&lt;br /&gt;
[[spencosy.m]] - ultrafast COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosy.m]] - ultrafast DOSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosycosy.m]] - ultrafast 3D DOSY-COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[psyche.m]] - PSYCHE 1D pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[ufmq.m]] - ultrafast multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[st_ideal.m]] - ideal Stejskal-Tanner pulse sequence.&lt;br /&gt;
&lt;br /&gt;
===Gradient signal suppression===&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_select.m]] - DPFGSE signal selection&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_suppress.m]] - DPFGSE signal suppression&lt;br /&gt;
&lt;br /&gt;
==Magnetic resonance imaging==&lt;br /&gt;
{{:mri_sequence_list}}&lt;br /&gt;
&lt;br /&gt;
==Overtone NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[overtone_a.m]] - overtone signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[overtone_cp.m]] - overtone cross-polarisation.&lt;br /&gt;
&lt;br /&gt;
[[overtone_pa.m]] - overtone pulse-acquire.&lt;br /&gt;
&lt;br /&gt;
[[overtone_dante.m]] - overtone DANTE.&lt;br /&gt;
&lt;br /&gt;
==ESR experiments==&lt;br /&gt;
&lt;br /&gt;
[[endor_cw.m]] – continuous-wave ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_mims.m]] – Mims ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_davies.m]] - Davies ENDOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[eseem.m]] – ESEEM pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[fieldsweep.m]] - field sweep ESR experiment using steady state formalism.&lt;br /&gt;
&lt;br /&gt;
[[hyscore.m]] – HYSCORE experiment.&lt;br /&gt;
&lt;br /&gt;
[[oopeseem.m]] - out-of-phase ESEEM experiment.&lt;br /&gt;
&lt;br /&gt;
[[rapidscan.m]] - ESR rapid field scan experiment.&lt;br /&gt;
&lt;br /&gt;
[[ridme.m]] - RIDME pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[sifter.m]] - SIFTER experiment&lt;br /&gt;
&lt;br /&gt;
==DEER/PELDOR experiments==&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_echo.m]] - echo diagnostocs for ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_deer.m]] - ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_deer.m]] - three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_hole.m]] - pulse hole diagnostics for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_diag.m]] - full diagnostics suite for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_deer.m]] - four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_hole.m]] - pulse hole diagnostics for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_diag.m]] - full diagnostics suite for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
==DNP experiments==&lt;br /&gt;
&lt;br /&gt;
[[dnp_field_scan.m]] – field scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[dnp_freq_scan.m]] – frequency scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[solid_effect.m]] – large-scale simulation of solid effect DNP.&lt;br /&gt;
&lt;br /&gt;
[[masdnp.m]] - magic angle spinning DNP.&lt;br /&gt;
&lt;br /&gt;
==Paramagnetic NMR spectroscopy==&lt;br /&gt;
&lt;br /&gt;
[[centroid.m]] - centre of mass point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
[[csa2racs.m]] - residual anisotropic chemical shift.&lt;br /&gt;
&lt;br /&gt;
[[eqmag.m]] - molar magnetization vector at the thermal equilibrium. &lt;br /&gt;
&lt;br /&gt;
[[fieldscan_enlev.m]] - energy levels as a function of the magnetic field.&lt;br /&gt;
&lt;br /&gt;
[[fieldscan_magn.m]] - Z magnetisation in a finite-speed field sweep.&lt;br /&gt;
&lt;br /&gt;
[[geffect.m]] - Effective g-tensor for a user-specified Kramers doublet.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pcs.m]] - computes pseudocontact shifts from hyperfine couplings and susceptibility tensors.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pms.m]] - computes paramagnetic shifts (contact + pseudocontact) from hyperfine couplings and susceptibility data.&lt;br /&gt;
&lt;br /&gt;
[[ipcs.m]] – tag probability density recovery from pseudocontact shifts..&lt;br /&gt;
&lt;br /&gt;
[[ippcs.m]] – point electron model fitting to PCS data.&lt;br /&gt;
&lt;br /&gt;
[[kpcs.m]] – PCS calculation using Kuprov equation. &lt;br /&gt;
&lt;br /&gt;
[[pms2chi.m]] - extracts magnetic susceptibility tensors from paramagnetic shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs2chi.m]] - extracts rank 2 components of the magnetic susceptibility tensors from pseudocontact shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs_combi_fit.m]] - PCS data fitting with ambiguous assignments.&lt;br /&gt;
&lt;br /&gt;
[[ppcs.m]] - Computes pseudocontact shift from a point electron centre at the nuclear coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[probmax.m]] - maximum point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
==Exotica==&lt;br /&gt;
[[rydmr.m]] – singlet-singlet RYDMR experiment with exponential recombination function, as described in the paper by Timmel and co-authors.&lt;br /&gt;
&lt;br /&gt;
[[zerofield.m]] - gamma-weighted pulse-acquire sequence in zero field.&lt;br /&gt;
&lt;br /&gt;
[[zulf_abrupt.m]] - zero-field NMR with an abrupt field drop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=File:Inad_cyprinol.png&amp;diff=3789</id>
		<title>File:Inad cyprinol.png</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=File:Inad_cyprinol.png&amp;diff=3789"/>
		<updated>2019-01-12T16:24:21Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Inadequate.m&amp;diff=3788</id>
		<title>Inadequate.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Inadequate.m&amp;diff=3788"/>
		<updated>2019-01-12T16:23:54Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:inadequate.m}} __NOTOC__&lt;br /&gt;
INADEQUATE pulse sequence. Removes uncoupled carbons from the spectra via a double quantum filter, allowing only double quantum coherences states too be detected. At natural abundance 13C, this produces only 13C pair subspectra.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     fid=inadequate(spin_system,parameters,H,R,K)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
    parameters.sweep              sweep width in Hz&lt;br /&gt;
 &lt;br /&gt;
    parameters.npoints            number of points in the fid&lt;br /&gt;
 &lt;br /&gt;
    parameters.spins              active nuclei, e.g. {&amp;#039;13C&amp;#039;}&lt;br /&gt;
 &lt;br /&gt;
    parameters.J                  working J-coupling in Hz&lt;br /&gt;
 &lt;br /&gt;
    H - Hamiltonian matrix, received from context function&lt;br /&gt;
 &lt;br /&gt;
    R - relaxation superoperator, received from context function&lt;br /&gt;
 &lt;br /&gt;
    K - kinetics superoperator, received from context function&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     fid  - free induction decay&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
An INADEQUATE spectrum simulation for cyprinol (examples/nmr_liquids/inad_cyprinol.m) appears below.&lt;br /&gt;
&lt;br /&gt;
[[File:inad_cyprinol.png]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Use [[dilute.m]] to generate carbon pair isotopomers.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[inept.m]], [[dilute.m]], [[dept.m]], [[deptq.m]], [[hsqc.m]], [[hmqc.m]], [[hmbc.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Bud Macaulay]], [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3787</id>
		<title>Built-in experiments</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3787"/>
		<updated>2019-01-12T16:23:41Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* NMR experiments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section contains a list of the pre-programmed pulse sequences supplied with &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;. Everything is open-source, so feel free to hack and modify as appropriate. If your particular sequence is not listed below, or if you have written something that is worthy of broad public adoption, drop us a note – we are always interested in expanding &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; capabilities. &lt;br /&gt;
&lt;br /&gt;
Unless stated otherwise in the experiment description, all of the functions listed below below should be invoked &amp;#039;&amp;#039;via&amp;#039;&amp;#039; a [[kernel contexts|kernel context]] function that sets the appropriate (solid, liquid, &amp;#039;&amp;#039;etc.&amp;#039;&amp;#039;) simulation infrastructure.&lt;br /&gt;
==General experiments==&lt;br /&gt;
&lt;br /&gt;
[[acquire.m]] – simple forward time evolution with signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[cpmg.m]] - CPMG echo train with detection.&lt;br /&gt;
&lt;br /&gt;
[[holeburn.m]] - hole burning experiment.&lt;br /&gt;
&lt;br /&gt;
[[hp_acquire.m]] – standard hard pulse acquire sequence. The user must supply the pulse operator, the pulse duration and the initial condition.&lt;br /&gt;
&lt;br /&gt;
[[impound.m]] - captures what it receives from the context function and returns it to the user.&lt;br /&gt;
&lt;br /&gt;
[[levelpop.m]] - energy levels and their populations.&lt;br /&gt;
&lt;br /&gt;
[[relaxan.m]] - automated relaxation theory analysis. &lt;br /&gt;
&lt;br /&gt;
[[slowpass.m]] – calculates spectrum values at the user specified frequency positions using the Fourier transform of the Liouville - von Neumann equation. The biggest advantage over the fid + fft style detection is easy parallelization and the possibility of getting spectrum values at specific frequencies without recalculating the entire free induction decay.&lt;br /&gt;
&lt;br /&gt;
[[sp_acquire.m]] - a pulse-acquire sequence with a soft pulse.&lt;br /&gt;
&lt;br /&gt;
[[traject.m]] - simple forward time evolution, trajectory is returned as a stack of density matrices.&lt;br /&gt;
&lt;br /&gt;
==NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[clip_hsqc.m]] – CLIP-HSQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[cn2d_sq.m]] – CN2D experiment under MAS, single-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cn2d_dq.m]] – CN2D experiment under MAS, double-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cosy.m]] – phase-sensitive COSY pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[crosspol.m]] – cross-polarization experiment.&lt;br /&gt;
&lt;br /&gt;
[[dante.m]] - DANTE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dept.m]]  - DEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[deptq.m]] - DEPTQ pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dqf_cosy.m]] – phase-sensitive double-quantum filtered COSY pulse sequence&lt;br /&gt;
&lt;br /&gt;
[[hetcor.m]] – magnitude mode HETCOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[hmqc.m]] – magnitude mode HMQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[hnco.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hncoca.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hsqc.m]] – phase-sensitive HSQC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inadequate.m]] - INADEQUATE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inept.m]] - INEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inv_rec.m]] - inversion-revocery sequence.&lt;br /&gt;
&lt;br /&gt;
[[lcosy.m]] – localised COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[m2s.m]] - magnetisation to singlet state.&lt;br /&gt;
&lt;br /&gt;
[[mqmas.m]] - 2D multiple-quantum MAS pulse sequence for quadrupolar nuclei. &lt;br /&gt;
&lt;br /&gt;
[[mqs.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[mqs_refocus.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesy.m]] – phase-sensitive homonuclear NOESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesyhsqc.m]] – phase-sensitive NOESY-HSQC pulse sequence. Hard-wired to 1H, 15N, 1H.&lt;br /&gt;
&lt;br /&gt;
[[pansy_cosy.m]] - PANSY-COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[respiration.m]] - RESPIRATION CP pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[roesy.m]] - phase-sensitive homonuclear ROESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[s2m.m]] - singlet state to magnetisation.&lt;br /&gt;
&lt;br /&gt;
[[sat_rec.m]] - saturation-recovery sequence.&lt;br /&gt;
&lt;br /&gt;
[[tocsy.m]] - amplitude-mode homonuclear TOCSY.&lt;br /&gt;
&lt;br /&gt;
==Spatially encoded NMR==&lt;br /&gt;
&lt;br /&gt;
===Ultrafast, pure-shift, and diffusion NMR===&lt;br /&gt;
&lt;br /&gt;
[[spencosy.m]] - ultrafast COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosy.m]] - ultrafast DOSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosycosy.m]] - ultrafast 3D DOSY-COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[psyche.m]] - PSYCHE 1D pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[ufmq.m]] - ultrafast multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[st_ideal.m]] - ideal Stejskal-Tanner pulse sequence.&lt;br /&gt;
&lt;br /&gt;
===Gradient signal suppression===&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_select.m]] - DPFGSE signal selection&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_suppress.m]] - DPFGSE signal suppression&lt;br /&gt;
&lt;br /&gt;
==Magnetic resonance imaging==&lt;br /&gt;
{{:mri_sequence_list}}&lt;br /&gt;
&lt;br /&gt;
==Overtone NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[overtone_a.m]] - overtone signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[overtone_cp.m]] - overtone cross-polarisation.&lt;br /&gt;
&lt;br /&gt;
[[overtone_pa.m]] - overtone pulse-acquire.&lt;br /&gt;
&lt;br /&gt;
[[overtone_dante.m]] - overtone DANTE.&lt;br /&gt;
&lt;br /&gt;
==ESR experiments==&lt;br /&gt;
&lt;br /&gt;
[[endor_cw.m]] – continuous-wave ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_mims.m]] – Mims ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_davies.m]] - Davies ENDOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[eseem.m]] – ESEEM pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[fieldsweep.m]] - field sweep ESR experiment using steady state formalism.&lt;br /&gt;
&lt;br /&gt;
[[hyscore.m]] – HYSCORE experiment.&lt;br /&gt;
&lt;br /&gt;
[[oopeseem.m]] - out-of-phase ESEEM experiment.&lt;br /&gt;
&lt;br /&gt;
[[rapidscan.m]] - ESR rapid field scan experiment.&lt;br /&gt;
&lt;br /&gt;
[[ridme.m]] - RIDME pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[sifter.m]] - SIFTER experiment&lt;br /&gt;
&lt;br /&gt;
==DEER/PELDOR experiments==&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_echo.m]] - echo diagnostocs for ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_deer.m]] - ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_deer.m]] - three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_hole.m]] - pulse hole diagnostics for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_diag.m]] - full diagnostics suite for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_deer.m]] - four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_hole.m]] - pulse hole diagnostics for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_diag.m]] - full diagnostics suite for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
==DNP experiments==&lt;br /&gt;
&lt;br /&gt;
[[dnp_field_scan.m]] – field scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[dnp_freq_scan.m]] – frequency scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[solid_effect.m]] – large-scale simulation of solid effect DNP.&lt;br /&gt;
&lt;br /&gt;
[[masdnp.m]] - magic angle spinning DNP.&lt;br /&gt;
&lt;br /&gt;
==Paramagnetic NMR spectroscopy==&lt;br /&gt;
&lt;br /&gt;
[[centroid.m]] - centre of mass point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
[[csa2racs.m]] - residual anisotropic chemical shift.&lt;br /&gt;
&lt;br /&gt;
[[eqmag.m]] - molar magnetization vector at the thermal equilibrium. &lt;br /&gt;
&lt;br /&gt;
[[fieldscan_enlev.m]] - energy levels as a function of the magnetic field.&lt;br /&gt;
&lt;br /&gt;
[[fieldscan_magn.m]] - Z magnetisation in a finite-speed field sweep.&lt;br /&gt;
&lt;br /&gt;
[[geffect.m]] - Effective g-tensor for a user-specified Kramers doublet.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pcs.m]] - computes pseudocontact shifts from hyperfine couplings and susceptibility tensors.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pms.m]] - computes paramagnetic shifts (contact + pseudocontact) from hyperfine couplings and susceptibility data.&lt;br /&gt;
&lt;br /&gt;
[[ipcs.m]] – tag probability density recovery from pseudocontact shifts..&lt;br /&gt;
&lt;br /&gt;
[[ippcs.m]] – point electron model fitting to PCS data.&lt;br /&gt;
&lt;br /&gt;
[[kpcs.m]] – PCS calculation using Kuprov equation. &lt;br /&gt;
&lt;br /&gt;
[[pms2chi.m]] - extracts magnetic susceptibility tensors from paramagnetic shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs2chi.m]] - extracts rank 2 components of the magnetic susceptibility tensors from pseudocontact shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs_combi_fit.m]] - PCS data fitting with ambiguous assignments.&lt;br /&gt;
&lt;br /&gt;
[[ppcs.m]] - Computes pseudocontact shift from a point electron centre at the nuclear coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[probmax.m]] - maximum point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
==Exotica==&lt;br /&gt;
[[rydmr.m]] – singlet-singlet RYDMR experiment with exponential recombination function, as described in the paper by Timmel and co-authors.&lt;br /&gt;
&lt;br /&gt;
[[zerofield.m]] - gamma-weighted pulse-acquire sequence in zero field.&lt;br /&gt;
&lt;br /&gt;
[[zulf_abrupt.m]] - zero-field NMR with an abrupt field drop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Inadequate.m&amp;diff=3786</id>
		<title>Inadequate.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Inadequate.m&amp;diff=3786"/>
		<updated>2019-01-12T16:23:00Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:inadequate.m}} __NOTOC__&lt;br /&gt;
INADEQUATE pulse sequence. Removes uncoupled carbons from the spectra via a double quantum filter, allowing only double quantum coherences states too be detected. At natural abundance 13C, this produces only 13C pair subspectra.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     fid=inadequate(spin_system,parameters,H,R,K)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
    parameters.sweep              sweep width in Hz&lt;br /&gt;
 &lt;br /&gt;
    parameters.npoints            number of points in the fid&lt;br /&gt;
 &lt;br /&gt;
    parameters.spins              active nuclei, e.g. {&amp;#039;13C&amp;#039;}&lt;br /&gt;
 &lt;br /&gt;
    parameters.J                  working J-coupling in Hz&lt;br /&gt;
 &lt;br /&gt;
    H - Hamiltonian matrix, received from context function&lt;br /&gt;
 &lt;br /&gt;
    R - relaxation superoperator, received from context function&lt;br /&gt;
 &lt;br /&gt;
    K - kinetics superoperator, received from context function&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     fid  - free induction decay&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
An INADEQUATE spectrum simulation for cyprinol (examples/nmr_liquids/inad_cyprinol.m) appears below.&lt;br /&gt;
&lt;br /&gt;
[[File:inad_cyprinol.m]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Use [[dilute.m]] to generate carbon pair isotopomers.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[inept.m]], [[dilute.m]], [[dept.m]], [[deptq.m]], [[hsqc.m]], [[hmqc.m]], [[hmbc.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Bud Macaulay]], [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Inadequate.m&amp;diff=3785</id>
		<title>Inadequate.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Inadequate.m&amp;diff=3785"/>
		<updated>2019-01-12T16:22:45Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:function.m}} __NOTOC__&lt;br /&gt;
INADEQUATE pulse sequence. Removes uncoupled carbons from the spectra via a double quantum filter, allowing only double quantum coherences states too be detected. At natural abundance 13C, this produces only 13C pair subspectra.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     fid=inadequate(spin_system,parameters,H,R,K)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
    parameters.sweep              sweep width in Hz&lt;br /&gt;
 &lt;br /&gt;
    parameters.npoints            number of points in the fid&lt;br /&gt;
 &lt;br /&gt;
    parameters.spins              active nuclei, e.g. {&amp;#039;13C&amp;#039;}&lt;br /&gt;
 &lt;br /&gt;
    parameters.J                  working J-coupling in Hz&lt;br /&gt;
 &lt;br /&gt;
    H - Hamiltonian matrix, received from context function&lt;br /&gt;
 &lt;br /&gt;
    R - relaxation superoperator, received from context function&lt;br /&gt;
 &lt;br /&gt;
    K - kinetics superoperator, received from context function&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     fid  - free induction decay&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
An INADEQUATE spectrum simulation for cyprinol (examples/nmr_liquids/inad_cyprinol.m) appears below.&lt;br /&gt;
&lt;br /&gt;
[[File:inad_cyprinol.m]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Use [[dilute.m]] to generate carbon pair isotopomers.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[inept.m]], [[dilute.m]], [[dept.m]], [[deptq.m]], [[hsqc.m]], [[hmqc.m]], [[hmbc.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Bud Macaulay]], [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Inadequate.m&amp;diff=3784</id>
		<title>Inadequate.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Inadequate.m&amp;diff=3784"/>
		<updated>2019-01-12T16:22:33Z</updated>

		<summary type="html">&lt;p&gt;Admin: Created page with &amp;quot;{{DISPLAYTITLE:function.m}} __NOTOC__ INADEQUATE pulse sequence. Removes uncoupled carbons from the spectra via a double quantum filter, allowing only double quantum coherence...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:function.m}} __NOTOC__&lt;br /&gt;
INADEQUATE pulse sequence. Removes uncoupled carbons from the spectra via a double quantum filter, allowing only double quantum coherences states too be detected. At natural abundance 13C, this produces only 13C pair subspectra.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     fid=inadequate(spin_system,parameters,H,R,K)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
    parameters.sweep              sweep width in Hz&lt;br /&gt;
&lt;br /&gt;
    parameters.npoints            number of points in the fid&lt;br /&gt;
&lt;br /&gt;
    parameters.spins              active nuclei, e.g. {&amp;#039;13C&amp;#039;}&lt;br /&gt;
&lt;br /&gt;
    parameters.J                  working J-coupling in Hz&lt;br /&gt;
&lt;br /&gt;
    H - Hamiltonian matrix, received from context function&lt;br /&gt;
&lt;br /&gt;
    R - relaxation superoperator, received from context function&lt;br /&gt;
&lt;br /&gt;
    K - kinetics superoperator, received from context function&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     fid  - free induction decay&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
An INADEQUATE spectrum simulation for cyprinol (examples/nmr_liquids/inad_cyprinol.m) appears below.&lt;br /&gt;
&lt;br /&gt;
[[File:inad_cyprinol.m]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Use [[dilute.m]] to generate carbon pair isotopomers.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[inept.m]], [[dilute.m]], [[dept.m]], [[deptq.m]], [[hsqc.m]], [[hmqc.m]], [[hmbc.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Bud Macaulay]], [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3783</id>
		<title>Built-in experiments</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3783"/>
		<updated>2019-01-12T16:12:01Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* NMR experiments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section contains a list of the pre-programmed pulse sequences supplied with &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;. Everything is open-source, so feel free to hack and modify as appropriate. If your particular sequence is not listed below, or if you have written something that is worthy of broad public adoption, drop us a note – we are always interested in expanding &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; capabilities. &lt;br /&gt;
&lt;br /&gt;
Unless stated otherwise in the experiment description, all of the functions listed below below should be invoked &amp;#039;&amp;#039;via&amp;#039;&amp;#039; a [[kernel contexts|kernel context]] function that sets the appropriate (solid, liquid, &amp;#039;&amp;#039;etc.&amp;#039;&amp;#039;) simulation infrastructure.&lt;br /&gt;
==General experiments==&lt;br /&gt;
&lt;br /&gt;
[[acquire.m]] – simple forward time evolution with signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[cpmg.m]] - CPMG echo train with detection.&lt;br /&gt;
&lt;br /&gt;
[[holeburn.m]] - hole burning experiment.&lt;br /&gt;
&lt;br /&gt;
[[hp_acquire.m]] – standard hard pulse acquire sequence. The user must supply the pulse operator, the pulse duration and the initial condition.&lt;br /&gt;
&lt;br /&gt;
[[impound.m]] - captures what it receives from the context function and returns it to the user.&lt;br /&gt;
&lt;br /&gt;
[[levelpop.m]] - energy levels and their populations.&lt;br /&gt;
&lt;br /&gt;
[[relaxan.m]] - automated relaxation theory analysis. &lt;br /&gt;
&lt;br /&gt;
[[slowpass.m]] – calculates spectrum values at the user specified frequency positions using the Fourier transform of the Liouville - von Neumann equation. The biggest advantage over the fid + fft style detection is easy parallelization and the possibility of getting spectrum values at specific frequencies without recalculating the entire free induction decay.&lt;br /&gt;
&lt;br /&gt;
[[sp_acquire.m]] - a pulse-acquire sequence with a soft pulse.&lt;br /&gt;
&lt;br /&gt;
[[traject.m]] - simple forward time evolution, trajectory is returned as a stack of density matrices.&lt;br /&gt;
&lt;br /&gt;
==NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[clip_hsqc.m]] – CLIP-HSQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[cn2d_sq.m]] – CN2D experiment under MAS, single-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cn2d_dq.m]] – CN2D experiment under MAS, double-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cosy.m]] – phase-sensitive COSY pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[crosspol.m]] – cross-polarization experiment.&lt;br /&gt;
&lt;br /&gt;
[[dante.m]] - DANTE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dept.m]]  - DEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[deptq.m]] - DEPTQ pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dqf_cosy.m]] – phase-sensitive double-quantum filtered COSY pulse sequence&lt;br /&gt;
&lt;br /&gt;
[[hetcor.m]] – magnitude mode HETCOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[hmqc.m]] – magnitude mode HMQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[hnco.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hncoca.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hsqc.m]] – phase-sensitive HSQC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inept.m]] - INEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inv_rec.m]] - inversion-revocery sequence.&lt;br /&gt;
&lt;br /&gt;
[[lcosy.m]] – localised COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[m2s.m]] - magnetisation to singlet state.&lt;br /&gt;
&lt;br /&gt;
[[mqmas.m]] - 2D multiple-quantum MAS pulse sequence for quadrupolar nuclei. &lt;br /&gt;
&lt;br /&gt;
[[mqs.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[mqs_refocus.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesy.m]] – phase-sensitive homonuclear NOESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesyhsqc.m]] – phase-sensitive NOESY-HSQC pulse sequence. Hard-wired to 1H, 15N, 1H.&lt;br /&gt;
&lt;br /&gt;
[[pansy_cosy.m]] - PANSY-COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[respiration.m]] - RESPIRATION CP pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[roesy.m]] - phase-sensitive homonuclear ROESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[s2m.m]] - singlet state to magnetisation.&lt;br /&gt;
&lt;br /&gt;
[[sat_rec.m]] - saturation-recovery sequence.&lt;br /&gt;
&lt;br /&gt;
[[tocsy.m]] - amplitude-mode homonuclear TOCSY.&lt;br /&gt;
&lt;br /&gt;
==Spatially encoded NMR==&lt;br /&gt;
&lt;br /&gt;
===Ultrafast, pure-shift, and diffusion NMR===&lt;br /&gt;
&lt;br /&gt;
[[spencosy.m]] - ultrafast COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosy.m]] - ultrafast DOSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosycosy.m]] - ultrafast 3D DOSY-COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[psyche.m]] - PSYCHE 1D pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[ufmq.m]] - ultrafast multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[st_ideal.m]] - ideal Stejskal-Tanner pulse sequence.&lt;br /&gt;
&lt;br /&gt;
===Gradient signal suppression===&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_select.m]] - DPFGSE signal selection&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_suppress.m]] - DPFGSE signal suppression&lt;br /&gt;
&lt;br /&gt;
==Magnetic resonance imaging==&lt;br /&gt;
{{:mri_sequence_list}}&lt;br /&gt;
&lt;br /&gt;
==Overtone NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[overtone_a.m]] - overtone signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[overtone_cp.m]] - overtone cross-polarisation.&lt;br /&gt;
&lt;br /&gt;
[[overtone_pa.m]] - overtone pulse-acquire.&lt;br /&gt;
&lt;br /&gt;
[[overtone_dante.m]] - overtone DANTE.&lt;br /&gt;
&lt;br /&gt;
==ESR experiments==&lt;br /&gt;
&lt;br /&gt;
[[endor_cw.m]] – continuous-wave ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_mims.m]] – Mims ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_davies.m]] - Davies ENDOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[eseem.m]] – ESEEM pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[fieldsweep.m]] - field sweep ESR experiment using steady state formalism.&lt;br /&gt;
&lt;br /&gt;
[[hyscore.m]] – HYSCORE experiment.&lt;br /&gt;
&lt;br /&gt;
[[oopeseem.m]] - out-of-phase ESEEM experiment.&lt;br /&gt;
&lt;br /&gt;
[[rapidscan.m]] - ESR rapid field scan experiment.&lt;br /&gt;
&lt;br /&gt;
[[ridme.m]] - RIDME pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[sifter.m]] - SIFTER experiment&lt;br /&gt;
&lt;br /&gt;
==DEER/PELDOR experiments==&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_echo.m]] - echo diagnostocs for ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_deer.m]] - ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_deer.m]] - three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_hole.m]] - pulse hole diagnostics for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_diag.m]] - full diagnostics suite for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_deer.m]] - four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_hole.m]] - pulse hole diagnostics for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_diag.m]] - full diagnostics suite for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
==DNP experiments==&lt;br /&gt;
&lt;br /&gt;
[[dnp_field_scan.m]] – field scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[dnp_freq_scan.m]] – frequency scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[solid_effect.m]] – large-scale simulation of solid effect DNP.&lt;br /&gt;
&lt;br /&gt;
[[masdnp.m]] - magic angle spinning DNP.&lt;br /&gt;
&lt;br /&gt;
==Paramagnetic NMR spectroscopy==&lt;br /&gt;
&lt;br /&gt;
[[centroid.m]] - centre of mass point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
[[csa2racs.m]] - residual anisotropic chemical shift.&lt;br /&gt;
&lt;br /&gt;
[[eqmag.m]] - molar magnetization vector at the thermal equilibrium. &lt;br /&gt;
&lt;br /&gt;
[[fieldscan_enlev.m]] - energy levels as a function of the magnetic field.&lt;br /&gt;
&lt;br /&gt;
[[fieldscan_magn.m]] - Z magnetisation in a finite-speed field sweep.&lt;br /&gt;
&lt;br /&gt;
[[geffect.m]] - Effective g-tensor for a user-specified Kramers doublet.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pcs.m]] - computes pseudocontact shifts from hyperfine couplings and susceptibility tensors.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pms.m]] - computes paramagnetic shifts (contact + pseudocontact) from hyperfine couplings and susceptibility data.&lt;br /&gt;
&lt;br /&gt;
[[ipcs.m]] – tag probability density recovery from pseudocontact shifts..&lt;br /&gt;
&lt;br /&gt;
[[ippcs.m]] – point electron model fitting to PCS data.&lt;br /&gt;
&lt;br /&gt;
[[kpcs.m]] – PCS calculation using Kuprov equation. &lt;br /&gt;
&lt;br /&gt;
[[pms2chi.m]] - extracts magnetic susceptibility tensors from paramagnetic shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs2chi.m]] - extracts rank 2 components of the magnetic susceptibility tensors from pseudocontact shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs_combi_fit.m]] - PCS data fitting with ambiguous assignments.&lt;br /&gt;
&lt;br /&gt;
[[ppcs.m]] - Computes pseudocontact shift from a point electron centre at the nuclear coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[probmax.m]] - maximum point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
==Exotica==&lt;br /&gt;
[[rydmr.m]] – singlet-singlet RYDMR experiment with exponential recombination function, as described in the paper by Timmel and co-authors.&lt;br /&gt;
&lt;br /&gt;
[[zerofield.m]] - gamma-weighted pulse-acquire sequence in zero field.&lt;br /&gt;
&lt;br /&gt;
[[zulf_abrupt.m]] - zero-field NMR with an abrupt field drop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=File:Deptq_strychnine.png&amp;diff=3782</id>
		<title>File:Deptq strychnine.png</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=File:Deptq_strychnine.png&amp;diff=3782"/>
		<updated>2019-01-12T16:11:26Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Deptq.m&amp;diff=3781</id>
		<title>Deptq.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Deptq.m&amp;diff=3781"/>
		<updated>2019-01-12T16:11:13Z</updated>

		<summary type="html">&lt;p&gt;Admin: Created page with &amp;quot;{{DISPLAYTITLE:deptq.m}} __NOTOC__ DEPTQ pulse sequence from Figure 1 of the paper by Burger and Bigler (https://doi.org/10.1006/jmre.1998.1595).  ==Syntax==       fid=deptq(s...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:deptq.m}} __NOTOC__&lt;br /&gt;
DEPTQ pulse sequence from Figure 1 of the paper by Burger and Bigler (https://doi.org/10.1006/jmre.1998.1595).&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     fid=deptq(spin_system,parameters,H,R,K)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
    parameters.sweep              [F1] Sweep width in Hz&lt;br /&gt;
 &lt;br /&gt;
    parameters.npoints            [F1] number of points&lt;br /&gt;
 &lt;br /&gt;
    parameters.spins              {F1,F2} nuclei, e.g. {&amp;#039;13C&amp;#039;,&amp;#039;1H&amp;#039;}&lt;br /&gt;
 &lt;br /&gt;
    parameters.J                  working J-coupling in Hz&lt;br /&gt;
  &lt;br /&gt;
    parameters.beta               the angle used in the selection&lt;br /&gt;
                                  pulse, radians&lt;br /&gt;
 &lt;br /&gt;
    H - Hamiltonian matrix, received from context function&lt;br /&gt;
 &lt;br /&gt;
    R - relaxation superoperator, received from context function&lt;br /&gt;
 &lt;br /&gt;
    K - kinetics superoperator, received from context function&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
    fid  - free induction decay&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
The simulation of a DEPTQ135 spectrum of strychnine (examples/nmr_liquids/deptq_strychnine.m) appears below.&lt;br /&gt;
&lt;br /&gt;
[[File:deptq_strychnine.png]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
# Use [[dilute.m]] to generate carbon isotopomers.&lt;br /&gt;
# The sequence differs from [[dept.m]] in that quaternary carbons do appear.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[dilute.m]], [[dept.m]], [[inept.m]], [[inadequate.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Andrew Porter]], [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Kernel_utilities&amp;diff=3780</id>
		<title>Kernel utilities</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Kernel_utilities&amp;diff=3780"/>
		<updated>2019-01-12T15:59:25Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Interaction specification conventions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section provides brief list of the functionality found in the kernel utilities folder, in alphabetic order. Service functions that have no physical or algebraic applications are not listed. Details of usage, input and output are given in the function headers.&lt;br /&gt;
&lt;br /&gt;
==Reference data==&lt;br /&gt;
&lt;br /&gt;
[[spin.m]] - multiplicities and magnetogyric ratios for most isotopes in the periodic table.&lt;br /&gt;
&lt;br /&gt;
==Spin system editing==&lt;br /&gt;
&lt;br /&gt;
[[chemshifts.m]] - returns chemical shifts for all spins.&lt;br /&gt;
&lt;br /&gt;
[[cubic_lattice.m]] - generates a cubic lattice of spins.&lt;br /&gt;
&lt;br /&gt;
[[dilute.m]] – splits the spin system into independent subsystems, each containing only one instance of a &amp;quot;dilute&amp;quot; isotope.&lt;br /&gt;
&lt;br /&gt;
[[gtensorof.m]] - returns the g-tensor of the specified spin.&lt;br /&gt;
&lt;br /&gt;
[[isnucleus.m]] - true of the particle is a nucleus known to &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
[[kill_spin.m]] – removes the specified spins from the spin_system structure and updates all internal structures accordingly.&lt;br /&gt;
&lt;br /&gt;
[[shift_iso.m]] – replaces the isotropic parts of interaction tensors with user-supplied values.&lt;br /&gt;
&lt;br /&gt;
==Rotations==&lt;br /&gt;
&lt;br /&gt;
See the section on [[rotation conventions]] for the details of how rotations are stored and manipulated inside Spinach kernel.&lt;br /&gt;
&lt;br /&gt;
[[anax2dcm.m]] – converts angle-axis rotation parameters to directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[anax2quat.m]] – converts angle-axis rotation parameters into a quaternion.&lt;br /&gt;
&lt;br /&gt;
[[dcm2euler.m]] – converts a directional cosine matrix into Euler angles.&lt;br /&gt;
&lt;br /&gt;
[[dcm2quat.m]] – converts a directional cosine matrix into a quaternion.&lt;br /&gt;
&lt;br /&gt;
[[dcm2wigner.m]] – converts a directional cosine matrix into a Wigner matrix. &lt;br /&gt;
&lt;br /&gt;
[[euler2dcm.m]] – converts Euler angles into directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[rotor_stack.m]] - a rotor stack of Liouvillians or Hamiltonians.&lt;br /&gt;
&lt;br /&gt;
[[wigner.m]] – converts Euler angles into Wigner rotation matrix.&lt;br /&gt;
&lt;br /&gt;
[[quat2anax.m]] – converts a quaternion into an angle-axis specification.&lt;br /&gt;
&lt;br /&gt;
[[quat2dcm.m]] – converts a quaternion into a directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[xyz2sph.m]] - Cartesian into spherical coordinates.&lt;br /&gt;
&lt;br /&gt;
==Interaction specification conventions==&lt;br /&gt;
&lt;br /&gt;
[[ang2cgsppm.m]] - cubic Angstrom units of magnetic susceptibility into CGS ppm.&lt;br /&gt;
&lt;br /&gt;
[[anas2mat.m]] - anisotropy and asymmatry into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[axrh2mat.m]] - axiality and rhombicity into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[castep2nqi.m]] – converts CASTEP EFG tensor (it is printed in atomic units) to NQI tensor in Hz that is required by Spinach.&lt;br /&gt;
&lt;br /&gt;
[[cgsppm2ang.m]] - converts magnetic susceptibility from the cgs-ppm (aka cm^3/mol) units quoted by quantum chemistry packages into Angstrom^3 units required by Spinach pseudocontact shift functionality.&lt;br /&gt;
&lt;br /&gt;
[[conmat.m]] - molecular connectivity matrix.&lt;br /&gt;
&lt;br /&gt;
[[dictum.m]] - overrides interaction strength specifications.&lt;br /&gt;
&lt;br /&gt;
[[dihedral.m]] – calculates the dihedral angle defined by four sets of atomic coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[eeqq2nqi.m]] – converts literature conventions for the quadrupolar interaction specification into a 3x3 matrix in Hz.&lt;br /&gt;
&lt;br /&gt;
[[frac2cart.m]] – converts fractional crystallographic coordinates to Cartesian coordinates.&lt;br /&gt;
&lt;br /&gt;
[[g2freq.m]] - g-tensor units into frequencies.&lt;br /&gt;
&lt;br /&gt;
[[gauss2mhz.m]] – converts hyperfine coupling tensors from Gauss to MHz.&lt;br /&gt;
&lt;br /&gt;
[[hartree2joule.m]] – converts Hartree energy units to Joules.&lt;br /&gt;
&lt;br /&gt;
[[hz2icm.m]] - Hz units of energy into inverse centimetres.&lt;br /&gt;
&lt;br /&gt;
[[mat2axrh.m]] - axiality and rhombicity from a 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[mhz2gauss.m]] - converts hyperfine couplings from MHz into Gauss.&lt;br /&gt;
&lt;br /&gt;
[[mt2hz.m]] – converts hyperfine tensors from milliTesla to Hz.&lt;br /&gt;
&lt;br /&gt;
[[spsk2mat.m]] - span and skew into a 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[tsm2param.m]] - traceless symmetric matrix into axiality, asymmetry, and Euler angles.&lt;br /&gt;
&lt;br /&gt;
[[xyz2dd.m]] – converts coordinates and periodic boundary conditions into 3x3 dipolar coupling matrices.&lt;br /&gt;
&lt;br /&gt;
[[zfs2mat.m]] - converts D and E zero-field splitting parameters into a diagonal 3x3 spin interaction matrix.&lt;br /&gt;
&lt;br /&gt;
==SU(2) infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[hilb2liouv.m]] – converts Hilbert space operators into Liouville space superoperators or state vectors. See function header for further information.&lt;br /&gt;
&lt;br /&gt;
[[irr_sph_ten.m]] – returns an array of single-spin irreducible spherical tensor operators for a given spin multiplicity. The resulting spherical tensor operators are normalized to obey so(3) and su(2) commutation relations.&lt;br /&gt;
&lt;br /&gt;
[[ist_product_table.m]] - structure coefficient tables for the associateive envelopes of su(mult) algebras.&lt;br /&gt;
&lt;br /&gt;
[[pauli.m]] – Pauli matrices of a spin with user-specified multiplicity.&lt;br /&gt;
&lt;br /&gt;
[[sorensen.m]] - Sorensen bounds.&lt;br /&gt;
&lt;br /&gt;
[[stev2sph.m]] - converts Stevens coefficients into irreducible spherical tensor coefficients.&lt;br /&gt;
&lt;br /&gt;
[[stevens.m]] - extended Stevens operators. &lt;br /&gt;
&lt;br /&gt;
[[p_superop.m]] – right and left side product superoperators.&lt;br /&gt;
&lt;br /&gt;
==SO(3) infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[clebsch_gordan.m]] – Clebsch-Gordan coefficients using arbitrary-precision integer arithmetic.&lt;br /&gt;
&lt;br /&gt;
[[cg_fast.m]] - fast but less accurate Clebsch-Gordan coefficient calculation.&lt;br /&gt;
&lt;br /&gt;
[[logfactorial.m]] - logarithm of the factorial function.&lt;br /&gt;
&lt;br /&gt;
[[mat2sphten.m]] – translates 3x3 interaction tensors into irreducible spherical tensor coefficients.&lt;br /&gt;
&lt;br /&gt;
[[multipack.m]] - packs multipole moments from a linear stream into a cell array by rank.&lt;br /&gt;
&lt;br /&gt;
[[perm_group.m]] – a database of common finite groups.&lt;br /&gt;
&lt;br /&gt;
[[rwalk.m]] - random walk on SO(3).&lt;br /&gt;
&lt;br /&gt;
[[sphten2mat.m]] – irreducible spherical tensor coefficients into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[spher_harmon.m]] – computes spherical harmonics.&lt;br /&gt;
&lt;br /&gt;
[[sle_operators.m]] - Wigner D function basis set and rotation generators.&lt;br /&gt;
&lt;br /&gt;
[[wigner.m]] – Wigner D matrices.&lt;br /&gt;
&lt;br /&gt;
[[wigner_3j.m]] - Wigner 3j-symbols.&lt;br /&gt;
&lt;br /&gt;
[[wigner_6j.m]] - Wigner 6j-symbols.&lt;br /&gt;
&lt;br /&gt;
==Spatial dynamics infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[corrfun.m]] – correlation functions for rotational diffution).&lt;br /&gt;
&lt;br /&gt;
[[fdhess.m]] – finite-difference Hessian operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdkup.m]] – finite-difference Kuprov operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdlap.m]] – finite-difference Laplace operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdmat.m]] – finite-difference operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdvec.m]] – finite-difference operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdweights.m]] – finite difference stencil weights.&lt;br /&gt;
&lt;br /&gt;
[[fpl2phan.m]] – partial trace with respect to spin degrees of freedom applied to a Fokker-Planck state vector.&lt;br /&gt;
&lt;br /&gt;
[[fpl2rho.m]] – partial trace with respect to spatial degrees of freedom applied to a Fokker-Planck state vector.&lt;br /&gt;
&lt;br /&gt;
[[hydrodynamics.m]] - hydrodynamics infrastructure provider.&lt;br /&gt;
&lt;br /&gt;
[[interpmat.m]] – interpolation matrices for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[oscillator.m]] - harmonic oscillator infrastructure provider.&lt;br /&gt;
&lt;br /&gt;
[[overwound.m]] - spatial frequency distribution diagnostics.&lt;br /&gt;
&lt;br /&gt;
[[phan2fpl.m]] – projects a phantom into the Fokker-Planck space.&lt;br /&gt;
&lt;br /&gt;
==State space indexing and manipulation==&lt;br /&gt;
&lt;br /&gt;
[[lin2lm.m]] – converts the linear indexing state specification (used by Spinach to build matrix representations of spin operators) into L,M indexing, where L is the rank and M is the projection quantum number of an irreducible spherical tensor. In the linear indexing convention, the states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection.&lt;br /&gt;
&lt;br /&gt;
[[lm2lin.m]] – converts L,M spin state specification to linear indexing specification used by Spinach to build matrix representations of spin operators. In the linear indexing convention, the states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection.&lt;br /&gt;
&lt;br /&gt;
[[lin2lmn.m]] – converts the linear indexing Wigner function specification (used by Spinach to build matrix representations of rotational diffusion operators) into L,M,N indices that enumerate Wigner matrix elements. In the linear indexing convention, the Wigner functions are listed in the order of increasing L rank. Within each L rank, the functions are listed in the order of decreasing left index, and, for each left index, in the order of decreasing right index.&lt;br /&gt;
&lt;br /&gt;
[[lmn2lin.m]] – converts L,M,N Wigner function specification to linear indexing specification used by Spinach to build matrix representations of rotational diffusion operators. In the linear indexing convention, the Wigner functions are listed in the order of increasing L rank. Within each L rank, the functions are listed in the order of decreasing left index, and, for each left index, in the order of decreasing right index.&lt;br /&gt;
&lt;br /&gt;
[[scomponents.m]] – computes the strongly connected components of a graph. Returns an index for the component number of every vertex in the graph with the given adjacency matrix. Algorithm description is at http://dx.doi.org/10.1137/0201010&lt;br /&gt;
&lt;br /&gt;
[[sinkhole.m]] – designates specific states as sinkholes -- any population reaching them would stay in them forever in a frozen state. This function is only available in sphten-liouv formalism.&lt;br /&gt;
&lt;br /&gt;
[[sparse2csr.m]] – computes a partial Compressed Row Storage transformation for a given Matlab sparse matrix. Only returns the index arrays and ignores the values.&lt;br /&gt;
&lt;br /&gt;
[[path_trace.m]] – Liouvillian path tracing. Treats the user-supplied Liouvillian as the adjacency matrix of a graph, computes the weakly connected subgraphs of that graph and returns a cell array of projectors into the corresponding independently evolving subspaces. This function runs in linear time with respect to the number of non-zeros of a matrix, but provides cubic benefit by effectively block-diagonalizing the Liouvillian.&lt;br /&gt;
&lt;br /&gt;
A significant number of independently evolving or dropped subspaces is often an indication of an overlooked symmetry or a conservation law – it is a good idea to examine  the dropped subspaces and try finding out why they are not being populated.&lt;br /&gt;
The efficiency of the path tracing procedure depends on the choice of the basis set. For the spherical tensor basis sets used in Spinach, there are usually at least two (in some EPR examples), and sometimes over a hundred (in large HSQC examples) independent subspaces, depending on the calculation type and spin interactions present.&lt;br /&gt;
&lt;br /&gt;
[[dfpt.m]] – depth-first path tracing module. Analyses the system connectivity graph and creates a list of all connected subgraphs of up to the user-specified size by crawling the graph in all available directions. Used in the construction of connectivity-adaptive basis sets.&lt;br /&gt;
&lt;br /&gt;
[[svd_shrink.m]] – generates a minimal set of vector-covector pairs for the parallel propagation in Hilbert space.&lt;br /&gt;
&lt;br /&gt;
[[stitch.m]] – runs the stitching stage of bidirectional 3D NMR simulations.&lt;br /&gt;
&lt;br /&gt;
[[zte.m]] – zero track elimination function. Inspects the first few steps in the system trajectory and drops the states that did not get populated to a user-specified tolerance. See Kuprov group publications for further details of this particular approximation.&lt;br /&gt;
&lt;br /&gt;
[[human2opspec.m]] – converts human-readable operator specifications into operators specifications understood by the operator generation functions of Spinach kernel.&lt;br /&gt;
&lt;br /&gt;
==Data analysis and plotting==&lt;br /&gt;
&lt;br /&gt;
[[apodization.m]] – performs free induction decay apodization. Supports 1D, 2D and 3D FIDs.&lt;br /&gt;
&lt;br /&gt;
[[axis_1d.m]] - axis ticks for plotting 1D spectra.&lt;br /&gt;
&lt;br /&gt;
[[crop_2d.m]] - Crops 2D spectra to user-specified ranges.&lt;br /&gt;
&lt;br /&gt;
[[int_2d.m]] – 2D spectral integration utility.&lt;br /&gt;
&lt;br /&gt;
[[molplot.m]] – stick plots of molecules.&lt;br /&gt;
&lt;br /&gt;
[[plot_1d.m]] – 1D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_2d.m]] – 2D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_3d.m]] – 3D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[slice_2d.m]] – displays slices of 2D spectra.&lt;br /&gt;
&lt;br /&gt;
[[mri_2d_plot.m]] - 2D MRI plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[sweep2ticks.m]] – converts spectral sweep width information into a vector of frequency axis ticks.&lt;br /&gt;
&lt;br /&gt;
[[volplot.m]] – volumetric plotting.&lt;br /&gt;
&lt;br /&gt;
[[zoom_3d.m]] - zooming into 3D data cubes.&lt;br /&gt;
&lt;br /&gt;
==Relaxation theory==&lt;br /&gt;
&lt;br /&gt;
[[blinv.m]] - Blicharsky invariants of a matrix.&lt;br /&gt;
&lt;br /&gt;
[[magpump.m]] - phenomenological pumping terms for the relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[ngce.m]] - numerical generalised cumulant expansion.&lt;br /&gt;
&lt;br /&gt;
[[r1csa2tauc.m]] - estimate of rotational correlation time from longitudinal CSA relaxation rate.&lt;br /&gt;
&lt;br /&gt;
[[r2csa2tauc.m]] - estimate of rotational correlation time from transverse CSA relaxation rate.&lt;br /&gt;
&lt;br /&gt;
[[rlx_scalar.m]] - scalar relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[rlx_split.m]] - longitudinal, transverse, and mixed components of a relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[rlx_t1_t2.m]] - extended T1/T2 model relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
== Numerical infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[binpack.m]] - a simple bin packing algorithm.&lt;br /&gt;
&lt;br /&gt;
[[cheap_norm.m]] - matrix norm estimator.&lt;br /&gt;
&lt;br /&gt;
[[clean_up.m]] – sparse matrix clean-up utility.&lt;br /&gt;
&lt;br /&gt;
[[dirdiff.m]] – directional derivatives of matrix exponentials.&lt;br /&gt;
&lt;br /&gt;
[[eigenfields.m]] - eigenfields solver.&lt;br /&gt;
&lt;br /&gt;
[[eigentracks.m]] - eigenvalue tracks for matrix parameter scans. &lt;br /&gt;
&lt;br /&gt;
[[expdrop.m]] - Exponential drop function.&lt;br /&gt;
&lt;br /&gt;
[[expmint.m]] – matrix exponential integrals.&lt;br /&gt;
&lt;br /&gt;
[[fftdiff.m]] - Fourier spectral differentiation kernel.&lt;br /&gt;
&lt;br /&gt;
[[fourdif.m]] - Fourier spectral differentiation matrices.&lt;br /&gt;
&lt;br /&gt;
[[fourlap.m]] - Fourier spectral Laplacian.&lt;br /&gt;
&lt;br /&gt;
[[frob_chop.m]] - Truncates SVD decomposition to the user-specified threshold in the Frobenius norm.&lt;br /&gt;
&lt;br /&gt;
[[gaussfun.m]] - Normalized Gaussian function in magnetic resonance notation.&lt;br /&gt;
&lt;br /&gt;
[[hdot.m]] – Hadamard matrix product.&lt;br /&gt;
&lt;br /&gt;
[[issquare.m]] - returns true for square matrices.&lt;br /&gt;
&lt;br /&gt;
[[jacobianest.m]] - numerical Jacobian estimation.&lt;br /&gt;
&lt;br /&gt;
[[krondelta.m]] – Kronecker&amp;#039;s delta symbol.&lt;br /&gt;
&lt;br /&gt;
[[lorentzfun.m]] - Normalized Lorentzian function in magnetic resonance notation.&lt;br /&gt;
&lt;br /&gt;
[[md5_hash.m]] – returns MD5 hashes of matrices.&lt;br /&gt;
&lt;br /&gt;
[[mprealloc.m]] – preallocates an operator in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[picks.m]] - all picks of the specified number of elements from the vector provided, without repetitions.&lt;br /&gt;
&lt;br /&gt;
[[unit_oper.m]] – returns a unit operator in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[unit_state.m]] – returns a unit state in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[snormpdf.m]] - Azzalini&amp;#039;s skew normal distribution.&lt;br /&gt;
&lt;br /&gt;
==Integration grids==&lt;br /&gt;
&lt;br /&gt;
[[gaussleg.m]] - Gauss-Legendre quadrature grids and weights.&lt;br /&gt;
&lt;br /&gt;
[[get_hull.m]] - generates a convex hull of a two-angle grid for 2D surface plotting.&lt;br /&gt;
&lt;br /&gt;
[[grid_kron.m]] - spherical grid direct product.&lt;br /&gt;
&lt;br /&gt;
[[grid_test.m]] - plots grid integration quality as a function of spherical rank.&lt;br /&gt;
&lt;br /&gt;
[[repulsion.m]] - generates REPULSION grids on a unit hypersphere.&lt;br /&gt;
&lt;br /&gt;
[[shrewd.m]] - computes SHREWD weights for a given two- or three-angle spherical grid.&lt;br /&gt;
&lt;br /&gt;
[[zfs_sampling.m]] - returns optimal ZFS distribution integration information.&lt;br /&gt;
&lt;br /&gt;
==Housekeeping functions==&lt;br /&gt;
&lt;br /&gt;
[[banner.m]] - prints console banners.&lt;br /&gt;
&lt;br /&gt;
[[dipolar.m]] – converts coordinates into dipolar coupling tensors. This function is called by Spinach kernel and should not be used directly.&lt;br /&gt;
&lt;br /&gt;
[[existentials.m]] – kernel integrity control, checks for function name collisions.&lt;br /&gt;
&lt;br /&gt;
[[exorcise.m]] - enforces the house style on the &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; code base.&lt;br /&gt;
&lt;br /&gt;
[[iseye.m]] - returns true for unit matrices.&lt;br /&gt;
&lt;br /&gt;
[[isworkernode.m]] - returns true if running on a parallel worker node.&lt;br /&gt;
&lt;br /&gt;
[[pad.m]] – pads character strings with spaces.&lt;br /&gt;
&lt;br /&gt;
[[poolsize.m]] - returns current parallel pool size.&lt;br /&gt;
&lt;br /&gt;
[[rearm.m]] - kernel integrity control, rearms the sniffer.&lt;br /&gt;
&lt;br /&gt;
[[report.m]] – Spinach kernel user feedback function, should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[sniff.m]] - kernel integrity control, kernel code modification sniffer.&lt;br /&gt;
&lt;br /&gt;
[[smack.m]] - forcibly shuts down the parallel pool and clears the workspace.&lt;br /&gt;
&lt;br /&gt;
[[summary.m]] – prints various summaries for Spinach kernel. Should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[symmetry.m]] - Symmetry treatment. This is a service function of the Spinach kernel that should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[tolerances.m]] – tolerance information for Spinach kernel. Should not be called directly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Dictum.m&amp;diff=3779</id>
		<title>Dictum.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Dictum.m&amp;diff=3779"/>
		<updated>2019-01-12T15:58:05Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:dictum.m}} __NOTOC__&lt;br /&gt;
Overrides default assumptions about interaction terms surviving rotating frame transformations.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     spin_system=dictum(spin_system,spins,strength)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
     spin_system   - Spinach spin system information &lt;br /&gt;
                     object coming out of assume.m&lt;br /&gt;
 &lt;br /&gt;
     spins         - a vector with two numbers, or a &lt;br /&gt;
                     cell array with two strings, e.g.&lt;br /&gt;
                     [2 4] or {&amp;#039;1H&amp;#039;,&amp;#039;1H&amp;#039;}&lt;br /&gt;
 &lt;br /&gt;
     strength      - new strength specification, see&lt;br /&gt;
                     the source code of [[assume.m]] for&lt;br /&gt;
                     the available strength specs&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     spin_system   - updated Spinach spin system in-&lt;br /&gt;
                     formation object that will be&lt;br /&gt;
                     used by [[hamiltonian.m]] to build&lt;br /&gt;
                     the Hamiltonian&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[assume.m]], [[rotframe.m]], [[carrier.m]], [[expmint.m]], [[intrep.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Damien Jeannerat]], [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Dictum.m&amp;diff=3778</id>
		<title>Dictum.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Dictum.m&amp;diff=3778"/>
		<updated>2019-01-12T15:57:04Z</updated>

		<summary type="html">&lt;p&gt;Admin: Created page with &amp;quot;{{DISPLAYTITLE:dictum.m}} __NOTOC__ Overrides default assumptions about interaction terms surviving rotating frame transformations.  ==Syntax==       spin_system=dictum(spin_s...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:dictum.m}} __NOTOC__&lt;br /&gt;
Overrides default assumptions about interaction terms surviving rotating frame transformations.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     spin_system=dictum(spin_system,spins,strength)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
     spin_system   - Spinach spin system information &lt;br /&gt;
                     object coming out of assume.m&lt;br /&gt;
 &lt;br /&gt;
     spins         - a vector with two numbers, or a &lt;br /&gt;
                     cell array with two strings, e.g.&lt;br /&gt;
                     [2 4] or {&amp;#039;1H&amp;#039;,&amp;#039;1H&amp;#039;}&lt;br /&gt;
 &lt;br /&gt;
     strength      - new strength specification, see&lt;br /&gt;
                     [[assume.m]] for the available&lt;br /&gt;
                     strength specifications&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     spin_system   - updated Spinach spin system in-&lt;br /&gt;
                     formation object that will be&lt;br /&gt;
                     used by [[hamiltonian.m]] to build&lt;br /&gt;
                     the Hamiltonian&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[assume.m]], [[rotframe.m]], [[carrier.m]], [[expmint.m]], [[intrep.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Damien Jeannerat]], [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Eigenfields.m&amp;diff=3777</id>
		<title>Eigenfields.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Eigenfields.m&amp;diff=3777"/>
		<updated>2019-01-12T15:47:22Z</updated>

		<summary type="html">&lt;p&gt;Admin: Created page with &amp;quot;{{DISPLAYTITLE:eigenfields.m}} __NOTOC__ Computes resonance fields. For a Hamiltonian Hc+b*Hz, returns all magnetic fields b for which the difference between any two eigenvalu...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:eigenfields.m}} __NOTOC__&lt;br /&gt;
Computes resonance fields. For a Hamiltonian Hc+b*Hz, returns all magnetic fields b for which the difference between any two eigenvalues of Hc+b*Hz is equal to omega.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     [b,uv]=eigenfields(Hc,Hz,omega,window)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
     Hc     -  laboratory frame Hamiltonian commutation &lt;br /&gt;
               superoperator containing all spin-spin&lt;br /&gt;
               couplings, but no Zeeman interactions&lt;br /&gt;
 &lt;br /&gt;
     Hz     -  laboratory frame Hamiltonian commutation &lt;br /&gt;
               superoperator containing Zeeman interac-&lt;br /&gt;
               tions at 1 Tesla&lt;br /&gt;
 &lt;br /&gt;
     omega  -  resonance frequency in rad/s&lt;br /&gt;
 &lt;br /&gt;
     window -  frequency window to consider, a vector &lt;br /&gt;
               with two elements, rad/s&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     b      -  vector of magnetic fields in Tesla&lt;br /&gt;
 &lt;br /&gt;
     uv     -  a matrix of |u&amp;gt;&amp;lt;v| dyadics where |u&amp;gt; &lt;br /&gt;
               and |v&amp;gt; are separated by omega under&lt;br /&gt;
               Hc+b*Hz&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
A very expensive and barely stable generalised eigensolver supplied with Matlab is used.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[eigentracks.m]], [[fieldsweep.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Kernel_utilities&amp;diff=3776</id>
		<title>Kernel utilities</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Kernel_utilities&amp;diff=3776"/>
		<updated>2019-01-12T15:37:02Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Numerical infrastructure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section provides brief list of the functionality found in the kernel utilities folder, in alphabetic order. Service functions that have no physical or algebraic applications are not listed. Details of usage, input and output are given in the function headers.&lt;br /&gt;
&lt;br /&gt;
==Reference data==&lt;br /&gt;
&lt;br /&gt;
[[spin.m]] - multiplicities and magnetogyric ratios for most isotopes in the periodic table.&lt;br /&gt;
&lt;br /&gt;
==Spin system editing==&lt;br /&gt;
&lt;br /&gt;
[[chemshifts.m]] - returns chemical shifts for all spins.&lt;br /&gt;
&lt;br /&gt;
[[cubic_lattice.m]] - generates a cubic lattice of spins.&lt;br /&gt;
&lt;br /&gt;
[[dilute.m]] – splits the spin system into independent subsystems, each containing only one instance of a &amp;quot;dilute&amp;quot; isotope.&lt;br /&gt;
&lt;br /&gt;
[[gtensorof.m]] - returns the g-tensor of the specified spin.&lt;br /&gt;
&lt;br /&gt;
[[isnucleus.m]] - true of the particle is a nucleus known to &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
[[kill_spin.m]] – removes the specified spins from the spin_system structure and updates all internal structures accordingly.&lt;br /&gt;
&lt;br /&gt;
[[shift_iso.m]] – replaces the isotropic parts of interaction tensors with user-supplied values.&lt;br /&gt;
&lt;br /&gt;
==Rotations==&lt;br /&gt;
&lt;br /&gt;
See the section on [[rotation conventions]] for the details of how rotations are stored and manipulated inside Spinach kernel.&lt;br /&gt;
&lt;br /&gt;
[[anax2dcm.m]] – converts angle-axis rotation parameters to directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[anax2quat.m]] – converts angle-axis rotation parameters into a quaternion.&lt;br /&gt;
&lt;br /&gt;
[[dcm2euler.m]] – converts a directional cosine matrix into Euler angles.&lt;br /&gt;
&lt;br /&gt;
[[dcm2quat.m]] – converts a directional cosine matrix into a quaternion.&lt;br /&gt;
&lt;br /&gt;
[[dcm2wigner.m]] – converts a directional cosine matrix into a Wigner matrix. &lt;br /&gt;
&lt;br /&gt;
[[euler2dcm.m]] – converts Euler angles into directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[rotor_stack.m]] - a rotor stack of Liouvillians or Hamiltonians.&lt;br /&gt;
&lt;br /&gt;
[[wigner.m]] – converts Euler angles into Wigner rotation matrix.&lt;br /&gt;
&lt;br /&gt;
[[quat2anax.m]] – converts a quaternion into an angle-axis specification.&lt;br /&gt;
&lt;br /&gt;
[[quat2dcm.m]] – converts a quaternion into a directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[xyz2sph.m]] - Cartesian into spherical coordinates.&lt;br /&gt;
&lt;br /&gt;
==Interaction specification conventions==&lt;br /&gt;
&lt;br /&gt;
[[ang2cgsppm.m]] - cubic Angstrom units of magnetic susceptibility into CGS ppm.&lt;br /&gt;
&lt;br /&gt;
[[anas2mat.m]] - anisotropy and asymmatry into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[axrh2mat.m]] - axiality and rhombicity into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[castep2nqi.m]] – converts CASTEP EFG tensor (it is printed in atomic units) to NQI tensor in Hz that is required by Spinach.&lt;br /&gt;
&lt;br /&gt;
[[cgsppm2ang.m]] - converts magnetic susceptibility from the cgs-ppm (aka cm^3/mol) units quoted by quantum chemistry packages into Angstrom^3 units required by Spinach pseudocontact shift functionality.&lt;br /&gt;
&lt;br /&gt;
[[conmat.m]] - molecular connectivity matrix.&lt;br /&gt;
&lt;br /&gt;
[[dihedral.m]] – calculates the dihedral angle defined by four sets of atomic coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[eeqq2nqi.m]] – converts literature conventions for the quadrupolar interaction specification into a 3x3 matrix in Hz.&lt;br /&gt;
&lt;br /&gt;
[[frac2cart.m]] – converts fractional crystallographic coordinates to Cartesian coordinates.&lt;br /&gt;
&lt;br /&gt;
[[g2freq.m]] - g-tensor units into frequencies.&lt;br /&gt;
&lt;br /&gt;
[[gauss2mhz.m]] – converts hyperfine coupling tensors from Gauss to MHz.&lt;br /&gt;
&lt;br /&gt;
[[hartree2joule.m]] – converts Hartree energy units to Joules.&lt;br /&gt;
&lt;br /&gt;
[[hz2icm.m]] - Hz units of energy into inverse centimetres.&lt;br /&gt;
&lt;br /&gt;
[[mat2axrh.m]] - axiality and rhombicity from a 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[mhz2gauss.m]] - converts hyperfine couplings from MHz into Gauss.&lt;br /&gt;
&lt;br /&gt;
[[mt2hz.m]] – converts hyperfine tensors from milliTesla to Hz.&lt;br /&gt;
&lt;br /&gt;
[[spsk2mat.m]] - span and skew into a 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[tsm2param.m]] - traceless symmetric matrix into axiality, asymmetry, and Euler angles.&lt;br /&gt;
&lt;br /&gt;
[[xyz2dd.m]] – converts coordinates and periodic boundary conditions into 3x3 dipolar coupling matrices.&lt;br /&gt;
&lt;br /&gt;
[[zfs2mat.m]] - converts D and E zero-field splitting parameters into a diagonal 3x3 spin interaction matrix.&lt;br /&gt;
&lt;br /&gt;
==SU(2) infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[hilb2liouv.m]] – converts Hilbert space operators into Liouville space superoperators or state vectors. See function header for further information.&lt;br /&gt;
&lt;br /&gt;
[[irr_sph_ten.m]] – returns an array of single-spin irreducible spherical tensor operators for a given spin multiplicity. The resulting spherical tensor operators are normalized to obey so(3) and su(2) commutation relations.&lt;br /&gt;
&lt;br /&gt;
[[ist_product_table.m]] - structure coefficient tables for the associateive envelopes of su(mult) algebras.&lt;br /&gt;
&lt;br /&gt;
[[pauli.m]] – Pauli matrices of a spin with user-specified multiplicity.&lt;br /&gt;
&lt;br /&gt;
[[sorensen.m]] - Sorensen bounds.&lt;br /&gt;
&lt;br /&gt;
[[stev2sph.m]] - converts Stevens coefficients into irreducible spherical tensor coefficients.&lt;br /&gt;
&lt;br /&gt;
[[stevens.m]] - extended Stevens operators. &lt;br /&gt;
&lt;br /&gt;
[[p_superop.m]] – right and left side product superoperators.&lt;br /&gt;
&lt;br /&gt;
==SO(3) infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[clebsch_gordan.m]] – Clebsch-Gordan coefficients using arbitrary-precision integer arithmetic.&lt;br /&gt;
&lt;br /&gt;
[[cg_fast.m]] - fast but less accurate Clebsch-Gordan coefficient calculation.&lt;br /&gt;
&lt;br /&gt;
[[logfactorial.m]] - logarithm of the factorial function.&lt;br /&gt;
&lt;br /&gt;
[[mat2sphten.m]] – translates 3x3 interaction tensors into irreducible spherical tensor coefficients.&lt;br /&gt;
&lt;br /&gt;
[[multipack.m]] - packs multipole moments from a linear stream into a cell array by rank.&lt;br /&gt;
&lt;br /&gt;
[[perm_group.m]] – a database of common finite groups.&lt;br /&gt;
&lt;br /&gt;
[[rwalk.m]] - random walk on SO(3).&lt;br /&gt;
&lt;br /&gt;
[[sphten2mat.m]] – irreducible spherical tensor coefficients into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[spher_harmon.m]] – computes spherical harmonics.&lt;br /&gt;
&lt;br /&gt;
[[sle_operators.m]] - Wigner D function basis set and rotation generators.&lt;br /&gt;
&lt;br /&gt;
[[wigner.m]] – Wigner D matrices.&lt;br /&gt;
&lt;br /&gt;
[[wigner_3j.m]] - Wigner 3j-symbols.&lt;br /&gt;
&lt;br /&gt;
[[wigner_6j.m]] - Wigner 6j-symbols.&lt;br /&gt;
&lt;br /&gt;
==Spatial dynamics infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[corrfun.m]] – correlation functions for rotational diffution).&lt;br /&gt;
&lt;br /&gt;
[[fdhess.m]] – finite-difference Hessian operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdkup.m]] – finite-difference Kuprov operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdlap.m]] – finite-difference Laplace operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdmat.m]] – finite-difference operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdvec.m]] – finite-difference operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdweights.m]] – finite difference stencil weights.&lt;br /&gt;
&lt;br /&gt;
[[fpl2phan.m]] – partial trace with respect to spin degrees of freedom applied to a Fokker-Planck state vector.&lt;br /&gt;
&lt;br /&gt;
[[fpl2rho.m]] – partial trace with respect to spatial degrees of freedom applied to a Fokker-Planck state vector.&lt;br /&gt;
&lt;br /&gt;
[[hydrodynamics.m]] - hydrodynamics infrastructure provider.&lt;br /&gt;
&lt;br /&gt;
[[interpmat.m]] – interpolation matrices for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[oscillator.m]] - harmonic oscillator infrastructure provider.&lt;br /&gt;
&lt;br /&gt;
[[overwound.m]] - spatial frequency distribution diagnostics.&lt;br /&gt;
&lt;br /&gt;
[[phan2fpl.m]] – projects a phantom into the Fokker-Planck space.&lt;br /&gt;
&lt;br /&gt;
==State space indexing and manipulation==&lt;br /&gt;
&lt;br /&gt;
[[lin2lm.m]] – converts the linear indexing state specification (used by Spinach to build matrix representations of spin operators) into L,M indexing, where L is the rank and M is the projection quantum number of an irreducible spherical tensor. In the linear indexing convention, the states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection.&lt;br /&gt;
&lt;br /&gt;
[[lm2lin.m]] – converts L,M spin state specification to linear indexing specification used by Spinach to build matrix representations of spin operators. In the linear indexing convention, the states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection.&lt;br /&gt;
&lt;br /&gt;
[[lin2lmn.m]] – converts the linear indexing Wigner function specification (used by Spinach to build matrix representations of rotational diffusion operators) into L,M,N indices that enumerate Wigner matrix elements. In the linear indexing convention, the Wigner functions are listed in the order of increasing L rank. Within each L rank, the functions are listed in the order of decreasing left index, and, for each left index, in the order of decreasing right index.&lt;br /&gt;
&lt;br /&gt;
[[lmn2lin.m]] – converts L,M,N Wigner function specification to linear indexing specification used by Spinach to build matrix representations of rotational diffusion operators. In the linear indexing convention, the Wigner functions are listed in the order of increasing L rank. Within each L rank, the functions are listed in the order of decreasing left index, and, for each left index, in the order of decreasing right index.&lt;br /&gt;
&lt;br /&gt;
[[scomponents.m]] – computes the strongly connected components of a graph. Returns an index for the component number of every vertex in the graph with the given adjacency matrix. Algorithm description is at http://dx.doi.org/10.1137/0201010&lt;br /&gt;
&lt;br /&gt;
[[sinkhole.m]] – designates specific states as sinkholes -- any population reaching them would stay in them forever in a frozen state. This function is only available in sphten-liouv formalism.&lt;br /&gt;
&lt;br /&gt;
[[sparse2csr.m]] – computes a partial Compressed Row Storage transformation for a given Matlab sparse matrix. Only returns the index arrays and ignores the values.&lt;br /&gt;
&lt;br /&gt;
[[path_trace.m]] – Liouvillian path tracing. Treats the user-supplied Liouvillian as the adjacency matrix of a graph, computes the weakly connected subgraphs of that graph and returns a cell array of projectors into the corresponding independently evolving subspaces. This function runs in linear time with respect to the number of non-zeros of a matrix, but provides cubic benefit by effectively block-diagonalizing the Liouvillian.&lt;br /&gt;
&lt;br /&gt;
A significant number of independently evolving or dropped subspaces is often an indication of an overlooked symmetry or a conservation law – it is a good idea to examine  the dropped subspaces and try finding out why they are not being populated.&lt;br /&gt;
The efficiency of the path tracing procedure depends on the choice of the basis set. For the spherical tensor basis sets used in Spinach, there are usually at least two (in some EPR examples), and sometimes over a hundred (in large HSQC examples) independent subspaces, depending on the calculation type and spin interactions present.&lt;br /&gt;
&lt;br /&gt;
[[dfpt.m]] – depth-first path tracing module. Analyses the system connectivity graph and creates a list of all connected subgraphs of up to the user-specified size by crawling the graph in all available directions. Used in the construction of connectivity-adaptive basis sets.&lt;br /&gt;
&lt;br /&gt;
[[svd_shrink.m]] – generates a minimal set of vector-covector pairs for the parallel propagation in Hilbert space.&lt;br /&gt;
&lt;br /&gt;
[[stitch.m]] – runs the stitching stage of bidirectional 3D NMR simulations.&lt;br /&gt;
&lt;br /&gt;
[[zte.m]] – zero track elimination function. Inspects the first few steps in the system trajectory and drops the states that did not get populated to a user-specified tolerance. See Kuprov group publications for further details of this particular approximation.&lt;br /&gt;
&lt;br /&gt;
[[human2opspec.m]] – converts human-readable operator specifications into operators specifications understood by the operator generation functions of Spinach kernel.&lt;br /&gt;
&lt;br /&gt;
==Data analysis and plotting==&lt;br /&gt;
&lt;br /&gt;
[[apodization.m]] – performs free induction decay apodization. Supports 1D, 2D and 3D FIDs.&lt;br /&gt;
&lt;br /&gt;
[[axis_1d.m]] - axis ticks for plotting 1D spectra.&lt;br /&gt;
&lt;br /&gt;
[[crop_2d.m]] - Crops 2D spectra to user-specified ranges.&lt;br /&gt;
&lt;br /&gt;
[[int_2d.m]] – 2D spectral integration utility.&lt;br /&gt;
&lt;br /&gt;
[[molplot.m]] – stick plots of molecules.&lt;br /&gt;
&lt;br /&gt;
[[plot_1d.m]] – 1D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_2d.m]] – 2D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_3d.m]] – 3D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[slice_2d.m]] – displays slices of 2D spectra.&lt;br /&gt;
&lt;br /&gt;
[[mri_2d_plot.m]] - 2D MRI plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[sweep2ticks.m]] – converts spectral sweep width information into a vector of frequency axis ticks.&lt;br /&gt;
&lt;br /&gt;
[[volplot.m]] – volumetric plotting.&lt;br /&gt;
&lt;br /&gt;
[[zoom_3d.m]] - zooming into 3D data cubes.&lt;br /&gt;
&lt;br /&gt;
==Relaxation theory==&lt;br /&gt;
&lt;br /&gt;
[[blinv.m]] - Blicharsky invariants of a matrix.&lt;br /&gt;
&lt;br /&gt;
[[magpump.m]] - phenomenological pumping terms for the relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[ngce.m]] - numerical generalised cumulant expansion.&lt;br /&gt;
&lt;br /&gt;
[[r1csa2tauc.m]] - estimate of rotational correlation time from longitudinal CSA relaxation rate.&lt;br /&gt;
&lt;br /&gt;
[[r2csa2tauc.m]] - estimate of rotational correlation time from transverse CSA relaxation rate.&lt;br /&gt;
&lt;br /&gt;
[[rlx_scalar.m]] - scalar relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[rlx_split.m]] - longitudinal, transverse, and mixed components of a relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[rlx_t1_t2.m]] - extended T1/T2 model relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
== Numerical infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[binpack.m]] - a simple bin packing algorithm.&lt;br /&gt;
&lt;br /&gt;
[[cheap_norm.m]] - matrix norm estimator.&lt;br /&gt;
&lt;br /&gt;
[[clean_up.m]] – sparse matrix clean-up utility.&lt;br /&gt;
&lt;br /&gt;
[[dirdiff.m]] – directional derivatives of matrix exponentials.&lt;br /&gt;
&lt;br /&gt;
[[eigenfields.m]] - eigenfields solver.&lt;br /&gt;
&lt;br /&gt;
[[eigentracks.m]] - eigenvalue tracks for matrix parameter scans. &lt;br /&gt;
&lt;br /&gt;
[[expdrop.m]] - Exponential drop function.&lt;br /&gt;
&lt;br /&gt;
[[expmint.m]] – matrix exponential integrals.&lt;br /&gt;
&lt;br /&gt;
[[fftdiff.m]] - Fourier spectral differentiation kernel.&lt;br /&gt;
&lt;br /&gt;
[[fourdif.m]] - Fourier spectral differentiation matrices.&lt;br /&gt;
&lt;br /&gt;
[[fourlap.m]] - Fourier spectral Laplacian.&lt;br /&gt;
&lt;br /&gt;
[[frob_chop.m]] - Truncates SVD decomposition to the user-specified threshold in the Frobenius norm.&lt;br /&gt;
&lt;br /&gt;
[[gaussfun.m]] - Normalized Gaussian function in magnetic resonance notation.&lt;br /&gt;
&lt;br /&gt;
[[hdot.m]] – Hadamard matrix product.&lt;br /&gt;
&lt;br /&gt;
[[issquare.m]] - returns true for square matrices.&lt;br /&gt;
&lt;br /&gt;
[[jacobianest.m]] - numerical Jacobian estimation.&lt;br /&gt;
&lt;br /&gt;
[[krondelta.m]] – Kronecker&amp;#039;s delta symbol.&lt;br /&gt;
&lt;br /&gt;
[[lorentzfun.m]] - Normalized Lorentzian function in magnetic resonance notation.&lt;br /&gt;
&lt;br /&gt;
[[md5_hash.m]] – returns MD5 hashes of matrices.&lt;br /&gt;
&lt;br /&gt;
[[mprealloc.m]] – preallocates an operator in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[picks.m]] - all picks of the specified number of elements from the vector provided, without repetitions.&lt;br /&gt;
&lt;br /&gt;
[[unit_oper.m]] – returns a unit operator in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[unit_state.m]] – returns a unit state in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[snormpdf.m]] - Azzalini&amp;#039;s skew normal distribution.&lt;br /&gt;
&lt;br /&gt;
==Integration grids==&lt;br /&gt;
&lt;br /&gt;
[[gaussleg.m]] - Gauss-Legendre quadrature grids and weights.&lt;br /&gt;
&lt;br /&gt;
[[get_hull.m]] - generates a convex hull of a two-angle grid for 2D surface plotting.&lt;br /&gt;
&lt;br /&gt;
[[grid_kron.m]] - spherical grid direct product.&lt;br /&gt;
&lt;br /&gt;
[[grid_test.m]] - plots grid integration quality as a function of spherical rank.&lt;br /&gt;
&lt;br /&gt;
[[repulsion.m]] - generates REPULSION grids on a unit hypersphere.&lt;br /&gt;
&lt;br /&gt;
[[shrewd.m]] - computes SHREWD weights for a given two- or three-angle spherical grid.&lt;br /&gt;
&lt;br /&gt;
[[zfs_sampling.m]] - returns optimal ZFS distribution integration information.&lt;br /&gt;
&lt;br /&gt;
==Housekeeping functions==&lt;br /&gt;
&lt;br /&gt;
[[banner.m]] - prints console banners.&lt;br /&gt;
&lt;br /&gt;
[[dipolar.m]] – converts coordinates into dipolar coupling tensors. This function is called by Spinach kernel and should not be used directly.&lt;br /&gt;
&lt;br /&gt;
[[existentials.m]] – kernel integrity control, checks for function name collisions.&lt;br /&gt;
&lt;br /&gt;
[[exorcise.m]] - enforces the house style on the &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; code base.&lt;br /&gt;
&lt;br /&gt;
[[iseye.m]] - returns true for unit matrices.&lt;br /&gt;
&lt;br /&gt;
[[isworkernode.m]] - returns true if running on a parallel worker node.&lt;br /&gt;
&lt;br /&gt;
[[pad.m]] – pads character strings with spaces.&lt;br /&gt;
&lt;br /&gt;
[[poolsize.m]] - returns current parallel pool size.&lt;br /&gt;
&lt;br /&gt;
[[rearm.m]] - kernel integrity control, rearms the sniffer.&lt;br /&gt;
&lt;br /&gt;
[[report.m]] – Spinach kernel user feedback function, should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[sniff.m]] - kernel integrity control, kernel code modification sniffer.&lt;br /&gt;
&lt;br /&gt;
[[smack.m]] - forcibly shuts down the parallel pool and clears the workspace.&lt;br /&gt;
&lt;br /&gt;
[[summary.m]] – prints various summaries for Spinach kernel. Should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[symmetry.m]] - Symmetry treatment. This is a service function of the Spinach kernel that should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[tolerances.m]] – tolerance information for Spinach kernel. Should not be called directly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Kernel_utilities&amp;diff=3775</id>
		<title>Kernel utilities</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Kernel_utilities&amp;diff=3775"/>
		<updated>2019-01-12T15:36:39Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Numerical infrastructure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section provides brief list of the functionality found in the kernel utilities folder, in alphabetic order. Service functions that have no physical or algebraic applications are not listed. Details of usage, input and output are given in the function headers.&lt;br /&gt;
&lt;br /&gt;
==Reference data==&lt;br /&gt;
&lt;br /&gt;
[[spin.m]] - multiplicities and magnetogyric ratios for most isotopes in the periodic table.&lt;br /&gt;
&lt;br /&gt;
==Spin system editing==&lt;br /&gt;
&lt;br /&gt;
[[chemshifts.m]] - returns chemical shifts for all spins.&lt;br /&gt;
&lt;br /&gt;
[[cubic_lattice.m]] - generates a cubic lattice of spins.&lt;br /&gt;
&lt;br /&gt;
[[dilute.m]] – splits the spin system into independent subsystems, each containing only one instance of a &amp;quot;dilute&amp;quot; isotope.&lt;br /&gt;
&lt;br /&gt;
[[gtensorof.m]] - returns the g-tensor of the specified spin.&lt;br /&gt;
&lt;br /&gt;
[[isnucleus.m]] - true of the particle is a nucleus known to &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
[[kill_spin.m]] – removes the specified spins from the spin_system structure and updates all internal structures accordingly.&lt;br /&gt;
&lt;br /&gt;
[[shift_iso.m]] – replaces the isotropic parts of interaction tensors with user-supplied values.&lt;br /&gt;
&lt;br /&gt;
==Rotations==&lt;br /&gt;
&lt;br /&gt;
See the section on [[rotation conventions]] for the details of how rotations are stored and manipulated inside Spinach kernel.&lt;br /&gt;
&lt;br /&gt;
[[anax2dcm.m]] – converts angle-axis rotation parameters to directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[anax2quat.m]] – converts angle-axis rotation parameters into a quaternion.&lt;br /&gt;
&lt;br /&gt;
[[dcm2euler.m]] – converts a directional cosine matrix into Euler angles.&lt;br /&gt;
&lt;br /&gt;
[[dcm2quat.m]] – converts a directional cosine matrix into a quaternion.&lt;br /&gt;
&lt;br /&gt;
[[dcm2wigner.m]] – converts a directional cosine matrix into a Wigner matrix. &lt;br /&gt;
&lt;br /&gt;
[[euler2dcm.m]] – converts Euler angles into directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[rotor_stack.m]] - a rotor stack of Liouvillians or Hamiltonians.&lt;br /&gt;
&lt;br /&gt;
[[wigner.m]] – converts Euler angles into Wigner rotation matrix.&lt;br /&gt;
&lt;br /&gt;
[[quat2anax.m]] – converts a quaternion into an angle-axis specification.&lt;br /&gt;
&lt;br /&gt;
[[quat2dcm.m]] – converts a quaternion into a directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[xyz2sph.m]] - Cartesian into spherical coordinates.&lt;br /&gt;
&lt;br /&gt;
==Interaction specification conventions==&lt;br /&gt;
&lt;br /&gt;
[[ang2cgsppm.m]] - cubic Angstrom units of magnetic susceptibility into CGS ppm.&lt;br /&gt;
&lt;br /&gt;
[[anas2mat.m]] - anisotropy and asymmatry into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[axrh2mat.m]] - axiality and rhombicity into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[castep2nqi.m]] – converts CASTEP EFG tensor (it is printed in atomic units) to NQI tensor in Hz that is required by Spinach.&lt;br /&gt;
&lt;br /&gt;
[[cgsppm2ang.m]] - converts magnetic susceptibility from the cgs-ppm (aka cm^3/mol) units quoted by quantum chemistry packages into Angstrom^3 units required by Spinach pseudocontact shift functionality.&lt;br /&gt;
&lt;br /&gt;
[[conmat.m]] - molecular connectivity matrix.&lt;br /&gt;
&lt;br /&gt;
[[dihedral.m]] – calculates the dihedral angle defined by four sets of atomic coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[eeqq2nqi.m]] – converts literature conventions for the quadrupolar interaction specification into a 3x3 matrix in Hz.&lt;br /&gt;
&lt;br /&gt;
[[frac2cart.m]] – converts fractional crystallographic coordinates to Cartesian coordinates.&lt;br /&gt;
&lt;br /&gt;
[[g2freq.m]] - g-tensor units into frequencies.&lt;br /&gt;
&lt;br /&gt;
[[gauss2mhz.m]] – converts hyperfine coupling tensors from Gauss to MHz.&lt;br /&gt;
&lt;br /&gt;
[[hartree2joule.m]] – converts Hartree energy units to Joules.&lt;br /&gt;
&lt;br /&gt;
[[hz2icm.m]] - Hz units of energy into inverse centimetres.&lt;br /&gt;
&lt;br /&gt;
[[mat2axrh.m]] - axiality and rhombicity from a 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[mhz2gauss.m]] - converts hyperfine couplings from MHz into Gauss.&lt;br /&gt;
&lt;br /&gt;
[[mt2hz.m]] – converts hyperfine tensors from milliTesla to Hz.&lt;br /&gt;
&lt;br /&gt;
[[spsk2mat.m]] - span and skew into a 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[tsm2param.m]] - traceless symmetric matrix into axiality, asymmetry, and Euler angles.&lt;br /&gt;
&lt;br /&gt;
[[xyz2dd.m]] – converts coordinates and periodic boundary conditions into 3x3 dipolar coupling matrices.&lt;br /&gt;
&lt;br /&gt;
[[zfs2mat.m]] - converts D and E zero-field splitting parameters into a diagonal 3x3 spin interaction matrix.&lt;br /&gt;
&lt;br /&gt;
==SU(2) infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[hilb2liouv.m]] – converts Hilbert space operators into Liouville space superoperators or state vectors. See function header for further information.&lt;br /&gt;
&lt;br /&gt;
[[irr_sph_ten.m]] – returns an array of single-spin irreducible spherical tensor operators for a given spin multiplicity. The resulting spherical tensor operators are normalized to obey so(3) and su(2) commutation relations.&lt;br /&gt;
&lt;br /&gt;
[[ist_product_table.m]] - structure coefficient tables for the associateive envelopes of su(mult) algebras.&lt;br /&gt;
&lt;br /&gt;
[[pauli.m]] – Pauli matrices of a spin with user-specified multiplicity.&lt;br /&gt;
&lt;br /&gt;
[[sorensen.m]] - Sorensen bounds.&lt;br /&gt;
&lt;br /&gt;
[[stev2sph.m]] - converts Stevens coefficients into irreducible spherical tensor coefficients.&lt;br /&gt;
&lt;br /&gt;
[[stevens.m]] - extended Stevens operators. &lt;br /&gt;
&lt;br /&gt;
[[p_superop.m]] – right and left side product superoperators.&lt;br /&gt;
&lt;br /&gt;
==SO(3) infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[clebsch_gordan.m]] – Clebsch-Gordan coefficients using arbitrary-precision integer arithmetic.&lt;br /&gt;
&lt;br /&gt;
[[cg_fast.m]] - fast but less accurate Clebsch-Gordan coefficient calculation.&lt;br /&gt;
&lt;br /&gt;
[[logfactorial.m]] - logarithm of the factorial function.&lt;br /&gt;
&lt;br /&gt;
[[mat2sphten.m]] – translates 3x3 interaction tensors into irreducible spherical tensor coefficients.&lt;br /&gt;
&lt;br /&gt;
[[multipack.m]] - packs multipole moments from a linear stream into a cell array by rank.&lt;br /&gt;
&lt;br /&gt;
[[perm_group.m]] – a database of common finite groups.&lt;br /&gt;
&lt;br /&gt;
[[rwalk.m]] - random walk on SO(3).&lt;br /&gt;
&lt;br /&gt;
[[sphten2mat.m]] – irreducible spherical tensor coefficients into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[spher_harmon.m]] – computes spherical harmonics.&lt;br /&gt;
&lt;br /&gt;
[[sle_operators.m]] - Wigner D function basis set and rotation generators.&lt;br /&gt;
&lt;br /&gt;
[[wigner.m]] – Wigner D matrices.&lt;br /&gt;
&lt;br /&gt;
[[wigner_3j.m]] - Wigner 3j-symbols.&lt;br /&gt;
&lt;br /&gt;
[[wigner_6j.m]] - Wigner 6j-symbols.&lt;br /&gt;
&lt;br /&gt;
==Spatial dynamics infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[corrfun.m]] – correlation functions for rotational diffution).&lt;br /&gt;
&lt;br /&gt;
[[fdhess.m]] – finite-difference Hessian operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdkup.m]] – finite-difference Kuprov operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdlap.m]] – finite-difference Laplace operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdmat.m]] – finite-difference operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdvec.m]] – finite-difference operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdweights.m]] – finite difference stencil weights.&lt;br /&gt;
&lt;br /&gt;
[[fpl2phan.m]] – partial trace with respect to spin degrees of freedom applied to a Fokker-Planck state vector.&lt;br /&gt;
&lt;br /&gt;
[[fpl2rho.m]] – partial trace with respect to spatial degrees of freedom applied to a Fokker-Planck state vector.&lt;br /&gt;
&lt;br /&gt;
[[hydrodynamics.m]] - hydrodynamics infrastructure provider.&lt;br /&gt;
&lt;br /&gt;
[[interpmat.m]] – interpolation matrices for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[oscillator.m]] - harmonic oscillator infrastructure provider.&lt;br /&gt;
&lt;br /&gt;
[[overwound.m]] - spatial frequency distribution diagnostics.&lt;br /&gt;
&lt;br /&gt;
[[phan2fpl.m]] – projects a phantom into the Fokker-Planck space.&lt;br /&gt;
&lt;br /&gt;
==State space indexing and manipulation==&lt;br /&gt;
&lt;br /&gt;
[[lin2lm.m]] – converts the linear indexing state specification (used by Spinach to build matrix representations of spin operators) into L,M indexing, where L is the rank and M is the projection quantum number of an irreducible spherical tensor. In the linear indexing convention, the states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection.&lt;br /&gt;
&lt;br /&gt;
[[lm2lin.m]] – converts L,M spin state specification to linear indexing specification used by Spinach to build matrix representations of spin operators. In the linear indexing convention, the states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection.&lt;br /&gt;
&lt;br /&gt;
[[lin2lmn.m]] – converts the linear indexing Wigner function specification (used by Spinach to build matrix representations of rotational diffusion operators) into L,M,N indices that enumerate Wigner matrix elements. In the linear indexing convention, the Wigner functions are listed in the order of increasing L rank. Within each L rank, the functions are listed in the order of decreasing left index, and, for each left index, in the order of decreasing right index.&lt;br /&gt;
&lt;br /&gt;
[[lmn2lin.m]] – converts L,M,N Wigner function specification to linear indexing specification used by Spinach to build matrix representations of rotational diffusion operators. In the linear indexing convention, the Wigner functions are listed in the order of increasing L rank. Within each L rank, the functions are listed in the order of decreasing left index, and, for each left index, in the order of decreasing right index.&lt;br /&gt;
&lt;br /&gt;
[[scomponents.m]] – computes the strongly connected components of a graph. Returns an index for the component number of every vertex in the graph with the given adjacency matrix. Algorithm description is at http://dx.doi.org/10.1137/0201010&lt;br /&gt;
&lt;br /&gt;
[[sinkhole.m]] – designates specific states as sinkholes -- any population reaching them would stay in them forever in a frozen state. This function is only available in sphten-liouv formalism.&lt;br /&gt;
&lt;br /&gt;
[[sparse2csr.m]] – computes a partial Compressed Row Storage transformation for a given Matlab sparse matrix. Only returns the index arrays and ignores the values.&lt;br /&gt;
&lt;br /&gt;
[[path_trace.m]] – Liouvillian path tracing. Treats the user-supplied Liouvillian as the adjacency matrix of a graph, computes the weakly connected subgraphs of that graph and returns a cell array of projectors into the corresponding independently evolving subspaces. This function runs in linear time with respect to the number of non-zeros of a matrix, but provides cubic benefit by effectively block-diagonalizing the Liouvillian.&lt;br /&gt;
&lt;br /&gt;
A significant number of independently evolving or dropped subspaces is often an indication of an overlooked symmetry or a conservation law – it is a good idea to examine  the dropped subspaces and try finding out why they are not being populated.&lt;br /&gt;
The efficiency of the path tracing procedure depends on the choice of the basis set. For the spherical tensor basis sets used in Spinach, there are usually at least two (in some EPR examples), and sometimes over a hundred (in large HSQC examples) independent subspaces, depending on the calculation type and spin interactions present.&lt;br /&gt;
&lt;br /&gt;
[[dfpt.m]] – depth-first path tracing module. Analyses the system connectivity graph and creates a list of all connected subgraphs of up to the user-specified size by crawling the graph in all available directions. Used in the construction of connectivity-adaptive basis sets.&lt;br /&gt;
&lt;br /&gt;
[[svd_shrink.m]] – generates a minimal set of vector-covector pairs for the parallel propagation in Hilbert space.&lt;br /&gt;
&lt;br /&gt;
[[stitch.m]] – runs the stitching stage of bidirectional 3D NMR simulations.&lt;br /&gt;
&lt;br /&gt;
[[zte.m]] – zero track elimination function. Inspects the first few steps in the system trajectory and drops the states that did not get populated to a user-specified tolerance. See Kuprov group publications for further details of this particular approximation.&lt;br /&gt;
&lt;br /&gt;
[[human2opspec.m]] – converts human-readable operator specifications into operators specifications understood by the operator generation functions of Spinach kernel.&lt;br /&gt;
&lt;br /&gt;
==Data analysis and plotting==&lt;br /&gt;
&lt;br /&gt;
[[apodization.m]] – performs free induction decay apodization. Supports 1D, 2D and 3D FIDs.&lt;br /&gt;
&lt;br /&gt;
[[axis_1d.m]] - axis ticks for plotting 1D spectra.&lt;br /&gt;
&lt;br /&gt;
[[crop_2d.m]] - Crops 2D spectra to user-specified ranges.&lt;br /&gt;
&lt;br /&gt;
[[int_2d.m]] – 2D spectral integration utility.&lt;br /&gt;
&lt;br /&gt;
[[molplot.m]] – stick plots of molecules.&lt;br /&gt;
&lt;br /&gt;
[[plot_1d.m]] – 1D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_2d.m]] – 2D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_3d.m]] – 3D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[slice_2d.m]] – displays slices of 2D spectra.&lt;br /&gt;
&lt;br /&gt;
[[mri_2d_plot.m]] - 2D MRI plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[sweep2ticks.m]] – converts spectral sweep width information into a vector of frequency axis ticks.&lt;br /&gt;
&lt;br /&gt;
[[volplot.m]] – volumetric plotting.&lt;br /&gt;
&lt;br /&gt;
[[zoom_3d.m]] - zooming into 3D data cubes.&lt;br /&gt;
&lt;br /&gt;
==Relaxation theory==&lt;br /&gt;
&lt;br /&gt;
[[blinv.m]] - Blicharsky invariants of a matrix.&lt;br /&gt;
&lt;br /&gt;
[[magpump.m]] - phenomenological pumping terms for the relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[ngce.m]] - numerical generalised cumulant expansion.&lt;br /&gt;
&lt;br /&gt;
[[r1csa2tauc.m]] - estimate of rotational correlation time from longitudinal CSA relaxation rate.&lt;br /&gt;
&lt;br /&gt;
[[r2csa2tauc.m]] - estimate of rotational correlation time from transverse CSA relaxation rate.&lt;br /&gt;
&lt;br /&gt;
[[rlx_scalar.m]] - scalar relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[rlx_split.m]] - longitudinal, transverse, and mixed components of a relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[rlx_t1_t2.m]] - extended T1/T2 model relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
== Numerical infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[binpack.m]] - a simple bin packing algorithm.&lt;br /&gt;
&lt;br /&gt;
[[cheap_norm.m]] - matrix norm estimator.&lt;br /&gt;
&lt;br /&gt;
[[clean_up.m]] – sparse matrix clean-up utility.&lt;br /&gt;
&lt;br /&gt;
[[dirdiff.m]] – directional derivatives of matrix exponentials.&lt;br /&gt;
&lt;br /&gt;
[[eigentracks.m]] - eigenvalue tracks for matrix parameter scans. &lt;br /&gt;
&lt;br /&gt;
[[expdrop.m]] - Exponential drop function.&lt;br /&gt;
&lt;br /&gt;
[[expmint.m]] – matrix exponential integrals.&lt;br /&gt;
&lt;br /&gt;
[[fftdiff.m]] - Fourier spectral differentiation kernel.&lt;br /&gt;
&lt;br /&gt;
[[fourdif.m]] - Fourier spectral differentiation matrices.&lt;br /&gt;
&lt;br /&gt;
[[fourlap.m]] - Fourier spectral Laplacian.&lt;br /&gt;
&lt;br /&gt;
[[frob_chop.m]] - Truncates SVD decomposition to the user-specified threshold in the Frobenius norm.&lt;br /&gt;
&lt;br /&gt;
[[gaussfun.m]] - Normalized Gaussian function in magnetic resonance notation.&lt;br /&gt;
&lt;br /&gt;
[[hdot.m]] – Hadamard matrix product.&lt;br /&gt;
&lt;br /&gt;
[[issquare.m]] - returns true for square matrices.&lt;br /&gt;
&lt;br /&gt;
[[jacobianest.m]] - numerical Jacobian estimation.&lt;br /&gt;
&lt;br /&gt;
[[krondelta.m]] – Kronecker&amp;#039;s delta symbol.&lt;br /&gt;
&lt;br /&gt;
[[lorentzfun.m]] - Normalized Lorentzian function in magnetic resonance notation.&lt;br /&gt;
&lt;br /&gt;
[[md5_hash.m]] – returns MD5 hashes of matrices.&lt;br /&gt;
&lt;br /&gt;
[[mprealloc.m]] – preallocates an operator in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[picks.m]] - all picks of the specified number of elements from the vector provided, without repetitions.&lt;br /&gt;
&lt;br /&gt;
[[unit_oper.m]] – returns a unit operator in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[unit_state.m]] – returns a unit state in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[snormpdf.m]] - Azzalini&amp;#039;s skew normal distribution.&lt;br /&gt;
&lt;br /&gt;
==Integration grids==&lt;br /&gt;
&lt;br /&gt;
[[gaussleg.m]] - Gauss-Legendre quadrature grids and weights.&lt;br /&gt;
&lt;br /&gt;
[[get_hull.m]] - generates a convex hull of a two-angle grid for 2D surface plotting.&lt;br /&gt;
&lt;br /&gt;
[[grid_kron.m]] - spherical grid direct product.&lt;br /&gt;
&lt;br /&gt;
[[grid_test.m]] - plots grid integration quality as a function of spherical rank.&lt;br /&gt;
&lt;br /&gt;
[[repulsion.m]] - generates REPULSION grids on a unit hypersphere.&lt;br /&gt;
&lt;br /&gt;
[[shrewd.m]] - computes SHREWD weights for a given two- or three-angle spherical grid.&lt;br /&gt;
&lt;br /&gt;
[[zfs_sampling.m]] - returns optimal ZFS distribution integration information.&lt;br /&gt;
&lt;br /&gt;
==Housekeeping functions==&lt;br /&gt;
&lt;br /&gt;
[[banner.m]] - prints console banners.&lt;br /&gt;
&lt;br /&gt;
[[dipolar.m]] – converts coordinates into dipolar coupling tensors. This function is called by Spinach kernel and should not be used directly.&lt;br /&gt;
&lt;br /&gt;
[[existentials.m]] – kernel integrity control, checks for function name collisions.&lt;br /&gt;
&lt;br /&gt;
[[exorcise.m]] - enforces the house style on the &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; code base.&lt;br /&gt;
&lt;br /&gt;
[[iseye.m]] - returns true for unit matrices.&lt;br /&gt;
&lt;br /&gt;
[[isworkernode.m]] - returns true if running on a parallel worker node.&lt;br /&gt;
&lt;br /&gt;
[[pad.m]] – pads character strings with spaces.&lt;br /&gt;
&lt;br /&gt;
[[poolsize.m]] - returns current parallel pool size.&lt;br /&gt;
&lt;br /&gt;
[[rearm.m]] - kernel integrity control, rearms the sniffer.&lt;br /&gt;
&lt;br /&gt;
[[report.m]] – Spinach kernel user feedback function, should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[sniff.m]] - kernel integrity control, kernel code modification sniffer.&lt;br /&gt;
&lt;br /&gt;
[[smack.m]] - forcibly shuts down the parallel pool and clears the workspace.&lt;br /&gt;
&lt;br /&gt;
[[summary.m]] – prints various summaries for Spinach kernel. Should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[symmetry.m]] - Symmetry treatment. This is a service function of the Spinach kernel that should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[tolerances.m]] – tolerance information for Spinach kernel. Should not be called directly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Kernel_utilities&amp;diff=3773</id>
		<title>Kernel utilities</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Kernel_utilities&amp;diff=3773"/>
		<updated>2019-01-12T15:28:15Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Housekeeping functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section provides brief list of the functionality found in the kernel utilities folder, in alphabetic order. Service functions that have no physical or algebraic applications are not listed. Details of usage, input and output are given in the function headers.&lt;br /&gt;
&lt;br /&gt;
==Reference data==&lt;br /&gt;
&lt;br /&gt;
[[spin.m]] - multiplicities and magnetogyric ratios for most isotopes in the periodic table.&lt;br /&gt;
&lt;br /&gt;
==Spin system editing==&lt;br /&gt;
&lt;br /&gt;
[[chemshifts.m]] - returns chemical shifts for all spins.&lt;br /&gt;
&lt;br /&gt;
[[cubic_lattice.m]] - generates a cubic lattice of spins.&lt;br /&gt;
&lt;br /&gt;
[[dilute.m]] – splits the spin system into independent subsystems, each containing only one instance of a &amp;quot;dilute&amp;quot; isotope.&lt;br /&gt;
&lt;br /&gt;
[[gtensorof.m]] - returns the g-tensor of the specified spin.&lt;br /&gt;
&lt;br /&gt;
[[isnucleus.m]] - true of the particle is a nucleus known to &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
[[kill_spin.m]] – removes the specified spins from the spin_system structure and updates all internal structures accordingly.&lt;br /&gt;
&lt;br /&gt;
[[shift_iso.m]] – replaces the isotropic parts of interaction tensors with user-supplied values.&lt;br /&gt;
&lt;br /&gt;
==Rotations==&lt;br /&gt;
&lt;br /&gt;
See the section on [[rotation conventions]] for the details of how rotations are stored and manipulated inside Spinach kernel.&lt;br /&gt;
&lt;br /&gt;
[[anax2dcm.m]] – converts angle-axis rotation parameters to directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[anax2quat.m]] – converts angle-axis rotation parameters into a quaternion.&lt;br /&gt;
&lt;br /&gt;
[[dcm2euler.m]] – converts a directional cosine matrix into Euler angles.&lt;br /&gt;
&lt;br /&gt;
[[dcm2quat.m]] – converts a directional cosine matrix into a quaternion.&lt;br /&gt;
&lt;br /&gt;
[[dcm2wigner.m]] – converts a directional cosine matrix into a Wigner matrix. &lt;br /&gt;
&lt;br /&gt;
[[euler2dcm.m]] – converts Euler angles into directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[rotor_stack.m]] - a rotor stack of Liouvillians or Hamiltonians.&lt;br /&gt;
&lt;br /&gt;
[[wigner.m]] – converts Euler angles into Wigner rotation matrix.&lt;br /&gt;
&lt;br /&gt;
[[quat2anax.m]] – converts a quaternion into an angle-axis specification.&lt;br /&gt;
&lt;br /&gt;
[[quat2dcm.m]] – converts a quaternion into a directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[xyz2sph.m]] - Cartesian into spherical coordinates.&lt;br /&gt;
&lt;br /&gt;
==Interaction specification conventions==&lt;br /&gt;
&lt;br /&gt;
[[ang2cgsppm.m]] - cubic Angstrom units of magnetic susceptibility into CGS ppm.&lt;br /&gt;
&lt;br /&gt;
[[anas2mat.m]] - anisotropy and asymmatry into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[axrh2mat.m]] - axiality and rhombicity into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[castep2nqi.m]] – converts CASTEP EFG tensor (it is printed in atomic units) to NQI tensor in Hz that is required by Spinach.&lt;br /&gt;
&lt;br /&gt;
[[cgsppm2ang.m]] - converts magnetic susceptibility from the cgs-ppm (aka cm^3/mol) units quoted by quantum chemistry packages into Angstrom^3 units required by Spinach pseudocontact shift functionality.&lt;br /&gt;
&lt;br /&gt;
[[conmat.m]] - molecular connectivity matrix.&lt;br /&gt;
&lt;br /&gt;
[[dihedral.m]] – calculates the dihedral angle defined by four sets of atomic coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[eeqq2nqi.m]] – converts literature conventions for the quadrupolar interaction specification into a 3x3 matrix in Hz.&lt;br /&gt;
&lt;br /&gt;
[[frac2cart.m]] – converts fractional crystallographic coordinates to Cartesian coordinates.&lt;br /&gt;
&lt;br /&gt;
[[g2freq.m]] - g-tensor units into frequencies.&lt;br /&gt;
&lt;br /&gt;
[[gauss2mhz.m]] – converts hyperfine coupling tensors from Gauss to MHz.&lt;br /&gt;
&lt;br /&gt;
[[hartree2joule.m]] – converts Hartree energy units to Joules.&lt;br /&gt;
&lt;br /&gt;
[[hz2icm.m]] - Hz units of energy into inverse centimetres.&lt;br /&gt;
&lt;br /&gt;
[[mat2axrh.m]] - axiality and rhombicity from a 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[mhz2gauss.m]] - converts hyperfine couplings from MHz into Gauss.&lt;br /&gt;
&lt;br /&gt;
[[mt2hz.m]] – converts hyperfine tensors from milliTesla to Hz.&lt;br /&gt;
&lt;br /&gt;
[[spsk2mat.m]] - span and skew into a 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[tsm2param.m]] - traceless symmetric matrix into axiality, asymmetry, and Euler angles.&lt;br /&gt;
&lt;br /&gt;
[[xyz2dd.m]] – converts coordinates and periodic boundary conditions into 3x3 dipolar coupling matrices.&lt;br /&gt;
&lt;br /&gt;
[[zfs2mat.m]] - converts D and E zero-field splitting parameters into a diagonal 3x3 spin interaction matrix.&lt;br /&gt;
&lt;br /&gt;
==SU(2) infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[hilb2liouv.m]] – converts Hilbert space operators into Liouville space superoperators or state vectors. See function header for further information.&lt;br /&gt;
&lt;br /&gt;
[[irr_sph_ten.m]] – returns an array of single-spin irreducible spherical tensor operators for a given spin multiplicity. The resulting spherical tensor operators are normalized to obey so(3) and su(2) commutation relations.&lt;br /&gt;
&lt;br /&gt;
[[ist_product_table.m]] - structure coefficient tables for the associateive envelopes of su(mult) algebras.&lt;br /&gt;
&lt;br /&gt;
[[pauli.m]] – Pauli matrices of a spin with user-specified multiplicity.&lt;br /&gt;
&lt;br /&gt;
[[sorensen.m]] - Sorensen bounds.&lt;br /&gt;
&lt;br /&gt;
[[stev2sph.m]] - converts Stevens coefficients into irreducible spherical tensor coefficients.&lt;br /&gt;
&lt;br /&gt;
[[stevens.m]] - extended Stevens operators. &lt;br /&gt;
&lt;br /&gt;
[[p_superop.m]] – right and left side product superoperators.&lt;br /&gt;
&lt;br /&gt;
==SO(3) infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[clebsch_gordan.m]] – Clebsch-Gordan coefficients using arbitrary-precision integer arithmetic.&lt;br /&gt;
&lt;br /&gt;
[[cg_fast.m]] - fast but less accurate Clebsch-Gordan coefficient calculation.&lt;br /&gt;
&lt;br /&gt;
[[logfactorial.m]] - logarithm of the factorial function.&lt;br /&gt;
&lt;br /&gt;
[[mat2sphten.m]] – translates 3x3 interaction tensors into irreducible spherical tensor coefficients.&lt;br /&gt;
&lt;br /&gt;
[[multipack.m]] - packs multipole moments from a linear stream into a cell array by rank.&lt;br /&gt;
&lt;br /&gt;
[[perm_group.m]] – a database of common finite groups.&lt;br /&gt;
&lt;br /&gt;
[[rwalk.m]] - random walk on SO(3).&lt;br /&gt;
&lt;br /&gt;
[[sphten2mat.m]] – irreducible spherical tensor coefficients into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[spher_harmon.m]] – computes spherical harmonics.&lt;br /&gt;
&lt;br /&gt;
[[sle_operators.m]] - Wigner D function basis set and rotation generators.&lt;br /&gt;
&lt;br /&gt;
[[wigner.m]] – Wigner D matrices.&lt;br /&gt;
&lt;br /&gt;
[[wigner_3j.m]] - Wigner 3j-symbols.&lt;br /&gt;
&lt;br /&gt;
[[wigner_6j.m]] - Wigner 6j-symbols.&lt;br /&gt;
&lt;br /&gt;
==Spatial dynamics infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[corrfun.m]] – correlation functions for rotational diffution).&lt;br /&gt;
&lt;br /&gt;
[[fdhess.m]] – finite-difference Hessian operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdkup.m]] – finite-difference Kuprov operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdlap.m]] – finite-difference Laplace operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdmat.m]] – finite-difference operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdvec.m]] – finite-difference operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdweights.m]] – finite difference stencil weights.&lt;br /&gt;
&lt;br /&gt;
[[fpl2phan.m]] – partial trace with respect to spin degrees of freedom applied to a Fokker-Planck state vector.&lt;br /&gt;
&lt;br /&gt;
[[fpl2rho.m]] – partial trace with respect to spatial degrees of freedom applied to a Fokker-Planck state vector.&lt;br /&gt;
&lt;br /&gt;
[[hydrodynamics.m]] - hydrodynamics infrastructure provider.&lt;br /&gt;
&lt;br /&gt;
[[interpmat.m]] – interpolation matrices for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[oscillator.m]] - harmonic oscillator infrastructure provider.&lt;br /&gt;
&lt;br /&gt;
[[overwound.m]] - spatial frequency distribution diagnostics.&lt;br /&gt;
&lt;br /&gt;
[[phan2fpl.m]] – projects a phantom into the Fokker-Planck space.&lt;br /&gt;
&lt;br /&gt;
==State space indexing and manipulation==&lt;br /&gt;
&lt;br /&gt;
[[lin2lm.m]] – converts the linear indexing state specification (used by Spinach to build matrix representations of spin operators) into L,M indexing, where L is the rank and M is the projection quantum number of an irreducible spherical tensor. In the linear indexing convention, the states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection.&lt;br /&gt;
&lt;br /&gt;
[[lm2lin.m]] – converts L,M spin state specification to linear indexing specification used by Spinach to build matrix representations of spin operators. In the linear indexing convention, the states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection.&lt;br /&gt;
&lt;br /&gt;
[[lin2lmn.m]] – converts the linear indexing Wigner function specification (used by Spinach to build matrix representations of rotational diffusion operators) into L,M,N indices that enumerate Wigner matrix elements. In the linear indexing convention, the Wigner functions are listed in the order of increasing L rank. Within each L rank, the functions are listed in the order of decreasing left index, and, for each left index, in the order of decreasing right index.&lt;br /&gt;
&lt;br /&gt;
[[lmn2lin.m]] – converts L,M,N Wigner function specification to linear indexing specification used by Spinach to build matrix representations of rotational diffusion operators. In the linear indexing convention, the Wigner functions are listed in the order of increasing L rank. Within each L rank, the functions are listed in the order of decreasing left index, and, for each left index, in the order of decreasing right index.&lt;br /&gt;
&lt;br /&gt;
[[scomponents.m]] – computes the strongly connected components of a graph. Returns an index for the component number of every vertex in the graph with the given adjacency matrix. Algorithm description is at http://dx.doi.org/10.1137/0201010&lt;br /&gt;
&lt;br /&gt;
[[sinkhole.m]] – designates specific states as sinkholes -- any population reaching them would stay in them forever in a frozen state. This function is only available in sphten-liouv formalism.&lt;br /&gt;
&lt;br /&gt;
[[sparse2csr.m]] – computes a partial Compressed Row Storage transformation for a given Matlab sparse matrix. Only returns the index arrays and ignores the values.&lt;br /&gt;
&lt;br /&gt;
[[path_trace.m]] – Liouvillian path tracing. Treats the user-supplied Liouvillian as the adjacency matrix of a graph, computes the weakly connected subgraphs of that graph and returns a cell array of projectors into the corresponding independently evolving subspaces. This function runs in linear time with respect to the number of non-zeros of a matrix, but provides cubic benefit by effectively block-diagonalizing the Liouvillian.&lt;br /&gt;
&lt;br /&gt;
A significant number of independently evolving or dropped subspaces is often an indication of an overlooked symmetry or a conservation law – it is a good idea to examine  the dropped subspaces and try finding out why they are not being populated.&lt;br /&gt;
The efficiency of the path tracing procedure depends on the choice of the basis set. For the spherical tensor basis sets used in Spinach, there are usually at least two (in some EPR examples), and sometimes over a hundred (in large HSQC examples) independent subspaces, depending on the calculation type and spin interactions present.&lt;br /&gt;
&lt;br /&gt;
[[dfpt.m]] – depth-first path tracing module. Analyses the system connectivity graph and creates a list of all connected subgraphs of up to the user-specified size by crawling the graph in all available directions. Used in the construction of connectivity-adaptive basis sets.&lt;br /&gt;
&lt;br /&gt;
[[svd_shrink.m]] – generates a minimal set of vector-covector pairs for the parallel propagation in Hilbert space.&lt;br /&gt;
&lt;br /&gt;
[[stitch.m]] – runs the stitching stage of bidirectional 3D NMR simulations.&lt;br /&gt;
&lt;br /&gt;
[[zte.m]] – zero track elimination function. Inspects the first few steps in the system trajectory and drops the states that did not get populated to a user-specified tolerance. See Kuprov group publications for further details of this particular approximation.&lt;br /&gt;
&lt;br /&gt;
[[human2opspec.m]] – converts human-readable operator specifications into operators specifications understood by the operator generation functions of Spinach kernel.&lt;br /&gt;
&lt;br /&gt;
==Data analysis and plotting==&lt;br /&gt;
&lt;br /&gt;
[[apodization.m]] – performs free induction decay apodization. Supports 1D, 2D and 3D FIDs.&lt;br /&gt;
&lt;br /&gt;
[[axis_1d.m]] - axis ticks for plotting 1D spectra.&lt;br /&gt;
&lt;br /&gt;
[[crop_2d.m]] - Crops 2D spectra to user-specified ranges.&lt;br /&gt;
&lt;br /&gt;
[[int_2d.m]] – 2D spectral integration utility.&lt;br /&gt;
&lt;br /&gt;
[[molplot.m]] – stick plots of molecules.&lt;br /&gt;
&lt;br /&gt;
[[plot_1d.m]] – 1D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_2d.m]] – 2D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_3d.m]] – 3D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[slice_2d.m]] – displays slices of 2D spectra.&lt;br /&gt;
&lt;br /&gt;
[[mri_2d_plot.m]] - 2D MRI plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[sweep2ticks.m]] – converts spectral sweep width information into a vector of frequency axis ticks.&lt;br /&gt;
&lt;br /&gt;
[[volplot.m]] – volumetric plotting.&lt;br /&gt;
&lt;br /&gt;
[[zoom_3d.m]] - zooming into 3D data cubes.&lt;br /&gt;
&lt;br /&gt;
==Relaxation theory==&lt;br /&gt;
&lt;br /&gt;
[[blinv.m]] - Blicharsky invariants of a matrix.&lt;br /&gt;
&lt;br /&gt;
[[magpump.m]] - phenomenological pumping terms for the relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[ngce.m]] - numerical generalised cumulant expansion.&lt;br /&gt;
&lt;br /&gt;
[[r1csa2tauc.m]] - estimate of rotational correlation time from longitudinal CSA relaxation rate.&lt;br /&gt;
&lt;br /&gt;
[[r2csa2tauc.m]] - estimate of rotational correlation time from transverse CSA relaxation rate.&lt;br /&gt;
&lt;br /&gt;
[[rlx_scalar.m]] - scalar relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[rlx_split.m]] - longitudinal, transverse, and mixed components of a relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[rlx_t1_t2.m]] - extended T1/T2 model relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
== Numerical infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[binpack.m]] - a simple bin packing algorithm.&lt;br /&gt;
&lt;br /&gt;
[[cheap_norm.m]] - matrix norm estimator.&lt;br /&gt;
&lt;br /&gt;
[[clean_up.m]] – sparse matrix clean-up utility.&lt;br /&gt;
&lt;br /&gt;
[[dirdiff.m]] – directional derivatives of matrix exponentials.&lt;br /&gt;
&lt;br /&gt;
[[expdrop.m]] - Exponential drop function.&lt;br /&gt;
&lt;br /&gt;
[[expmint.m]] – matrix exponential integrals.&lt;br /&gt;
&lt;br /&gt;
[[fftdiff.m]] - Fourier spectral differentiation kernel.&lt;br /&gt;
&lt;br /&gt;
[[fourdif.m]] - Fourier spectral differentiation matrices.&lt;br /&gt;
&lt;br /&gt;
[[fourlap.m]] - Fourier spectral Laplacian.&lt;br /&gt;
&lt;br /&gt;
[[frob_chop.m]] - Truncates SVD decomposition to the user-specified threshold in the Frobenius norm.&lt;br /&gt;
&lt;br /&gt;
[[gaussfun.m]] - Normalized Gaussian function in magnetic resonance notation.&lt;br /&gt;
&lt;br /&gt;
[[hdot.m]] – Hadamard matrix product.&lt;br /&gt;
&lt;br /&gt;
[[issquare.m]] - returns true for square matrices.&lt;br /&gt;
&lt;br /&gt;
[[jacobianest.m]] - numerical Jacobian estimation.&lt;br /&gt;
&lt;br /&gt;
[[krondelta.m]] – Kronecker&amp;#039;s delta symbol.&lt;br /&gt;
&lt;br /&gt;
[[lorentzfun.m]] - Normalized Lorentzian function in magnetic resonance notation.&lt;br /&gt;
&lt;br /&gt;
[[md5_hash.m]] – returns MD5 hashes of matrices.&lt;br /&gt;
&lt;br /&gt;
[[mprealloc.m]] – preallocates an operator in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[picks.m]] - all picks of the specified number of elements from the vector provided, without repetitions.&lt;br /&gt;
&lt;br /&gt;
[[unit_oper.m]] – returns a unit operator in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[unit_state.m]] – returns a unit state in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[snormpdf.m]] - Azzalini&amp;#039;s skew normal distribution.&lt;br /&gt;
&lt;br /&gt;
==Integration grids==&lt;br /&gt;
&lt;br /&gt;
[[gaussleg.m]] - Gauss-Legendre quadrature grids and weights.&lt;br /&gt;
&lt;br /&gt;
[[get_hull.m]] - generates a convex hull of a two-angle grid for 2D surface plotting.&lt;br /&gt;
&lt;br /&gt;
[[grid_kron.m]] - spherical grid direct product.&lt;br /&gt;
&lt;br /&gt;
[[grid_test.m]] - plots grid integration quality as a function of spherical rank.&lt;br /&gt;
&lt;br /&gt;
[[repulsion.m]] - generates REPULSION grids on a unit hypersphere.&lt;br /&gt;
&lt;br /&gt;
[[shrewd.m]] - computes SHREWD weights for a given two- or three-angle spherical grid.&lt;br /&gt;
&lt;br /&gt;
[[zfs_sampling.m]] - returns optimal ZFS distribution integration information.&lt;br /&gt;
&lt;br /&gt;
==Housekeeping functions==&lt;br /&gt;
&lt;br /&gt;
[[banner.m]] - prints console banners.&lt;br /&gt;
&lt;br /&gt;
[[dipolar.m]] – converts coordinates into dipolar coupling tensors. This function is called by Spinach kernel and should not be used directly.&lt;br /&gt;
&lt;br /&gt;
[[existentials.m]] – kernel integrity control, checks for function name collisions.&lt;br /&gt;
&lt;br /&gt;
[[exorcise.m]] - enforces the house style on the &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; code base.&lt;br /&gt;
&lt;br /&gt;
[[iseye.m]] - returns true for unit matrices.&lt;br /&gt;
&lt;br /&gt;
[[isworkernode.m]] - returns true if running on a parallel worker node.&lt;br /&gt;
&lt;br /&gt;
[[pad.m]] – pads character strings with spaces.&lt;br /&gt;
&lt;br /&gt;
[[poolsize.m]] - returns current parallel pool size.&lt;br /&gt;
&lt;br /&gt;
[[rearm.m]] - kernel integrity control, rearms the sniffer.&lt;br /&gt;
&lt;br /&gt;
[[report.m]] – Spinach kernel user feedback function, should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[sniff.m]] - kernel integrity control, kernel code modification sniffer.&lt;br /&gt;
&lt;br /&gt;
[[smack.m]] - forcibly shuts down the parallel pool and clears the workspace.&lt;br /&gt;
&lt;br /&gt;
[[summary.m]] – prints various summaries for Spinach kernel. Should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[symmetry.m]] - Symmetry treatment. This is a service function of the Spinach kernel that should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[tolerances.m]] – tolerance information for Spinach kernel. Should not be called directly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Poolsize.m&amp;diff=3772</id>
		<title>Poolsize.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Poolsize.m&amp;diff=3772"/>
		<updated>2019-01-12T15:27:07Z</updated>

		<summary type="html">&lt;p&gt;Admin: Created page with &amp;quot;{{DISPLAYTITLE:poolsize.m}} __NOTOC__ Returns the current parallel pool size.  ==Syntax==       n=poolsize()  ==Outputs==       n  -  number of workers in the current...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:poolsize.m}} __NOTOC__&lt;br /&gt;
Returns the current parallel pool size.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     n=poolsize()&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     n  -  number of workers in the current&lt;br /&gt;
           parallel pool&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
When this function is invoked from inside parfor, spmd, or asynchronous parallel job, it returns zero.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[isworkernode.m]], [[smack.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Kernel_utilities&amp;diff=3771</id>
		<title>Kernel utilities</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Kernel_utilities&amp;diff=3771"/>
		<updated>2019-01-12T15:17:11Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Numerical infrastructure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section provides brief list of the functionality found in the kernel utilities folder, in alphabetic order. Service functions that have no physical or algebraic applications are not listed. Details of usage, input and output are given in the function headers.&lt;br /&gt;
&lt;br /&gt;
==Reference data==&lt;br /&gt;
&lt;br /&gt;
[[spin.m]] - multiplicities and magnetogyric ratios for most isotopes in the periodic table.&lt;br /&gt;
&lt;br /&gt;
==Spin system editing==&lt;br /&gt;
&lt;br /&gt;
[[chemshifts.m]] - returns chemical shifts for all spins.&lt;br /&gt;
&lt;br /&gt;
[[cubic_lattice.m]] - generates a cubic lattice of spins.&lt;br /&gt;
&lt;br /&gt;
[[dilute.m]] – splits the spin system into independent subsystems, each containing only one instance of a &amp;quot;dilute&amp;quot; isotope.&lt;br /&gt;
&lt;br /&gt;
[[gtensorof.m]] - returns the g-tensor of the specified spin.&lt;br /&gt;
&lt;br /&gt;
[[isnucleus.m]] - true of the particle is a nucleus known to &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
[[kill_spin.m]] – removes the specified spins from the spin_system structure and updates all internal structures accordingly.&lt;br /&gt;
&lt;br /&gt;
[[shift_iso.m]] – replaces the isotropic parts of interaction tensors with user-supplied values.&lt;br /&gt;
&lt;br /&gt;
==Rotations==&lt;br /&gt;
&lt;br /&gt;
See the section on [[rotation conventions]] for the details of how rotations are stored and manipulated inside Spinach kernel.&lt;br /&gt;
&lt;br /&gt;
[[anax2dcm.m]] – converts angle-axis rotation parameters to directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[anax2quat.m]] – converts angle-axis rotation parameters into a quaternion.&lt;br /&gt;
&lt;br /&gt;
[[dcm2euler.m]] – converts a directional cosine matrix into Euler angles.&lt;br /&gt;
&lt;br /&gt;
[[dcm2quat.m]] – converts a directional cosine matrix into a quaternion.&lt;br /&gt;
&lt;br /&gt;
[[dcm2wigner.m]] – converts a directional cosine matrix into a Wigner matrix. &lt;br /&gt;
&lt;br /&gt;
[[euler2dcm.m]] – converts Euler angles into directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[rotor_stack.m]] - a rotor stack of Liouvillians or Hamiltonians.&lt;br /&gt;
&lt;br /&gt;
[[wigner.m]] – converts Euler angles into Wigner rotation matrix.&lt;br /&gt;
&lt;br /&gt;
[[quat2anax.m]] – converts a quaternion into an angle-axis specification.&lt;br /&gt;
&lt;br /&gt;
[[quat2dcm.m]] – converts a quaternion into a directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[xyz2sph.m]] - Cartesian into spherical coordinates.&lt;br /&gt;
&lt;br /&gt;
==Interaction specification conventions==&lt;br /&gt;
&lt;br /&gt;
[[ang2cgsppm.m]] - cubic Angstrom units of magnetic susceptibility into CGS ppm.&lt;br /&gt;
&lt;br /&gt;
[[anas2mat.m]] - anisotropy and asymmatry into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[axrh2mat.m]] - axiality and rhombicity into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[castep2nqi.m]] – converts CASTEP EFG tensor (it is printed in atomic units) to NQI tensor in Hz that is required by Spinach.&lt;br /&gt;
&lt;br /&gt;
[[cgsppm2ang.m]] - converts magnetic susceptibility from the cgs-ppm (aka cm^3/mol) units quoted by quantum chemistry packages into Angstrom^3 units required by Spinach pseudocontact shift functionality.&lt;br /&gt;
&lt;br /&gt;
[[conmat.m]] - molecular connectivity matrix.&lt;br /&gt;
&lt;br /&gt;
[[dihedral.m]] – calculates the dihedral angle defined by four sets of atomic coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[eeqq2nqi.m]] – converts literature conventions for the quadrupolar interaction specification into a 3x3 matrix in Hz.&lt;br /&gt;
&lt;br /&gt;
[[frac2cart.m]] – converts fractional crystallographic coordinates to Cartesian coordinates.&lt;br /&gt;
&lt;br /&gt;
[[g2freq.m]] - g-tensor units into frequencies.&lt;br /&gt;
&lt;br /&gt;
[[gauss2mhz.m]] – converts hyperfine coupling tensors from Gauss to MHz.&lt;br /&gt;
&lt;br /&gt;
[[hartree2joule.m]] – converts Hartree energy units to Joules.&lt;br /&gt;
&lt;br /&gt;
[[hz2icm.m]] - Hz units of energy into inverse centimetres.&lt;br /&gt;
&lt;br /&gt;
[[mat2axrh.m]] - axiality and rhombicity from a 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[mhz2gauss.m]] - converts hyperfine couplings from MHz into Gauss.&lt;br /&gt;
&lt;br /&gt;
[[mt2hz.m]] – converts hyperfine tensors from milliTesla to Hz.&lt;br /&gt;
&lt;br /&gt;
[[spsk2mat.m]] - span and skew into a 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[tsm2param.m]] - traceless symmetric matrix into axiality, asymmetry, and Euler angles.&lt;br /&gt;
&lt;br /&gt;
[[xyz2dd.m]] – converts coordinates and periodic boundary conditions into 3x3 dipolar coupling matrices.&lt;br /&gt;
&lt;br /&gt;
[[zfs2mat.m]] - converts D and E zero-field splitting parameters into a diagonal 3x3 spin interaction matrix.&lt;br /&gt;
&lt;br /&gt;
==SU(2) infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[hilb2liouv.m]] – converts Hilbert space operators into Liouville space superoperators or state vectors. See function header for further information.&lt;br /&gt;
&lt;br /&gt;
[[irr_sph_ten.m]] – returns an array of single-spin irreducible spherical tensor operators for a given spin multiplicity. The resulting spherical tensor operators are normalized to obey so(3) and su(2) commutation relations.&lt;br /&gt;
&lt;br /&gt;
[[ist_product_table.m]] - structure coefficient tables for the associateive envelopes of su(mult) algebras.&lt;br /&gt;
&lt;br /&gt;
[[pauli.m]] – Pauli matrices of a spin with user-specified multiplicity.&lt;br /&gt;
&lt;br /&gt;
[[sorensen.m]] - Sorensen bounds.&lt;br /&gt;
&lt;br /&gt;
[[stev2sph.m]] - converts Stevens coefficients into irreducible spherical tensor coefficients.&lt;br /&gt;
&lt;br /&gt;
[[stevens.m]] - extended Stevens operators. &lt;br /&gt;
&lt;br /&gt;
[[p_superop.m]] – right and left side product superoperators.&lt;br /&gt;
&lt;br /&gt;
==SO(3) infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[clebsch_gordan.m]] – Clebsch-Gordan coefficients using arbitrary-precision integer arithmetic.&lt;br /&gt;
&lt;br /&gt;
[[cg_fast.m]] - fast but less accurate Clebsch-Gordan coefficient calculation.&lt;br /&gt;
&lt;br /&gt;
[[logfactorial.m]] - logarithm of the factorial function.&lt;br /&gt;
&lt;br /&gt;
[[mat2sphten.m]] – translates 3x3 interaction tensors into irreducible spherical tensor coefficients.&lt;br /&gt;
&lt;br /&gt;
[[multipack.m]] - packs multipole moments from a linear stream into a cell array by rank.&lt;br /&gt;
&lt;br /&gt;
[[perm_group.m]] – a database of common finite groups.&lt;br /&gt;
&lt;br /&gt;
[[rwalk.m]] - random walk on SO(3).&lt;br /&gt;
&lt;br /&gt;
[[sphten2mat.m]] – irreducible spherical tensor coefficients into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[spher_harmon.m]] – computes spherical harmonics.&lt;br /&gt;
&lt;br /&gt;
[[sle_operators.m]] - Wigner D function basis set and rotation generators.&lt;br /&gt;
&lt;br /&gt;
[[wigner.m]] – Wigner D matrices.&lt;br /&gt;
&lt;br /&gt;
[[wigner_3j.m]] - Wigner 3j-symbols.&lt;br /&gt;
&lt;br /&gt;
[[wigner_6j.m]] - Wigner 6j-symbols.&lt;br /&gt;
&lt;br /&gt;
==Spatial dynamics infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[corrfun.m]] – correlation functions for rotational diffution).&lt;br /&gt;
&lt;br /&gt;
[[fdhess.m]] – finite-difference Hessian operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdkup.m]] – finite-difference Kuprov operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdlap.m]] – finite-difference Laplace operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdmat.m]] – finite-difference operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdvec.m]] – finite-difference operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdweights.m]] – finite difference stencil weights.&lt;br /&gt;
&lt;br /&gt;
[[fpl2phan.m]] – partial trace with respect to spin degrees of freedom applied to a Fokker-Planck state vector.&lt;br /&gt;
&lt;br /&gt;
[[fpl2rho.m]] – partial trace with respect to spatial degrees of freedom applied to a Fokker-Planck state vector.&lt;br /&gt;
&lt;br /&gt;
[[hydrodynamics.m]] - hydrodynamics infrastructure provider.&lt;br /&gt;
&lt;br /&gt;
[[interpmat.m]] – interpolation matrices for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[oscillator.m]] - harmonic oscillator infrastructure provider.&lt;br /&gt;
&lt;br /&gt;
[[overwound.m]] - spatial frequency distribution diagnostics.&lt;br /&gt;
&lt;br /&gt;
[[phan2fpl.m]] – projects a phantom into the Fokker-Planck space.&lt;br /&gt;
&lt;br /&gt;
==State space indexing and manipulation==&lt;br /&gt;
&lt;br /&gt;
[[lin2lm.m]] – converts the linear indexing state specification (used by Spinach to build matrix representations of spin operators) into L,M indexing, where L is the rank and M is the projection quantum number of an irreducible spherical tensor. In the linear indexing convention, the states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection.&lt;br /&gt;
&lt;br /&gt;
[[lm2lin.m]] – converts L,M spin state specification to linear indexing specification used by Spinach to build matrix representations of spin operators. In the linear indexing convention, the states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection.&lt;br /&gt;
&lt;br /&gt;
[[lin2lmn.m]] – converts the linear indexing Wigner function specification (used by Spinach to build matrix representations of rotational diffusion operators) into L,M,N indices that enumerate Wigner matrix elements. In the linear indexing convention, the Wigner functions are listed in the order of increasing L rank. Within each L rank, the functions are listed in the order of decreasing left index, and, for each left index, in the order of decreasing right index.&lt;br /&gt;
&lt;br /&gt;
[[lmn2lin.m]] – converts L,M,N Wigner function specification to linear indexing specification used by Spinach to build matrix representations of rotational diffusion operators. In the linear indexing convention, the Wigner functions are listed in the order of increasing L rank. Within each L rank, the functions are listed in the order of decreasing left index, and, for each left index, in the order of decreasing right index.&lt;br /&gt;
&lt;br /&gt;
[[scomponents.m]] – computes the strongly connected components of a graph. Returns an index for the component number of every vertex in the graph with the given adjacency matrix. Algorithm description is at http://dx.doi.org/10.1137/0201010&lt;br /&gt;
&lt;br /&gt;
[[sinkhole.m]] – designates specific states as sinkholes -- any population reaching them would stay in them forever in a frozen state. This function is only available in sphten-liouv formalism.&lt;br /&gt;
&lt;br /&gt;
[[sparse2csr.m]] – computes a partial Compressed Row Storage transformation for a given Matlab sparse matrix. Only returns the index arrays and ignores the values.&lt;br /&gt;
&lt;br /&gt;
[[path_trace.m]] – Liouvillian path tracing. Treats the user-supplied Liouvillian as the adjacency matrix of a graph, computes the weakly connected subgraphs of that graph and returns a cell array of projectors into the corresponding independently evolving subspaces. This function runs in linear time with respect to the number of non-zeros of a matrix, but provides cubic benefit by effectively block-diagonalizing the Liouvillian.&lt;br /&gt;
&lt;br /&gt;
A significant number of independently evolving or dropped subspaces is often an indication of an overlooked symmetry or a conservation law – it is a good idea to examine  the dropped subspaces and try finding out why they are not being populated.&lt;br /&gt;
The efficiency of the path tracing procedure depends on the choice of the basis set. For the spherical tensor basis sets used in Spinach, there are usually at least two (in some EPR examples), and sometimes over a hundred (in large HSQC examples) independent subspaces, depending on the calculation type and spin interactions present.&lt;br /&gt;
&lt;br /&gt;
[[dfpt.m]] – depth-first path tracing module. Analyses the system connectivity graph and creates a list of all connected subgraphs of up to the user-specified size by crawling the graph in all available directions. Used in the construction of connectivity-adaptive basis sets.&lt;br /&gt;
&lt;br /&gt;
[[svd_shrink.m]] – generates a minimal set of vector-covector pairs for the parallel propagation in Hilbert space.&lt;br /&gt;
&lt;br /&gt;
[[stitch.m]] – runs the stitching stage of bidirectional 3D NMR simulations.&lt;br /&gt;
&lt;br /&gt;
[[zte.m]] – zero track elimination function. Inspects the first few steps in the system trajectory and drops the states that did not get populated to a user-specified tolerance. See Kuprov group publications for further details of this particular approximation.&lt;br /&gt;
&lt;br /&gt;
[[human2opspec.m]] – converts human-readable operator specifications into operators specifications understood by the operator generation functions of Spinach kernel.&lt;br /&gt;
&lt;br /&gt;
==Data analysis and plotting==&lt;br /&gt;
&lt;br /&gt;
[[apodization.m]] – performs free induction decay apodization. Supports 1D, 2D and 3D FIDs.&lt;br /&gt;
&lt;br /&gt;
[[axis_1d.m]] - axis ticks for plotting 1D spectra.&lt;br /&gt;
&lt;br /&gt;
[[crop_2d.m]] - Crops 2D spectra to user-specified ranges.&lt;br /&gt;
&lt;br /&gt;
[[int_2d.m]] – 2D spectral integration utility.&lt;br /&gt;
&lt;br /&gt;
[[molplot.m]] – stick plots of molecules.&lt;br /&gt;
&lt;br /&gt;
[[plot_1d.m]] – 1D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_2d.m]] – 2D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_3d.m]] – 3D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[slice_2d.m]] – displays slices of 2D spectra.&lt;br /&gt;
&lt;br /&gt;
[[mri_2d_plot.m]] - 2D MRI plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[sweep2ticks.m]] – converts spectral sweep width information into a vector of frequency axis ticks.&lt;br /&gt;
&lt;br /&gt;
[[volplot.m]] – volumetric plotting.&lt;br /&gt;
&lt;br /&gt;
[[zoom_3d.m]] - zooming into 3D data cubes.&lt;br /&gt;
&lt;br /&gt;
==Relaxation theory==&lt;br /&gt;
&lt;br /&gt;
[[blinv.m]] - Blicharsky invariants of a matrix.&lt;br /&gt;
&lt;br /&gt;
[[magpump.m]] - phenomenological pumping terms for the relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[ngce.m]] - numerical generalised cumulant expansion.&lt;br /&gt;
&lt;br /&gt;
[[r1csa2tauc.m]] - estimate of rotational correlation time from longitudinal CSA relaxation rate.&lt;br /&gt;
&lt;br /&gt;
[[r2csa2tauc.m]] - estimate of rotational correlation time from transverse CSA relaxation rate.&lt;br /&gt;
&lt;br /&gt;
[[rlx_scalar.m]] - scalar relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[rlx_split.m]] - longitudinal, transverse, and mixed components of a relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[rlx_t1_t2.m]] - extended T1/T2 model relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
== Numerical infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[binpack.m]] - a simple bin packing algorithm.&lt;br /&gt;
&lt;br /&gt;
[[cheap_norm.m]] - matrix norm estimator.&lt;br /&gt;
&lt;br /&gt;
[[clean_up.m]] – sparse matrix clean-up utility.&lt;br /&gt;
&lt;br /&gt;
[[dirdiff.m]] – directional derivatives of matrix exponentials.&lt;br /&gt;
&lt;br /&gt;
[[expdrop.m]] - Exponential drop function.&lt;br /&gt;
&lt;br /&gt;
[[expmint.m]] – matrix exponential integrals.&lt;br /&gt;
&lt;br /&gt;
[[fftdiff.m]] - Fourier spectral differentiation kernel.&lt;br /&gt;
&lt;br /&gt;
[[fourdif.m]] - Fourier spectral differentiation matrices.&lt;br /&gt;
&lt;br /&gt;
[[fourlap.m]] - Fourier spectral Laplacian.&lt;br /&gt;
&lt;br /&gt;
[[frob_chop.m]] - Truncates SVD decomposition to the user-specified threshold in the Frobenius norm.&lt;br /&gt;
&lt;br /&gt;
[[gaussfun.m]] - Normalized Gaussian function in magnetic resonance notation.&lt;br /&gt;
&lt;br /&gt;
[[hdot.m]] – Hadamard matrix product.&lt;br /&gt;
&lt;br /&gt;
[[issquare.m]] - returns true for square matrices.&lt;br /&gt;
&lt;br /&gt;
[[jacobianest.m]] - numerical Jacobian estimation.&lt;br /&gt;
&lt;br /&gt;
[[krondelta.m]] – Kronecker&amp;#039;s delta symbol.&lt;br /&gt;
&lt;br /&gt;
[[lorentzfun.m]] - Normalized Lorentzian function in magnetic resonance notation.&lt;br /&gt;
&lt;br /&gt;
[[md5_hash.m]] – returns MD5 hashes of matrices.&lt;br /&gt;
&lt;br /&gt;
[[mprealloc.m]] – preallocates an operator in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[picks.m]] - all picks of the specified number of elements from the vector provided, without repetitions.&lt;br /&gt;
&lt;br /&gt;
[[unit_oper.m]] – returns a unit operator in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[unit_state.m]] – returns a unit state in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[snormpdf.m]] - Azzalini&amp;#039;s skew normal distribution.&lt;br /&gt;
&lt;br /&gt;
==Integration grids==&lt;br /&gt;
&lt;br /&gt;
[[gaussleg.m]] - Gauss-Legendre quadrature grids and weights.&lt;br /&gt;
&lt;br /&gt;
[[get_hull.m]] - generates a convex hull of a two-angle grid for 2D surface plotting.&lt;br /&gt;
&lt;br /&gt;
[[grid_kron.m]] - spherical grid direct product.&lt;br /&gt;
&lt;br /&gt;
[[grid_test.m]] - plots grid integration quality as a function of spherical rank.&lt;br /&gt;
&lt;br /&gt;
[[repulsion.m]] - generates REPULSION grids on a unit hypersphere.&lt;br /&gt;
&lt;br /&gt;
[[shrewd.m]] - computes SHREWD weights for a given two- or three-angle spherical grid.&lt;br /&gt;
&lt;br /&gt;
[[zfs_sampling.m]] - returns optimal ZFS distribution integration information.&lt;br /&gt;
&lt;br /&gt;
==Housekeeping functions==&lt;br /&gt;
&lt;br /&gt;
[[banner.m]] - prints console banners.&lt;br /&gt;
&lt;br /&gt;
[[dipolar.m]] – converts coordinates into dipolar coupling tensors. This function is called by Spinach kernel and should not be used directly.&lt;br /&gt;
&lt;br /&gt;
[[existentials.m]] – kernel integrity control, checks for function name collisions.&lt;br /&gt;
&lt;br /&gt;
[[exorcise.m]] - enforces the house style on the &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; code base.&lt;br /&gt;
&lt;br /&gt;
[[iseye.m]] - returns true for unit matrices.&lt;br /&gt;
&lt;br /&gt;
[[isworkernode.m]] - returns true if running on a parallel worker node.&lt;br /&gt;
&lt;br /&gt;
[[pad.m]] – pads character strings with spaces.&lt;br /&gt;
&lt;br /&gt;
[[rearm.m]] - kernel integrity control, rearms the sniffer.&lt;br /&gt;
&lt;br /&gt;
[[report.m]] – Spinach kernel user feedback function, should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[sniff.m]] - kernel integrity control, kernel code modification sniffer.&lt;br /&gt;
&lt;br /&gt;
[[smack.m]] - forcibly shuts down the parallel pool and clears the workspace.&lt;br /&gt;
&lt;br /&gt;
[[summary.m]] – prints various summaries for Spinach kernel. Should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[symmetry.m]] - Symmetry treatment. This is a service function of the Spinach kernel that should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[tolerances.m]] – tolerance information for Spinach kernel. Should not be called directly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Cheap_norm.m&amp;diff=3770</id>
		<title>Cheap norm.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Cheap_norm.m&amp;diff=3770"/>
		<updated>2019-01-12T15:16:08Z</updated>

		<summary type="html">&lt;p&gt;Admin: Created page with &amp;quot;{{DISPLAYTITLE:cheap_norm.m}} __NOTOC__ The cheapest possible norm for various representations of matrices. CUDA stores matrices by rows, Matlab by columns, and polyadic objec...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:cheap_norm.m}} __NOTOC__&lt;br /&gt;
The cheapest possible norm for various representations of matrices. CUDA stores matrices by rows, Matlab by columns, and polyadic objects can only multiply vectors, in which case Algorithm 2.1 from Hager&amp;#039;s paper (https://doi.org/10.1137/S0895479899356080) is used with Higham&amp;#039;s extension to the complex case.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     n=cheap_norm(A)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
     A - a matrix, or a polyadic representation thereof&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
      n - infinity-norm for GPU arrays, 1-norm for CPU arrays,&lt;br /&gt;
          and Hager&amp;#039;s upper bound on 1-norm for polyadics&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
# Some norms are vastly more expensive than others, this function uses the cheapest ones available.&lt;br /&gt;
# In very rare cases, Hager&amp;#039;s algorithm stagnates. If this happens, drop us a note and we will implement Higham&amp;#039;s more recent work.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[clean_up.m]], [[frob_chop.m]], [[hdot.m]], [[mprealloc.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Tensor_train_module&amp;diff=3769</id>
		<title>Tensor train module</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Tensor_train_module&amp;diff=3769"/>
		<updated>2019-01-12T15:06:29Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Polyadic functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Kronecker product expressions appear naturally in spin dynamics because the state space of a multi-spin system is a direct product of the state spaces of individual spins. A simple example is provided by Cartesian projection operators:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{S}_{\left\{ \text{X,Y,Z} \right\}}^{\left( n \right)}=\mathbf{1}\otimes \mathbf{1}\otimes ...\otimes {{\hat{\sigma }}_{\left\{ \text{X,Y,Z} \right\}}}\otimes ...\otimes \mathbf{1}\otimes \mathbf{1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{1}&amp;lt;/math&amp;gt; denotes a unit matrix of appropriate dimension and the Pauli matrices &amp;lt;math&amp;gt;\left\{ {{{\hat{\sigma }}}_{\text{X}}},{{{\hat{\sigma }}}_{\text{Y}}},{{{\hat{\sigma }}}_{\text{Z}}} \right\}&amp;lt;/math&amp;gt; occur in the n-th position of the direct product sequence. If the Kronecker products are opened, the matrix is huge. But it is often possible to leave them closed.&lt;br /&gt;
&lt;br /&gt;
Although such representations have been known for a long time, they are rather hard to work with. In &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;, we made an attempt. Two types of unopened Kronecker product formats are supported - tensor trains and polyadics. Both are very space-efficient: enormous matrices can be packed into a few kilobytes. However, specialist knowledge of numerical linear algebra is required - this is deep water. &lt;br /&gt;
&lt;br /&gt;
==Creating tensor train and polyadic objects==&lt;br /&gt;
&lt;br /&gt;
The function that creates tensor trains is [[ttclass.m]]. Use [[polyadic.m]] for polyadics.&lt;br /&gt;
&lt;br /&gt;
==Tensor train functions==&lt;br /&gt;
&lt;br /&gt;
[[ttclass/amensolve.m]] - solves the linear system Ax=y using the AMEn iteration.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/amensum.m]] - tensor train summation without loss of accuracy.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/clearcoeff.m]] - absorbs the physical coefficient of the tensor train into its cores.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/conj.m]] - element-wise conjugation of a matrix in a TT representation.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/ctranspose.m]] - conjugate-transpose of a matrix in a TT representation.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/diag.m]] – mimics diag for matrices. If an input is ttclass matrix, returns a ttclass vector (matrix with 1 column) containing the diagonal. If an input is a vector, returns a diagonal matrix.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/dot.m]] – mimics the dot product operation for matrices.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/full.m]] – mimics the corresponding operation for sparse matrices. Computes all Kronecker products and returns full matrix. May result in out-of-memory errors for large matrices.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/hdot.m]] – the Hadamard  dot product operation.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/ismatrix.m]] - returns true for non-empty TT objects.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/isnumeric.m]] - returns true for non-empty TT objects&lt;br /&gt;
&lt;br /&gt;
[[ttclass/isreal.m]] - returns true for real-valued ttclass objects.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/kron.m]] - Kronecker product of tensor train representation of matrices.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/mean.m]] – mimics the corresponding operation for matrices. If the input is a ttclass matrix, returns a vector of its mean values along the specified dimension. If the input is a ttclass vector, returns the mean value in a scalar.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/minus.m]] - tensor train subtraction.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/mldivide.m]] - matrix left divide for TT objects.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/mrdivide.m]] - divides a tensor train by a scalar.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/mtimes.m]] - matrix product in the TT representation.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/nnz.m]] - number of non-zeros used by the TT object.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/numel.m]] - Number of elements in the matrix represented by a tensor train.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/norm.m]] – computes a norm of the ttclass object. Because of the internal structure of the tensor train format, only the Frobenius norm can be computed reasonably fast.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/ttort.m]] - TT orthogonalisation.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/pack.m]] - pack up the additions buffer.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/plus.m]] - tensor train addition.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/rand.m]] - random tensor trains.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/ranks.m]] – returns tensor train ranks of the tensor trains buffered in the ttclass.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/rdivide.m]] - divides a tensor train by a scalar.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/revert.m]] - computes a bit-revert permutation of a tensor train.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/shrink.m]] – compresses a given ttclass object into a single tensor train with optimal ranks.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/sizes.m]] – returns mode sizes of a ttclass object (dimensions of elementary matrices).&lt;br /&gt;
&lt;br /&gt;
[[ttclass/size.m]] - returns the size of the matrix represented by the tensor train.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/subsref.m]] - provides indexing functionality for tensor train objects.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/sum.m]] - mimics the corresponding operation for matrices. If the input is a ttclass matrix, returns a vector of its sums along the specified dimension. If an input is a ttclass vector, returns a sum of its values in a scalar.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/trace.m]] – returns the trace of a given matrix.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/transpose.m]] - transpose of a matrix represented by a tensor train.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/truncate.m]] - performs right-to-left SVD recompression for a tensor train.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/unit_like.m]] - unit tensor train with the same topology as the one supplied.&lt;br /&gt;
&lt;br /&gt;
[[ttclass/vec.m]] – reshapes a ttclass matrix into the ttclass vector with the same elements.&lt;br /&gt;
&lt;br /&gt;
==Polyadic functions==&lt;br /&gt;
&lt;br /&gt;
[[polyadic/ctranspose.m]] - conjugate-transpose operation.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/full.m]] - returns the matrix represented by the polyadic as a full matrix.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/gpuArray.m]] - uploads the components of the polyadic to GPU.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/inflate.m]] - returns the matrix represented by the polyadic as a sparse matrix.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/isempty.m]] - returns true for polyadics with zero dimensions.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/isfloat.m]] - returns true.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/ismatrix.m]] - returns true.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/isnumeric.m]] - returns true.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/kron.m]] - concatenates polyadics, which is equivalent to a Kronecker product.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/minus.m]] - buffered subtraction operation.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/mtimes.m]] - polyadic-times-scalar and polyadic-times-matrix operation.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/nnz.m]] - number of non-zeros in the cores of the polyadic.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/numel.m]] - number of elements in the matrix represented by a polyadic.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/plus.m]] - buffered addition operation.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/prefix.m]] - buffered multiplication operation.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/size.m]] - size of the matrix represented by the polyadic.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/suffix.m]] - buffered multiplication operation.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/transpose.m]] - transpose operation.&lt;br /&gt;
&lt;br /&gt;
[[polyadic/validate.m]] - polyadic object structure check.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]], [[Dmitry Savostyanov]], [[Sergey Dolgov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Polyadic/gpuArray.m&amp;diff=3768</id>
		<title>Polyadic/gpuArray.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Polyadic/gpuArray.m&amp;diff=3768"/>
		<updated>2019-01-12T15:05:42Z</updated>

		<summary type="html">&lt;p&gt;Admin: Created page with &amp;quot;{{DISPLAYTITLE:polyadic/gpuArray.m}} __NOTOC__ Uploads all components of a polyadic object to the GPU. The object still looks like a polyadic to Matlab, but all of its constit...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:polyadic/gpuArray.m}} __NOTOC__&lt;br /&gt;
Uploads all components of a polyadic object to the GPU. The object still looks like a polyadic to Matlab, but all of its constituent  matrices become gpuArrays.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     p=gpuArray(p)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
     p   - polyadic object&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     p   - polyadic object with all cores,&lt;br /&gt;
           prefixes and suffixes uploaded&lt;br /&gt;
           to the current GPU&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
GPUs are not good at permuting array dimensions. If you find yourself using polyadics, do check that the CPU isn&amp;#039;t faster.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[polyadic.m]], [[kronm.m]], [[polyadic/mtimes.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Kernel_utilities&amp;diff=3767</id>
		<title>Kernel utilities</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Kernel_utilities&amp;diff=3767"/>
		<updated>2019-01-12T14:58:15Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Spatial dynamics infrastructure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section provides brief list of the functionality found in the kernel utilities folder, in alphabetic order. Service functions that have no physical or algebraic applications are not listed. Details of usage, input and output are given in the function headers.&lt;br /&gt;
&lt;br /&gt;
==Reference data==&lt;br /&gt;
&lt;br /&gt;
[[spin.m]] - multiplicities and magnetogyric ratios for most isotopes in the periodic table.&lt;br /&gt;
&lt;br /&gt;
==Spin system editing==&lt;br /&gt;
&lt;br /&gt;
[[chemshifts.m]] - returns chemical shifts for all spins.&lt;br /&gt;
&lt;br /&gt;
[[cubic_lattice.m]] - generates a cubic lattice of spins.&lt;br /&gt;
&lt;br /&gt;
[[dilute.m]] – splits the spin system into independent subsystems, each containing only one instance of a &amp;quot;dilute&amp;quot; isotope.&lt;br /&gt;
&lt;br /&gt;
[[gtensorof.m]] - returns the g-tensor of the specified spin.&lt;br /&gt;
&lt;br /&gt;
[[isnucleus.m]] - true of the particle is a nucleus known to &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
[[kill_spin.m]] – removes the specified spins from the spin_system structure and updates all internal structures accordingly.&lt;br /&gt;
&lt;br /&gt;
[[shift_iso.m]] – replaces the isotropic parts of interaction tensors with user-supplied values.&lt;br /&gt;
&lt;br /&gt;
==Rotations==&lt;br /&gt;
&lt;br /&gt;
See the section on [[rotation conventions]] for the details of how rotations are stored and manipulated inside Spinach kernel.&lt;br /&gt;
&lt;br /&gt;
[[anax2dcm.m]] – converts angle-axis rotation parameters to directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[anax2quat.m]] – converts angle-axis rotation parameters into a quaternion.&lt;br /&gt;
&lt;br /&gt;
[[dcm2euler.m]] – converts a directional cosine matrix into Euler angles.&lt;br /&gt;
&lt;br /&gt;
[[dcm2quat.m]] – converts a directional cosine matrix into a quaternion.&lt;br /&gt;
&lt;br /&gt;
[[dcm2wigner.m]] – converts a directional cosine matrix into a Wigner matrix. &lt;br /&gt;
&lt;br /&gt;
[[euler2dcm.m]] – converts Euler angles into directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[rotor_stack.m]] - a rotor stack of Liouvillians or Hamiltonians.&lt;br /&gt;
&lt;br /&gt;
[[wigner.m]] – converts Euler angles into Wigner rotation matrix.&lt;br /&gt;
&lt;br /&gt;
[[quat2anax.m]] – converts a quaternion into an angle-axis specification.&lt;br /&gt;
&lt;br /&gt;
[[quat2dcm.m]] – converts a quaternion into a directional cosine matrix.&lt;br /&gt;
&lt;br /&gt;
[[xyz2sph.m]] - Cartesian into spherical coordinates.&lt;br /&gt;
&lt;br /&gt;
==Interaction specification conventions==&lt;br /&gt;
&lt;br /&gt;
[[ang2cgsppm.m]] - cubic Angstrom units of magnetic susceptibility into CGS ppm.&lt;br /&gt;
&lt;br /&gt;
[[anas2mat.m]] - anisotropy and asymmatry into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[axrh2mat.m]] - axiality and rhombicity into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[castep2nqi.m]] – converts CASTEP EFG tensor (it is printed in atomic units) to NQI tensor in Hz that is required by Spinach.&lt;br /&gt;
&lt;br /&gt;
[[cgsppm2ang.m]] - converts magnetic susceptibility from the cgs-ppm (aka cm^3/mol) units quoted by quantum chemistry packages into Angstrom^3 units required by Spinach pseudocontact shift functionality.&lt;br /&gt;
&lt;br /&gt;
[[conmat.m]] - molecular connectivity matrix.&lt;br /&gt;
&lt;br /&gt;
[[dihedral.m]] – calculates the dihedral angle defined by four sets of atomic coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[eeqq2nqi.m]] – converts literature conventions for the quadrupolar interaction specification into a 3x3 matrix in Hz.&lt;br /&gt;
&lt;br /&gt;
[[frac2cart.m]] – converts fractional crystallographic coordinates to Cartesian coordinates.&lt;br /&gt;
&lt;br /&gt;
[[g2freq.m]] - g-tensor units into frequencies.&lt;br /&gt;
&lt;br /&gt;
[[gauss2mhz.m]] – converts hyperfine coupling tensors from Gauss to MHz.&lt;br /&gt;
&lt;br /&gt;
[[hartree2joule.m]] – converts Hartree energy units to Joules.&lt;br /&gt;
&lt;br /&gt;
[[hz2icm.m]] - Hz units of energy into inverse centimetres.&lt;br /&gt;
&lt;br /&gt;
[[mat2axrh.m]] - axiality and rhombicity from a 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[mhz2gauss.m]] - converts hyperfine couplings from MHz into Gauss.&lt;br /&gt;
&lt;br /&gt;
[[mt2hz.m]] – converts hyperfine tensors from milliTesla to Hz.&lt;br /&gt;
&lt;br /&gt;
[[spsk2mat.m]] - span and skew into a 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[tsm2param.m]] - traceless symmetric matrix into axiality, asymmetry, and Euler angles.&lt;br /&gt;
&lt;br /&gt;
[[xyz2dd.m]] – converts coordinates and periodic boundary conditions into 3x3 dipolar coupling matrices.&lt;br /&gt;
&lt;br /&gt;
[[zfs2mat.m]] - converts D and E zero-field splitting parameters into a diagonal 3x3 spin interaction matrix.&lt;br /&gt;
&lt;br /&gt;
==SU(2) infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[hilb2liouv.m]] – converts Hilbert space operators into Liouville space superoperators or state vectors. See function header for further information.&lt;br /&gt;
&lt;br /&gt;
[[irr_sph_ten.m]] – returns an array of single-spin irreducible spherical tensor operators for a given spin multiplicity. The resulting spherical tensor operators are normalized to obey so(3) and su(2) commutation relations.&lt;br /&gt;
&lt;br /&gt;
[[ist_product_table.m]] - structure coefficient tables for the associateive envelopes of su(mult) algebras.&lt;br /&gt;
&lt;br /&gt;
[[pauli.m]] – Pauli matrices of a spin with user-specified multiplicity.&lt;br /&gt;
&lt;br /&gt;
[[sorensen.m]] - Sorensen bounds.&lt;br /&gt;
&lt;br /&gt;
[[stev2sph.m]] - converts Stevens coefficients into irreducible spherical tensor coefficients.&lt;br /&gt;
&lt;br /&gt;
[[stevens.m]] - extended Stevens operators. &lt;br /&gt;
&lt;br /&gt;
[[p_superop.m]] – right and left side product superoperators.&lt;br /&gt;
&lt;br /&gt;
==SO(3) infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[clebsch_gordan.m]] – Clebsch-Gordan coefficients using arbitrary-precision integer arithmetic.&lt;br /&gt;
&lt;br /&gt;
[[cg_fast.m]] - fast but less accurate Clebsch-Gordan coefficient calculation.&lt;br /&gt;
&lt;br /&gt;
[[logfactorial.m]] - logarithm of the factorial function.&lt;br /&gt;
&lt;br /&gt;
[[mat2sphten.m]] – translates 3x3 interaction tensors into irreducible spherical tensor coefficients.&lt;br /&gt;
&lt;br /&gt;
[[multipack.m]] - packs multipole moments from a linear stream into a cell array by rank.&lt;br /&gt;
&lt;br /&gt;
[[perm_group.m]] – a database of common finite groups.&lt;br /&gt;
&lt;br /&gt;
[[rwalk.m]] - random walk on SO(3).&lt;br /&gt;
&lt;br /&gt;
[[sphten2mat.m]] – irreducible spherical tensor coefficients into 3x3 matrix.&lt;br /&gt;
&lt;br /&gt;
[[spher_harmon.m]] – computes spherical harmonics.&lt;br /&gt;
&lt;br /&gt;
[[sle_operators.m]] - Wigner D function basis set and rotation generators.&lt;br /&gt;
&lt;br /&gt;
[[wigner.m]] – Wigner D matrices.&lt;br /&gt;
&lt;br /&gt;
[[wigner_3j.m]] - Wigner 3j-symbols.&lt;br /&gt;
&lt;br /&gt;
[[wigner_6j.m]] - Wigner 6j-symbols.&lt;br /&gt;
&lt;br /&gt;
==Spatial dynamics infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[corrfun.m]] – correlation functions for rotational diffution).&lt;br /&gt;
&lt;br /&gt;
[[fdhess.m]] – finite-difference Hessian operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdkup.m]] – finite-difference Kuprov operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdlap.m]] – finite-difference Laplace operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdmat.m]] – finite-difference operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdvec.m]] – finite-difference operators for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[fdweights.m]] – finite difference stencil weights.&lt;br /&gt;
&lt;br /&gt;
[[fpl2phan.m]] – partial trace with respect to spin degrees of freedom applied to a Fokker-Planck state vector.&lt;br /&gt;
&lt;br /&gt;
[[fpl2rho.m]] – partial trace with respect to spatial degrees of freedom applied to a Fokker-Planck state vector.&lt;br /&gt;
&lt;br /&gt;
[[hydrodynamics.m]] - hydrodynamics infrastructure provider.&lt;br /&gt;
&lt;br /&gt;
[[interpmat.m]] – interpolation matrices for the PCS module.&lt;br /&gt;
&lt;br /&gt;
[[oscillator.m]] - harmonic oscillator infrastructure provider.&lt;br /&gt;
&lt;br /&gt;
[[overwound.m]] - spatial frequency distribution diagnostics.&lt;br /&gt;
&lt;br /&gt;
[[phan2fpl.m]] – projects a phantom into the Fokker-Planck space.&lt;br /&gt;
&lt;br /&gt;
==State space indexing and manipulation==&lt;br /&gt;
&lt;br /&gt;
[[lin2lm.m]] – converts the linear indexing state specification (used by Spinach to build matrix representations of spin operators) into L,M indexing, where L is the rank and M is the projection quantum number of an irreducible spherical tensor. In the linear indexing convention, the states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection.&lt;br /&gt;
&lt;br /&gt;
[[lm2lin.m]] – converts L,M spin state specification to linear indexing specification used by Spinach to build matrix representations of spin operators. In the linear indexing convention, the states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection.&lt;br /&gt;
&lt;br /&gt;
[[lin2lmn.m]] – converts the linear indexing Wigner function specification (used by Spinach to build matrix representations of rotational diffusion operators) into L,M,N indices that enumerate Wigner matrix elements. In the linear indexing convention, the Wigner functions are listed in the order of increasing L rank. Within each L rank, the functions are listed in the order of decreasing left index, and, for each left index, in the order of decreasing right index.&lt;br /&gt;
&lt;br /&gt;
[[lmn2lin.m]] – converts L,M,N Wigner function specification to linear indexing specification used by Spinach to build matrix representations of rotational diffusion operators. In the linear indexing convention, the Wigner functions are listed in the order of increasing L rank. Within each L rank, the functions are listed in the order of decreasing left index, and, for each left index, in the order of decreasing right index.&lt;br /&gt;
&lt;br /&gt;
[[scomponents.m]] – computes the strongly connected components of a graph. Returns an index for the component number of every vertex in the graph with the given adjacency matrix. Algorithm description is at http://dx.doi.org/10.1137/0201010&lt;br /&gt;
&lt;br /&gt;
[[sinkhole.m]] – designates specific states as sinkholes -- any population reaching them would stay in them forever in a frozen state. This function is only available in sphten-liouv formalism.&lt;br /&gt;
&lt;br /&gt;
[[sparse2csr.m]] – computes a partial Compressed Row Storage transformation for a given Matlab sparse matrix. Only returns the index arrays and ignores the values.&lt;br /&gt;
&lt;br /&gt;
[[path_trace.m]] – Liouvillian path tracing. Treats the user-supplied Liouvillian as the adjacency matrix of a graph, computes the weakly connected subgraphs of that graph and returns a cell array of projectors into the corresponding independently evolving subspaces. This function runs in linear time with respect to the number of non-zeros of a matrix, but provides cubic benefit by effectively block-diagonalizing the Liouvillian.&lt;br /&gt;
&lt;br /&gt;
A significant number of independently evolving or dropped subspaces is often an indication of an overlooked symmetry or a conservation law – it is a good idea to examine  the dropped subspaces and try finding out why they are not being populated.&lt;br /&gt;
The efficiency of the path tracing procedure depends on the choice of the basis set. For the spherical tensor basis sets used in Spinach, there are usually at least two (in some EPR examples), and sometimes over a hundred (in large HSQC examples) independent subspaces, depending on the calculation type and spin interactions present.&lt;br /&gt;
&lt;br /&gt;
[[dfpt.m]] – depth-first path tracing module. Analyses the system connectivity graph and creates a list of all connected subgraphs of up to the user-specified size by crawling the graph in all available directions. Used in the construction of connectivity-adaptive basis sets.&lt;br /&gt;
&lt;br /&gt;
[[svd_shrink.m]] – generates a minimal set of vector-covector pairs for the parallel propagation in Hilbert space.&lt;br /&gt;
&lt;br /&gt;
[[stitch.m]] – runs the stitching stage of bidirectional 3D NMR simulations.&lt;br /&gt;
&lt;br /&gt;
[[zte.m]] – zero track elimination function. Inspects the first few steps in the system trajectory and drops the states that did not get populated to a user-specified tolerance. See Kuprov group publications for further details of this particular approximation.&lt;br /&gt;
&lt;br /&gt;
[[human2opspec.m]] – converts human-readable operator specifications into operators specifications understood by the operator generation functions of Spinach kernel.&lt;br /&gt;
&lt;br /&gt;
==Data analysis and plotting==&lt;br /&gt;
&lt;br /&gt;
[[apodization.m]] – performs free induction decay apodization. Supports 1D, 2D and 3D FIDs.&lt;br /&gt;
&lt;br /&gt;
[[axis_1d.m]] - axis ticks for plotting 1D spectra.&lt;br /&gt;
&lt;br /&gt;
[[crop_2d.m]] - Crops 2D spectra to user-specified ranges.&lt;br /&gt;
&lt;br /&gt;
[[int_2d.m]] – 2D spectral integration utility.&lt;br /&gt;
&lt;br /&gt;
[[molplot.m]] – stick plots of molecules.&lt;br /&gt;
&lt;br /&gt;
[[plot_1d.m]] – 1D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_2d.m]] – 2D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_3d.m]] – 3D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[slice_2d.m]] – displays slices of 2D spectra.&lt;br /&gt;
&lt;br /&gt;
[[mri_2d_plot.m]] - 2D MRI plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[sweep2ticks.m]] – converts spectral sweep width information into a vector of frequency axis ticks.&lt;br /&gt;
&lt;br /&gt;
[[volplot.m]] – volumetric plotting.&lt;br /&gt;
&lt;br /&gt;
[[zoom_3d.m]] - zooming into 3D data cubes.&lt;br /&gt;
&lt;br /&gt;
==Relaxation theory==&lt;br /&gt;
&lt;br /&gt;
[[blinv.m]] - Blicharsky invariants of a matrix.&lt;br /&gt;
&lt;br /&gt;
[[magpump.m]] - phenomenological pumping terms for the relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[ngce.m]] - numerical generalised cumulant expansion.&lt;br /&gt;
&lt;br /&gt;
[[r1csa2tauc.m]] - estimate of rotational correlation time from longitudinal CSA relaxation rate.&lt;br /&gt;
&lt;br /&gt;
[[r2csa2tauc.m]] - estimate of rotational correlation time from transverse CSA relaxation rate.&lt;br /&gt;
&lt;br /&gt;
[[rlx_scalar.m]] - scalar relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[rlx_split.m]] - longitudinal, transverse, and mixed components of a relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
[[rlx_t1_t2.m]] - extended T1/T2 model relaxation superoperator.&lt;br /&gt;
&lt;br /&gt;
== Numerical infrastructure==&lt;br /&gt;
&lt;br /&gt;
[[binpack.m]] - a simple bin packing algorithm.&lt;br /&gt;
&lt;br /&gt;
[[clean_up.m]] – sparse matrix clean-up utility.&lt;br /&gt;
&lt;br /&gt;
[[dirdiff.m]] – directional derivatives of matrix exponentials.&lt;br /&gt;
&lt;br /&gt;
[[expdrop.m]] - Exponential drop function.&lt;br /&gt;
&lt;br /&gt;
[[expmint.m]] – matrix exponential integrals.&lt;br /&gt;
&lt;br /&gt;
[[fftdiff.m]] - Fourier spectral differentiation kernel.&lt;br /&gt;
&lt;br /&gt;
[[fourdif.m]] - Fourier spectral differentiation matrices.&lt;br /&gt;
&lt;br /&gt;
[[fourlap.m]] - Fourier spectral Laplacian.&lt;br /&gt;
&lt;br /&gt;
[[frob_chop.m]] - Truncates SVD decomposition to the user-specified threshold in the Frobenius norm.&lt;br /&gt;
&lt;br /&gt;
[[gaussfun.m]] - Normalized Gaussian function in magnetic resonance notation.&lt;br /&gt;
&lt;br /&gt;
[[hdot.m]] – Hadamard matrix product.&lt;br /&gt;
&lt;br /&gt;
[[issquare.m]] - returns true for square matrices.&lt;br /&gt;
&lt;br /&gt;
[[jacobianest.m]] - numerical Jacobian estimation.&lt;br /&gt;
&lt;br /&gt;
[[krondelta.m]] – Kronecker&amp;#039;s delta symbol.&lt;br /&gt;
&lt;br /&gt;
[[lorentzfun.m]] - Normalized Lorentzian function in magnetic resonance notation.&lt;br /&gt;
&lt;br /&gt;
[[md5_hash.m]] – returns MD5 hashes of matrices.&lt;br /&gt;
&lt;br /&gt;
[[mprealloc.m]] – preallocates an operator in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[picks.m]] - all picks of the specified number of elements from the vector provided, without repetitions.&lt;br /&gt;
&lt;br /&gt;
[[unit_oper.m]] – returns a unit operator in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[unit_state.m]] – returns a unit state in the current formalism and basis.&lt;br /&gt;
&lt;br /&gt;
[[snormpdf.m]] - Azzalini&amp;#039;s skew normal distribution.&lt;br /&gt;
&lt;br /&gt;
==Integration grids==&lt;br /&gt;
&lt;br /&gt;
[[gaussleg.m]] - Gauss-Legendre quadrature grids and weights.&lt;br /&gt;
&lt;br /&gt;
[[get_hull.m]] - generates a convex hull of a two-angle grid for 2D surface plotting.&lt;br /&gt;
&lt;br /&gt;
[[grid_kron.m]] - spherical grid direct product.&lt;br /&gt;
&lt;br /&gt;
[[grid_test.m]] - plots grid integration quality as a function of spherical rank.&lt;br /&gt;
&lt;br /&gt;
[[repulsion.m]] - generates REPULSION grids on a unit hypersphere.&lt;br /&gt;
&lt;br /&gt;
[[shrewd.m]] - computes SHREWD weights for a given two- or three-angle spherical grid.&lt;br /&gt;
&lt;br /&gt;
[[zfs_sampling.m]] - returns optimal ZFS distribution integration information.&lt;br /&gt;
&lt;br /&gt;
==Housekeeping functions==&lt;br /&gt;
&lt;br /&gt;
[[banner.m]] - prints console banners.&lt;br /&gt;
&lt;br /&gt;
[[dipolar.m]] – converts coordinates into dipolar coupling tensors. This function is called by Spinach kernel and should not be used directly.&lt;br /&gt;
&lt;br /&gt;
[[existentials.m]] – kernel integrity control, checks for function name collisions.&lt;br /&gt;
&lt;br /&gt;
[[exorcise.m]] - enforces the house style on the &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; code base.&lt;br /&gt;
&lt;br /&gt;
[[iseye.m]] - returns true for unit matrices.&lt;br /&gt;
&lt;br /&gt;
[[isworkernode.m]] - returns true if running on a parallel worker node.&lt;br /&gt;
&lt;br /&gt;
[[pad.m]] – pads character strings with spaces.&lt;br /&gt;
&lt;br /&gt;
[[rearm.m]] - kernel integrity control, rearms the sniffer.&lt;br /&gt;
&lt;br /&gt;
[[report.m]] – Spinach kernel user feedback function, should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[sniff.m]] - kernel integrity control, kernel code modification sniffer.&lt;br /&gt;
&lt;br /&gt;
[[smack.m]] - forcibly shuts down the parallel pool and clears the workspace.&lt;br /&gt;
&lt;br /&gt;
[[summary.m]] – prints various summaries for Spinach kernel. Should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[symmetry.m]] - Symmetry treatment. This is a service function of the Spinach kernel that should not be called directly.&lt;br /&gt;
&lt;br /&gt;
[[tolerances.m]] – tolerance information for Spinach kernel. Should not be called directly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=File:Overwound_example.png&amp;diff=3766</id>
		<title>File:Overwound example.png</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=File:Overwound_example.png&amp;diff=3766"/>
		<updated>2019-01-12T14:57:16Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Overwound.m&amp;diff=3765</id>
		<title>Overwound.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Overwound.m&amp;diff=3765"/>
		<updated>2019-01-12T14:56:50Z</updated>

		<summary type="html">&lt;p&gt;Admin: Created page with &amp;quot;{{DISPLAYTITLE:overwound.m}} __NOTOC__ Checks if a Fokker-Planck state vector has any spatial frequencies that its spatial grid is dangerously close to misrepresenting due to...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:overwound.m}} __NOTOC__&lt;br /&gt;
Checks if a Fokker-Planck state vector has any spatial frequencies that its spatial grid is dangerously close to misrepresenting due to insufficient point count.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     overwound(rho,spc_dim,spn_dim)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
     rho      - Fokker-Planck state vector or&lt;br /&gt;
                a bookshelf stack thereof&lt;br /&gt;
 &lt;br /&gt;
     spc_dim  - spatial dimensions of the Fokker-&lt;br /&gt;
                Planck problem, [X Y Z]&lt;br /&gt;
 &lt;br /&gt;
     spn_dim  - spin dimension of the Fokker-&lt;br /&gt;
                Planck problem&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     figures and diagnostic messages to the console&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
An example of the spatial frequency distribution after the first chirp pulse of the [[psyche.m]] pulse sequence appears below.&lt;br /&gt;
&lt;br /&gt;
[[File:overwound_example.png]]&lt;br /&gt;
&lt;br /&gt;
In this case, the grid point count must be increased because some frequencies are folded.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
If you are running spatial dynamics, such as diffusion and and flow, with finite difference derivative operators, the spatial grid point count should be set to several times the minimum Nyquist value.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[imaging.m]], [[hydrodynamics.m]], [[g2fplanck.m]], [[phan2fpl.m]], [[fpl2phan.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3764</id>
		<title>Built-in experiments</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3764"/>
		<updated>2019-01-12T14:46:44Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* NMR experiments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section contains a list of the pre-programmed pulse sequences supplied with &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;. Everything is open-source, so feel free to hack and modify as appropriate. If your particular sequence is not listed below, or if you have written something that is worthy of broad public adoption, drop us a note – we are always interested in expanding &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; capabilities. &lt;br /&gt;
&lt;br /&gt;
Unless stated otherwise in the experiment description, all of the functions listed below below should be invoked &amp;#039;&amp;#039;via&amp;#039;&amp;#039; a [[kernel contexts|kernel context]] function that sets the appropriate (solid, liquid, &amp;#039;&amp;#039;etc.&amp;#039;&amp;#039;) simulation infrastructure.&lt;br /&gt;
==General experiments==&lt;br /&gt;
&lt;br /&gt;
[[acquire.m]] – simple forward time evolution with signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[cpmg.m]] - CPMG echo train with detection.&lt;br /&gt;
&lt;br /&gt;
[[holeburn.m]] - hole burning experiment.&lt;br /&gt;
&lt;br /&gt;
[[hp_acquire.m]] – standard hard pulse acquire sequence. The user must supply the pulse operator, the pulse duration and the initial condition.&lt;br /&gt;
&lt;br /&gt;
[[impound.m]] - captures what it receives from the context function and returns it to the user.&lt;br /&gt;
&lt;br /&gt;
[[levelpop.m]] - energy levels and their populations.&lt;br /&gt;
&lt;br /&gt;
[[relaxan.m]] - automated relaxation theory analysis. &lt;br /&gt;
&lt;br /&gt;
[[slowpass.m]] – calculates spectrum values at the user specified frequency positions using the Fourier transform of the Liouville - von Neumann equation. The biggest advantage over the fid + fft style detection is easy parallelization and the possibility of getting spectrum values at specific frequencies without recalculating the entire free induction decay.&lt;br /&gt;
&lt;br /&gt;
[[sp_acquire.m]] - a pulse-acquire sequence with a soft pulse.&lt;br /&gt;
&lt;br /&gt;
[[traject.m]] - simple forward time evolution, trajectory is returned as a stack of density matrices.&lt;br /&gt;
&lt;br /&gt;
==NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[clip_hsqc.m]] – CLIP-HSQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[cn2d_sq.m]] – CN2D experiment under MAS, single-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cn2d_dq.m]] – CN2D experiment under MAS, double-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cosy.m]] – phase-sensitive COSY pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[crosspol.m]] – cross-polarization experiment.&lt;br /&gt;
&lt;br /&gt;
[[dante.m]] - DANTE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dept.m]]  - DEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dqf_cosy.m]] – phase-sensitive double-quantum filtered COSY pulse sequence&lt;br /&gt;
&lt;br /&gt;
[[hetcor.m]] – magnitude mode HETCOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[hmqc.m]] – magnitude mode HMQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[hnco.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hncoca.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hsqc.m]] – phase-sensitive HSQC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inept.m]] - INEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inv_rec.m]] - inversion-revocery sequence.&lt;br /&gt;
&lt;br /&gt;
[[lcosy.m]] – localised COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[m2s.m]] - magnetisation to singlet state.&lt;br /&gt;
&lt;br /&gt;
[[mqmas.m]] - 2D multiple-quantum MAS pulse sequence for quadrupolar nuclei. &lt;br /&gt;
&lt;br /&gt;
[[mqs.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[mqs_refocus.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesy.m]] – phase-sensitive homonuclear NOESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesyhsqc.m]] – phase-sensitive NOESY-HSQC pulse sequence. Hard-wired to 1H, 15N, 1H.&lt;br /&gt;
&lt;br /&gt;
[[pansy_cosy.m]] - PANSY-COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[respiration.m]] - RESPIRATION CP pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[roesy.m]] - phase-sensitive homonuclear ROESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[s2m.m]] - singlet state to magnetisation.&lt;br /&gt;
&lt;br /&gt;
[[sat_rec.m]] - saturation-recovery sequence.&lt;br /&gt;
&lt;br /&gt;
[[tocsy.m]] - amplitude-mode homonuclear TOCSY.&lt;br /&gt;
&lt;br /&gt;
==Spatially encoded NMR==&lt;br /&gt;
&lt;br /&gt;
===Ultrafast, pure-shift, and diffusion NMR===&lt;br /&gt;
&lt;br /&gt;
[[spencosy.m]] - ultrafast COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosy.m]] - ultrafast DOSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosycosy.m]] - ultrafast 3D DOSY-COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[psyche.m]] - PSYCHE 1D pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[ufmq.m]] - ultrafast multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[st_ideal.m]] - ideal Stejskal-Tanner pulse sequence.&lt;br /&gt;
&lt;br /&gt;
===Gradient signal suppression===&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_select.m]] - DPFGSE signal selection&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_suppress.m]] - DPFGSE signal suppression&lt;br /&gt;
&lt;br /&gt;
==Magnetic resonance imaging==&lt;br /&gt;
{{:mri_sequence_list}}&lt;br /&gt;
&lt;br /&gt;
==Overtone NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[overtone_a.m]] - overtone signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[overtone_cp.m]] - overtone cross-polarisation.&lt;br /&gt;
&lt;br /&gt;
[[overtone_pa.m]] - overtone pulse-acquire.&lt;br /&gt;
&lt;br /&gt;
[[overtone_dante.m]] - overtone DANTE.&lt;br /&gt;
&lt;br /&gt;
==ESR experiments==&lt;br /&gt;
&lt;br /&gt;
[[endor_cw.m]] – continuous-wave ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_mims.m]] – Mims ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_davies.m]] - Davies ENDOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[eseem.m]] – ESEEM pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[fieldsweep.m]] - field sweep ESR experiment using steady state formalism.&lt;br /&gt;
&lt;br /&gt;
[[hyscore.m]] – HYSCORE experiment.&lt;br /&gt;
&lt;br /&gt;
[[oopeseem.m]] - out-of-phase ESEEM experiment.&lt;br /&gt;
&lt;br /&gt;
[[rapidscan.m]] - ESR rapid field scan experiment.&lt;br /&gt;
&lt;br /&gt;
[[ridme.m]] - RIDME pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[sifter.m]] - SIFTER experiment&lt;br /&gt;
&lt;br /&gt;
==DEER/PELDOR experiments==&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_echo.m]] - echo diagnostocs for ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_deer.m]] - ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_deer.m]] - three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_hole.m]] - pulse hole diagnostics for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_diag.m]] - full diagnostics suite for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_deer.m]] - four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_hole.m]] - pulse hole diagnostics for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_diag.m]] - full diagnostics suite for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
==DNP experiments==&lt;br /&gt;
&lt;br /&gt;
[[dnp_field_scan.m]] – field scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[dnp_freq_scan.m]] – frequency scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[solid_effect.m]] – large-scale simulation of solid effect DNP.&lt;br /&gt;
&lt;br /&gt;
[[masdnp.m]] - magic angle spinning DNP.&lt;br /&gt;
&lt;br /&gt;
==Paramagnetic NMR spectroscopy==&lt;br /&gt;
&lt;br /&gt;
[[centroid.m]] - centre of mass point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
[[csa2racs.m]] - residual anisotropic chemical shift.&lt;br /&gt;
&lt;br /&gt;
[[eqmag.m]] - molar magnetization vector at the thermal equilibrium. &lt;br /&gt;
&lt;br /&gt;
[[fieldscan_enlev.m]] - energy levels as a function of the magnetic field.&lt;br /&gt;
&lt;br /&gt;
[[fieldscan_magn.m]] - Z magnetisation in a finite-speed field sweep.&lt;br /&gt;
&lt;br /&gt;
[[geffect.m]] - Effective g-tensor for a user-specified Kramers doublet.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pcs.m]] - computes pseudocontact shifts from hyperfine couplings and susceptibility tensors.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pms.m]] - computes paramagnetic shifts (contact + pseudocontact) from hyperfine couplings and susceptibility data.&lt;br /&gt;
&lt;br /&gt;
[[ipcs.m]] – tag probability density recovery from pseudocontact shifts..&lt;br /&gt;
&lt;br /&gt;
[[ippcs.m]] – point electron model fitting to PCS data.&lt;br /&gt;
&lt;br /&gt;
[[kpcs.m]] – PCS calculation using Kuprov equation. &lt;br /&gt;
&lt;br /&gt;
[[pms2chi.m]] - extracts magnetic susceptibility tensors from paramagnetic shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs2chi.m]] - extracts rank 2 components of the magnetic susceptibility tensors from pseudocontact shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs_combi_fit.m]] - PCS data fitting with ambiguous assignments.&lt;br /&gt;
&lt;br /&gt;
[[ppcs.m]] - Computes pseudocontact shift from a point electron centre at the nuclear coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[probmax.m]] - maximum point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
==Exotica==&lt;br /&gt;
[[rydmr.m]] – singlet-singlet RYDMR experiment with exponential recombination function, as described in the paper by Timmel and co-authors.&lt;br /&gt;
&lt;br /&gt;
[[zerofield.m]] - gamma-weighted pulse-acquire sequence in zero field.&lt;br /&gt;
&lt;br /&gt;
[[zulf_abrupt.m]] - zero-field NMR with an abrupt field drop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=File:Pansy_camphor.png&amp;diff=3763</id>
		<title>File:Pansy camphor.png</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=File:Pansy_camphor.png&amp;diff=3763"/>
		<updated>2019-01-12T14:45:56Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Pansy_cosy.m&amp;diff=3762</id>
		<title>Pansy cosy.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Pansy_cosy.m&amp;diff=3762"/>
		<updated>2019-01-12T14:45:24Z</updated>

		<summary type="html">&lt;p&gt;Admin: Created page with &amp;quot;{{DISPLAYTITLE:pansy_cosy.m}} __NOTOC__ Magnitude mode PANSY-COSY pulse sequence from Figure 1a in the paper by Kupce, Freeman, and John: http://dx.doi.org/0.1021/ja0634876  =...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:pansy_cosy.m}} __NOTOC__&lt;br /&gt;
Magnitude mode PANSY-COSY pulse sequence from Figure 1a in the paper by Kupce, Freeman, and John: http://dx.doi.org/0.1021/ja0634876&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     fid=pansy_cosy(spin_system,parameters,H,R,K)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
    parameters.spins   - nuclei on which the sequence runs,&lt;br /&gt;
                         e.g. {&amp;#039;1H&amp;#039;,&amp;#039;13C&amp;#039;}&lt;br /&gt;
 &lt;br /&gt;
    parameters.sweep   - a vector with two sweep widths in Hz&lt;br /&gt;
 &lt;br /&gt;
    parameters.npoints - a vector of integers specifying &lt;br /&gt;
                         point count in each dimension&lt;br /&gt;
 &lt;br /&gt;
    H - Hamiltonian matrix, received from context function&lt;br /&gt;
 &lt;br /&gt;
    R - relaxation superoperator, received from context function&lt;br /&gt;
 &lt;br /&gt;
    K - kinetics superoperator, received from context function&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
    fid.aa - magnitude mode COSY FID on F1,F1 nuclei&lt;br /&gt;
 &lt;br /&gt;
    fid.ab - magnitude mode COSY FID on F1,F2 nuclei&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
An example of a PANSY-COSY simulation for camphor (examples/nmr_liquids/pansy_camphor.m) appears below.&lt;br /&gt;
&lt;br /&gt;
[[File:pansy_camphor.png]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Decoupling with respect to either of the working nuclei is impossible in this pulse sequence.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[cosy.m]], [[noesy.m]], [[hsqc.m]], [[hmqc.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Andrew Porter]], [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Import,_export,_and_visualisation&amp;diff=3761</id>
		<title>Import, export, and visualisation</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Import,_export,_and_visualisation&amp;diff=3761"/>
		<updated>2019-01-12T14:26:37Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* Data export and plotting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; is not intended to be a data processing package. The functions listed below assist in importing simulation settings and exporting simulation results into formats that are readable to data processing software.&lt;br /&gt;
&lt;br /&gt;
==Tensor visualisation==&lt;br /&gt;
[[cst_display.m]] – visualizes chemical shielding tensors and their eigensystems.&lt;br /&gt;
&lt;br /&gt;
[[hfc_display.m]] – visualizes hyperfine coupling tensors and their eigensystems. &lt;br /&gt;
&lt;br /&gt;
==Data import==&lt;br /&gt;
[[cyprinol.m]] – returns Spinach input structures for the spin system of cyprinol.&lt;br /&gt;
&lt;br /&gt;
[[fatty_acid.m]] - a reasonable approximation to a fatty acid spin system.&lt;br /&gt;
&lt;br /&gt;
[[gissmo2spinach.m]] - reads GISSMO XML files.&lt;br /&gt;
&lt;br /&gt;
[[gparse.m]] – a parser for Gaussian03 and Gaussian09 calculation logs.&lt;br /&gt;
&lt;br /&gt;
[[g2spinach.m]] – converts [[gparse.m]] output into &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; input structures.&lt;br /&gt;
&lt;br /&gt;
[[karplus_fit.m]] – performs Karplus coefficient estimation from a Gaussian J-coupling scan.&lt;br /&gt;
&lt;br /&gt;
[[killcross.m]] - zeroes the specified rows and columns of a matrix.&lt;br /&gt;
&lt;br /&gt;
[[killdiag.m]] - zeroes out the diagonal of a 2D spectrum.&lt;br /&gt;
&lt;br /&gt;
[[methyl_group.m]] - coordinates for the four atoms of a methyl group.&lt;br /&gt;
&lt;br /&gt;
[[nuclacid.m]] - nucleic acid data import from PDB and BMRB data.&lt;br /&gt;
&lt;br /&gt;
[[oparse.m]] - a parser for ORCA logs.&lt;br /&gt;
&lt;br /&gt;
[[ocparse.m]] - a parser for ORCA cubes.&lt;br /&gt;
&lt;br /&gt;
[[parsexml.m]] - converts an XML file into a Matlab structure.&lt;br /&gt;
&lt;br /&gt;
[[protein.m]] – protein data import from PDB and BMRB data.&lt;br /&gt;
&lt;br /&gt;
[[read_pdb_nuc.m]] - reads PDB data for nucleic acids.&lt;br /&gt;
&lt;br /&gt;
[[read_pdb_pro.m]] - reads PDB data for proteins.&lt;br /&gt;
&lt;br /&gt;
[[read_bmrb.m]] - reads BMRB data for proteins.&lt;br /&gt;
&lt;br /&gt;
[[s2spinach.m]] – reads SIMPSON spin system specification and converts it into Spinach format.&lt;br /&gt;
&lt;br /&gt;
[[strychnine.m]] – returns Spinach input structures for the spin system of strychnine.&lt;br /&gt;
&lt;br /&gt;
[[v2spinach.m]] - Varian NMR data import.&lt;br /&gt;
&lt;br /&gt;
[[x2spinach.m]] - reads SpinXML files and forms Spinach data structures.&lt;br /&gt;
&lt;br /&gt;
==Data export and plotting==&lt;br /&gt;
&lt;br /&gt;
[[axis_1d.m]] - axis ticks for plotting 1D spectra.&lt;br /&gt;
&lt;br /&gt;
[[bwr_cmap.m]] - blue-white-red colour map with white at zero.&lt;br /&gt;
&lt;br /&gt;
[[crop_2d.m]] - Crops 2D spectra to user-specified ranges.&lt;br /&gt;
&lt;br /&gt;
[[cylgrid.m]] - cylindrical axis system.&lt;br /&gt;
&lt;br /&gt;
[[fid2ascii.m]] – writes out 1D, 2D and 3D free induction decays generated by Spinach as ASCII files.&lt;br /&gt;
&lt;br /&gt;
[[int_2d.m]] – 2D spectral integration utility.&lt;br /&gt;
&lt;br /&gt;
[[molplot.m]] – stick plots of molecules.&lt;br /&gt;
&lt;br /&gt;
[[mri_2d_plot.m]] - MRI image plotting with a black-and-white colour map.&lt;br /&gt;
&lt;br /&gt;
[[plot_1d.m]] – 1D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_2d.m]] – 2D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_3d.m]] – 3D spectral plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[plot_uf.m]] - 2D ultrafast spectra plotting utility.&lt;br /&gt;
&lt;br /&gt;
[[s2json.m]] - writes out JSON files that can be read by MestreNova.&lt;br /&gt;
&lt;br /&gt;
[[slice_2d.m]] – displays slices of 2D spectra.&lt;br /&gt;
&lt;br /&gt;
[[volplot.m]] – volumetric ploting.&lt;br /&gt;
&lt;br /&gt;
[[write_movie.m]] - rotation movies for 3D plots.&lt;br /&gt;
&lt;br /&gt;
[[zoom_3d.m]] - zooming into 3D data cubes.&lt;br /&gt;
&lt;br /&gt;
==Artefact removal==&lt;br /&gt;
[[destreak.m]] – reduces streak artefacts in 2D and 3D NMR spectra.&lt;br /&gt;
&lt;br /&gt;
==External calls and interfaces==&lt;br /&gt;
[[bootstrap.m]] - creates an empty spin_system structure that allows many &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; functions to be used externally.&lt;br /&gt;
&lt;br /&gt;
[[py_run.m]] - Bruker Xepr python script execution.&lt;br /&gt;
&lt;br /&gt;
[[awg_interface.m]] - Bruker SpinJet AWG interface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.2, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Plot_uf.m&amp;diff=3760</id>
		<title>Plot uf.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Plot_uf.m&amp;diff=3760"/>
		<updated>2019-01-12T14:25:39Z</updated>

		<summary type="html">&lt;p&gt;Admin: Created page with &amp;quot;{{DISPLAYTITLE:plot_uf.m}} __NOTOC__ Plotting utility for ultrafast constant-time 2D pulse sequences.  ==Syntax==       plot_uf(spin_system,spectrum_uf,parameters)  ==Argument...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:plot_uf.m}} __NOTOC__&lt;br /&gt;
Plotting utility for ultrafast constant-time 2D pulse sequences.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     plot_uf(spin_system,spectrum_uf,parameters)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
   spectrum_uf               - a real matrix containing the 2D UF NMR &lt;br /&gt;
                               spectrum&lt;br /&gt;
 &lt;br /&gt;
   parameters.spins          - cell array with one ot two character&lt;br /&gt;
                               strings specifying the working spins&lt;br /&gt;
 &lt;br /&gt;
   parameters.dims           - sample dimension, m&lt;br /&gt;
 &lt;br /&gt;
   parameters.deltat         - time step for the acquisition gradient, s&lt;br /&gt;
 &lt;br /&gt;
   parameters.npoints        - number of points in the acquisition&lt;br /&gt;
                               gradient&lt;br /&gt;
 &lt;br /&gt;
   parameters.Ga             - amplitude of the acquisition gradient, T/m&lt;br /&gt;
 &lt;br /&gt;
   parameters.offset         - two transmitter offsets for the &lt;br /&gt;
                               conventional and uf dimension, Hz                             &lt;br /&gt;
 &lt;br /&gt;
   parameters.axis_units     - axis units (&amp;#039;ppm&amp;#039; or &amp;#039;Hz&amp;#039;)&lt;br /&gt;
 &lt;br /&gt;
   parameters.offset_uf_cov  - offset between chemical shifts of a MQ&lt;br /&gt;
                               along the F1 dimension of a conventional&lt;br /&gt;
                               and an UF spectra (&amp;#039;ppm&amp;#039; or &amp;#039;Hz&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     a figure with correct axis ticks axes in the UF and conventional&lt;br /&gt;
     dimension&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[plot_1d.m]], [[plot_2d.m]], [[plot_3d.m]], [[mri_2d_plot.m]], [[volplot.m]], [[molplot.m]], [[hfc_display.m]], [[cst_display.m]], [[trajan.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Maria Grazia Concilio]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3759</id>
		<title>Built-in experiments</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Built-in_experiments&amp;diff=3759"/>
		<updated>2019-01-12T14:19:36Z</updated>

		<summary type="html">&lt;p&gt;Admin: /* NMR experiments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section contains a list of the pre-programmed pulse sequences supplied with &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039;. Everything is open-source, so feel free to hack and modify as appropriate. If your particular sequence is not listed below, or if you have written something that is worthy of broad public adoption, drop us a note – we are always interested in expanding &amp;#039;&amp;#039;Spinach&amp;#039;&amp;#039; capabilities. &lt;br /&gt;
&lt;br /&gt;
Unless stated otherwise in the experiment description, all of the functions listed below below should be invoked &amp;#039;&amp;#039;via&amp;#039;&amp;#039; a [[kernel contexts|kernel context]] function that sets the appropriate (solid, liquid, &amp;#039;&amp;#039;etc.&amp;#039;&amp;#039;) simulation infrastructure.&lt;br /&gt;
==General experiments==&lt;br /&gt;
&lt;br /&gt;
[[acquire.m]] – simple forward time evolution with signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[cpmg.m]] - CPMG echo train with detection.&lt;br /&gt;
&lt;br /&gt;
[[holeburn.m]] - hole burning experiment.&lt;br /&gt;
&lt;br /&gt;
[[hp_acquire.m]] – standard hard pulse acquire sequence. The user must supply the pulse operator, the pulse duration and the initial condition.&lt;br /&gt;
&lt;br /&gt;
[[impound.m]] - captures what it receives from the context function and returns it to the user.&lt;br /&gt;
&lt;br /&gt;
[[levelpop.m]] - energy levels and their populations.&lt;br /&gt;
&lt;br /&gt;
[[relaxan.m]] - automated relaxation theory analysis. &lt;br /&gt;
&lt;br /&gt;
[[slowpass.m]] – calculates spectrum values at the user specified frequency positions using the Fourier transform of the Liouville - von Neumann equation. The biggest advantage over the fid + fft style detection is easy parallelization and the possibility of getting spectrum values at specific frequencies without recalculating the entire free induction decay.&lt;br /&gt;
&lt;br /&gt;
[[sp_acquire.m]] - a pulse-acquire sequence with a soft pulse.&lt;br /&gt;
&lt;br /&gt;
[[traject.m]] - simple forward time evolution, trajectory is returned as a stack of density matrices.&lt;br /&gt;
&lt;br /&gt;
==NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[clip_hsqc.m]] – CLIP-HSQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[cn2d_sq.m]] – CN2D experiment under MAS, single-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cn2d_dq.m]] – CN2D experiment under MAS, double-quantum.&lt;br /&gt;
&lt;br /&gt;
[[cosy.m]] – phase-sensitive COSY pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[crosspol.m]] – cross-polarization experiment.&lt;br /&gt;
&lt;br /&gt;
[[dante.m]] - DANTE pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dept.m]]  - DEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[dqf_cosy.m]] – phase-sensitive double-quantum filtered COSY pulse sequence&lt;br /&gt;
&lt;br /&gt;
[[hetcor.m]] – magnitude mode HETCOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[hmqc.m]] – magnitude mode HMQC pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[hnco.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hncoca.m]] – Phase-sensitive HNCO pulse sequence. Hard-wired to work on 1H, 13C, 15N labelled proteins. &lt;br /&gt;
&lt;br /&gt;
[[hsqc.m]] – phase-sensitive HSQC pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inept.m]] - INEPT pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[inv_rec.m]] - inversion-revocery sequence.&lt;br /&gt;
&lt;br /&gt;
[[lcosy.m]] – localised COSY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[m2s.m]] - magnetisation to singlet state.&lt;br /&gt;
&lt;br /&gt;
[[mqmas.m]] - 2D multiple-quantum MAS pulse sequence for quadrupolar nuclei. &lt;br /&gt;
&lt;br /&gt;
[[mqs.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[mqs_refocus.m]] - 2D multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesy.m]] – phase-sensitive homonuclear NOESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[noesyhsqc.m]] – phase-sensitive NOESY-HSQC pulse sequence. Hard-wired to 1H, 15N, 1H.&lt;br /&gt;
&lt;br /&gt;
[[respiration.m]] - RESPIRATION CP pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[roesy.m]] - phase-sensitive homonuclear ROESY pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[s2m.m]] - singlet state to magnetisation.&lt;br /&gt;
&lt;br /&gt;
[[sat_rec.m]] - saturation-recovery sequence.&lt;br /&gt;
&lt;br /&gt;
[[tocsy.m]] - amplitude-mode homonuclear TOCSY.&lt;br /&gt;
&lt;br /&gt;
==Spatially encoded NMR==&lt;br /&gt;
&lt;br /&gt;
===Ultrafast, pure-shift, and diffusion NMR===&lt;br /&gt;
&lt;br /&gt;
[[spencosy.m]] - ultrafast COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosy.m]] - ultrafast DOSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[spendosycosy.m]] - ultrafast 3D DOSY-COSY experiment.&lt;br /&gt;
&lt;br /&gt;
[[psyche.m]] - PSYCHE 1D pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[ufmq.m]] - ultrafast multiple-quantum NMR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[st_ideal.m]] - ideal Stejskal-Tanner pulse sequence.&lt;br /&gt;
&lt;br /&gt;
===Gradient signal suppression===&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_select.m]] - DPFGSE signal selection&lt;br /&gt;
&lt;br /&gt;
[[dpfgse_suppress.m]] - DPFGSE signal suppression&lt;br /&gt;
&lt;br /&gt;
==Magnetic resonance imaging==&lt;br /&gt;
{{:mri_sequence_list}}&lt;br /&gt;
&lt;br /&gt;
==Overtone NMR experiments==&lt;br /&gt;
&lt;br /&gt;
[[overtone_a.m]] - overtone signal acquisition.&lt;br /&gt;
&lt;br /&gt;
[[overtone_cp.m]] - overtone cross-polarisation.&lt;br /&gt;
&lt;br /&gt;
[[overtone_pa.m]] - overtone pulse-acquire.&lt;br /&gt;
&lt;br /&gt;
[[overtone_dante.m]] - overtone DANTE.&lt;br /&gt;
&lt;br /&gt;
==ESR experiments==&lt;br /&gt;
&lt;br /&gt;
[[endor_cw.m]] – continuous-wave ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_mims.m]] – Mims ENDOR pulse sequence. &lt;br /&gt;
&lt;br /&gt;
[[endor_davies.m]] - Davies ENDOR pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[eseem.m]] – ESEEM pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[fieldsweep.m]] - field sweep ESR experiment using steady state formalism.&lt;br /&gt;
&lt;br /&gt;
[[hyscore.m]] – HYSCORE experiment.&lt;br /&gt;
&lt;br /&gt;
[[oopeseem.m]] - out-of-phase ESEEM experiment.&lt;br /&gt;
&lt;br /&gt;
[[rapidscan.m]] - ESR rapid field scan experiment.&lt;br /&gt;
&lt;br /&gt;
[[ridme.m]] - RIDME pulse sequence.&lt;br /&gt;
&lt;br /&gt;
[[sifter.m]] - SIFTER experiment&lt;br /&gt;
&lt;br /&gt;
==DEER/PELDOR experiments==&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_echo.m]] - echo diagnostocs for ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_hard_deer.m]] - ideal three-pulse DEER.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_deer.m]] - three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_hole.m]] - pulse hole diagnostics for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_3p_soft_diag.m]] - full diagnostics suite for three-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_deer.m]] - four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_hole.m]] - pulse hole diagnostics for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
[[deer_4p_soft_diag.m]] - full diagnostics suite for four-pulse DEER with realistic pulses and orientation selection.&lt;br /&gt;
&lt;br /&gt;
==DNP experiments==&lt;br /&gt;
&lt;br /&gt;
[[dnp_field_scan.m]] – field scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[dnp_freq_scan.m]] – frequency scan steady-state DNP experiment.&lt;br /&gt;
&lt;br /&gt;
[[solid_effect.m]] – large-scale simulation of solid effect DNP.&lt;br /&gt;
&lt;br /&gt;
[[masdnp.m]] - magic angle spinning DNP.&lt;br /&gt;
&lt;br /&gt;
==Paramagnetic NMR spectroscopy==&lt;br /&gt;
&lt;br /&gt;
[[centroid.m]] - centre of mass point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
[[csa2racs.m]] - residual anisotropic chemical shift.&lt;br /&gt;
&lt;br /&gt;
[[eqmag.m]] - molar magnetization vector at the thermal equilibrium. &lt;br /&gt;
&lt;br /&gt;
[[fieldscan_enlev.m]] - energy levels as a function of the magnetic field.&lt;br /&gt;
&lt;br /&gt;
[[fieldscan_magn.m]] - Z magnetisation in a finite-speed field sweep.&lt;br /&gt;
&lt;br /&gt;
[[geffect.m]] - Effective g-tensor for a user-specified Kramers doublet.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pcs.m]] - computes pseudocontact shifts from hyperfine couplings and susceptibility tensors.&lt;br /&gt;
&lt;br /&gt;
[[hfc2pms.m]] - computes paramagnetic shifts (contact + pseudocontact) from hyperfine couplings and susceptibility data.&lt;br /&gt;
&lt;br /&gt;
[[ipcs.m]] – tag probability density recovery from pseudocontact shifts..&lt;br /&gt;
&lt;br /&gt;
[[ippcs.m]] – point electron model fitting to PCS data.&lt;br /&gt;
&lt;br /&gt;
[[kpcs.m]] – PCS calculation using Kuprov equation. &lt;br /&gt;
&lt;br /&gt;
[[pms2chi.m]] - extracts magnetic susceptibility tensors from paramagnetic shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs2chi.m]] - extracts rank 2 components of the magnetic susceptibility tensors from pseudocontact shift data.&lt;br /&gt;
&lt;br /&gt;
[[pcs_combi_fit.m]] - PCS data fitting with ambiguous assignments.&lt;br /&gt;
&lt;br /&gt;
[[ppcs.m]] - Computes pseudocontact shift from a point electron centre at the nuclear coordinates supplied.&lt;br /&gt;
&lt;br /&gt;
[[probmax.m]] - maximum point of a 3D probability density in a cube.&lt;br /&gt;
&lt;br /&gt;
==Exotica==&lt;br /&gt;
[[rydmr.m]] – singlet-singlet RYDMR experiment with exponential recombination function, as described in the paper by Timmel and co-authors.&lt;br /&gt;
&lt;br /&gt;
[[zerofield.m]] - gamma-weighted pulse-acquire sequence in zero field.&lt;br /&gt;
&lt;br /&gt;
[[zulf_abrupt.m]] - zero-field NMR with an abrupt field drop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.1, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=File:Inv_rec_strychnine.png&amp;diff=3758</id>
		<title>File:Inv rec strychnine.png</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=File:Inv_rec_strychnine.png&amp;diff=3758"/>
		<updated>2019-01-12T14:18:18Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Inv_rec.m&amp;diff=3757</id>
		<title>Inv rec.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Inv_rec.m&amp;diff=3757"/>
		<updated>2019-01-12T14:17:28Z</updated>

		<summary type="html">&lt;p&gt;Admin: Created page with &amp;quot;{{DISPLAYTITLE:inv_rec.m}} __NOTOC__ Inversion-recovery pulse sequence.  ==Syntax==       fids=inv_rec(spin_system,parameters,H,R,K)  ==Arguments==      parameters.sweep...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:inv_rec.m}} __NOTOC__&lt;br /&gt;
Inversion-recovery pulse sequence.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     fids=inv_rec(spin_system,parameters,H,R,K)&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
    parameters.sweep              spectrum sweep width, Hz&lt;br /&gt;
 &lt;br /&gt;
    parameters.npoints            number of points in the FID&lt;br /&gt;
 &lt;br /&gt;
    parameters.spins              nuclei on which the sequence runs,&lt;br /&gt;
                                  specified as {&amp;#039;1H&amp;#039;}, {&amp;#039;13C&amp;#039;}, etc.&lt;br /&gt;
 &lt;br /&gt;
    parameters.max_delay          longest relaxation delay&lt;br /&gt;
 &lt;br /&gt;
    parameters.n_delays           number of relaxation delays to run&lt;br /&gt;
 &lt;br /&gt;
    H     - Hamiltonian matrix, received from context function&lt;br /&gt;
 &lt;br /&gt;
    R     - relaxation superoperator, received from context function&lt;br /&gt;
 &lt;br /&gt;
    K     - kinetics superoperator, received from context function&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
    fids  - free induction decays for each delay starting from zero,&lt;br /&gt;
            a matrix with individual FIDs in columns&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
A simulation of a inversion-recovery experiment on strychnine (examples/nmr_liquids/sat_rec_strychnine.m) appears below - it is a stack of spectra obtained after different relaxation delays.&lt;br /&gt;
&lt;br /&gt;
[[File:inv_rec_strychnine.png]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
The relaxation superoperator must be thermalised.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[sat_rec.m]], [[noesy.m]], [[roesy.m]], [[singlet.m]], [[relaxation.m]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.3, authors: [[Zak El-Machachi]], [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=File:Sat_rec_strychnine.png&amp;diff=3756</id>
		<title>File:Sat rec strychnine.png</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=File:Sat_rec_strychnine.png&amp;diff=3756"/>
		<updated>2019-01-12T14:07:50Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>