Skip to content

Instantly share code, notes, and snippets.

@bridgesign
bridgesign / BiCGSTAB.py
Last active February 29, 2024 14:37
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.
@mingen-pan
mingen-pan / tutorial.go
Last active November 16, 2020 16:49
Basic Go examples
package tutorial
import (
"fmt"
"math/rand"
"strconv"
"sync"
"testing"
"time"
)