# Trond Varslot, dr.ing.

## Bits of code

### C++

- SIMD Programming is a fascinating subject. In order to gain more insight into how/when to deploy such low-level optimisation techniques, I decided to write specialisations of the std::transform method for the basic arithmetic operations std::plus, std::minus, std::divides and std::multiplies. The framework for doing so uses a mix of macros and C++ templates, and can easily be extended to more complex binary and unary operators. The code is available here: ArrayVecOperators.

### L^{a}T_{e}X

- Finally a proper look for T
_{e}X and L^{a}T_{e}X logos! I got the CSS style sheet from Edward O'Connor: tex.css - The author-year citation commands (\citet, \citep, \citeauthor and \citeyear) of the natbib package are great! I thus decided to modify the IEEEtran.bst style such that it is compatible with natbib. You can download the modified version here: IEEEtranNAT.bst.
- Presentation of prosper (with multimedia files [tgz], [zip]) (LaTeX source [tgz], [zip])
- NTNU style for prosper. Here you may see how it looks. Old style is still here.
- Winter style for prosper
- moviemacro.tex for easy inclusion of movies in a pdf document. You should, however, check out easymovie.sty, which does the same thing, only with lots more options implemented.
- Document classes for FFI technical reports, presentations and official letters
- jasa.cls, a document class for writing and submitting papers to Journal of the Acoustical Society of America. This class requires a working revtex4 class. It supports the titlepage required for submission, as well as the tables, list-of-figures and figures at the end of the document when
*titlepage*and*preprint*are specified as parameters. However, it seems like JASA is now providing their own LaTeX style file. - Avhandlingsmal, the LaTeX setup that I used to generate my PhD thesis. Read the documentation for bibunits, and apply bibtex to each of the .aux-files which are generated. Make sure the example compiles before inserting your own work.

### MATLAB/Octave

- Abersim 2.0: A collection of functions for simulating/investigating ultrasound wavefront aberration. The implementation is for both two- and three-dimensional wave propagation. Both linear and nonlinear forward propagation is implemented.

### Graphics/Art

- A while ago, I was involved in the development of the MMORPG PlaneShift. As all the released artwork used the cal3d mesh format. Since "original" files were hard to obtain, I wrote a quick hack to convert this format into a standard .obj-format. If this tool can be of use or amusement to anyone, you can obtain it here: cal3dmesh2obj.