Here is a list of the biggest features and changes in OpenGL throughout the years.
- 2D textures
| let regex; | |
| /* matching a specific string */ | |
| regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello" | |
| regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO" | |
| regex = /hello/g; // looks for multiple occurrences of string between the forward slashes... | |
| /* wildcards */ | |
| regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo" | |
| regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo" |
| ### JHW 2018 | |
| import numpy as np | |
| import umap | |
| # This code from the excellent module at: | |
| # https://stackoverflow.com/questions/4643647/fast-prime-factorization-module | |
| import random |
| #ifndef _MATRIX_H | |
| #define _MATRIX_H | |
| #include <cmath> | |
| #include <algorithm> | |
| #include <cstring> | |
| #include "vector.h" | |
| #ifndef _VECTOR_H | |
| #define _VECTOR_H | |
| #include <iostream> | |
| #include <cmath> | |
| template <class t> | |
| struct Vec4; |
| import torch | |
| import torch.nn as nn | |
| from torch.autograd import Variable | |
| import keras.backend as K | |
| from keras.models import * | |
| from keras.layers import * | |
| import torch | |
| from torchvision.models import squeezenet1_1 |
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).
Matrix multiplication is a mathematical operation that defines the product of
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |