Skip to content

Instantly share code, notes, and snippets.

@oxyflour
oxyflour / BiCGSTAB.py
Created February 29, 2024 14:37 — forked from bridgesign/BiCGSTAB.py
BiCGSTAB or BCGSTAB Pytorch implementation GPU support
import torch
import warnings
class BiCGSTAB():
"""
This is a pytorch implementation of BiCGSTAB or BCGSTAB, a stable version
of the CGD method, published first by Van Der Vrost.
For solving ``Ax = b`` system.
@oxyflour
oxyflour / autossh
Last active February 3, 2016 01:09 — forked from jeremija/autossh
raspi autossh
#! /bin/sh
# /etc/init.d/autossh
TUNNEL_MONITOR=53389
TUNNEL_USER="bae"
TUNNEL_HOST="bae.ofr.me"
TUNNEL_PORT=30383
TUNNEL_KEY="/home/oxyflour/.ssh/bae.id_rsa"
TUNNEL_ARGS="-D 0.0.0.0:3129 -L 0.0.0.0:13128:127.0.0.1:3128 -L 0.0.0.0:10022:vlr.ofr.me:22"