Skip to content

Instantly share code, notes, and snippets.

View Jutho's full-sized avatar

Jutho Jutho

  • Ghent, Belgium
  • 17:16 (UTC +02:00)
View GitHub Profile
@Jutho
Jutho / gist:10713261
Created April 15, 2014 08:20
permutedims benchmark
{
"metadata": {
"language": "Julia",
"name": "permutebench"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"metadata": {
"language": "Julia",
"name": "TensorOperations"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@Jutho
Jutho / gemmtest
Created February 11, 2014 12:54
Matrix Multiplication with Julia
{
"metadata": {
"language": "Julia",
"name": "MatrixMultiplication"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@Jutho
Jutho / type inference issue
Last active December 29, 2015 14:29
Code to illustrate type inference issue
import Base: one, eltype
typealias AbstractNumericalMatrix{T<:Number} AbstractMatrix{T}
specialsum{T<:Number}(a1::Matrix{T},a2::Matrix{T})=a1+a2
type MatrixList{T<:Number,A<:AbstractNumericalMatrix} # T should correspond to the eltype of A
list::Vector{A}
args