Skip to content

Instantly share code, notes, and snippets.

View tjbanks's full-sized avatar

Tyler Banks tjbanks

View GitHub Profile
@tjbanks
tjbanks / line_product_scaling.py
Last active November 15, 2021 17:16
Scalings of Matricies Satisfying Line-Product Constraints (Python)
# Python implementation of algorithms described in
# "Scalings of Matrices Satisfying Line-Product Constraints and Generalizations" (1992)
# Paper by Uriel G. Rothblum, code by @tjbanks and Tung Nguyen
# https://core.ac.uk/download/pdf/82705928.pdf
# Implement 2D matrix completion with input as U,V, A_prime and output as A_exp
import numpy as np
def completion(U = None,V = None,A_prime = None):
# Situate unknown entries as 1.
@ditzel
ditzel / MeshDestroy.cs
Created August 19, 2019 19:02
MeshDestroy => Put it on a game object with a mesh filter and renderer. Make sure to have read/write enabled on fbx import
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MeshDestroy : MonoBehaviour
{
private bool edgeSet = false;
private Vector3 edgeVertex = Vector3.zero;
private Vector2 edgeUV = Vector2.zero;