Skip to content

Instantly share code, notes, and snippets.

import sys
import toolutils
outputitem = None
inputindex = -1
inputitem = None
outputindex = -1
num_args = 1
h_extra_args = ''
@WhileRomeBurns
WhileRomeBurns / Matrix.md
Created July 16, 2018 16:16 — forked from nadavrot/Matrix.md
Efficient matrix multiplication

High-Performance Matrix Multiplication

This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).

Intro

Matrix multiplication is a mathematical operation that defines the product of

////////////////////////////////////////////////////////////////
// UI Parameters
////////////////////////////////////////////////////////////////
#pragma label diff_cd "Diffuse Color"
#pragma hint diff_cd color
#pragma label diff_int "Diffuse Intensity"
#pragma range diff_int 0! 1!
#pragma label diff_rough "Diffuse Roughness"
#pragma range diff_rough 0! 1!
#pragma label diff_tex_p "Diffuse Texture Path"
@WhileRomeBurns
WhileRomeBurns / VEX_tmLanguage.xml
Created August 13, 2013 15:50
Save the definition as VEX.tmLanguage and place it in the app data directory: C:\Users\ <<user>> \AppData\Roaming\Sublime Text 2\Packages\User By default ".vfl" files will open as VEX syntax whilst ".h" header files will still open as C/C++ unless you override the settings. http://shawnlipowski.com/git/vex_tmlanguage_screenshot.png
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>vfl</string>
<string>vflh</string>
</array>
<key>foldingStartMarker</key>