Skip to content

Instantly share code, notes, and snippets.

A Dinesh dineshadepu

Block or report user

Report or block dineshadepu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SPH.tex
\section{The SPH method}
Smoothed particle hydrodynamics starts with representing a function at a point
as an integral by taking a convolution with the Dirac delta function,
f(\ten{x}) = \int_{V} f(\ten{y}) \delta(\ten{x} - \ten{y}) d\ten{y}
dineshadepu / rsync
Last active Jun 25, 2019
sync between lab desktop to gpu computer
View rsync
rsync -arv --exclude={_output,target/,.vtk,_output,target/,.pyc,.o,.c,.cpp,~,.so,.orig,.npz,.log,.npz,.pyd,test.pyx,.egg-info/,build/,dist/,.tox/,.out,*_output,cpp,emacs,softwares,papers} ~/phd/ dinesh@
View .bashrc
# ~/.bashrc: executed by bash(1) for \non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
View sources.list
# deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted
# See for how to upgrade to
# newer versions of the distribution.
deb xenial main restricted
deb-src xenial universe multiverse restricted main
## Major bug fix updates produced after the final release of the
## distribution.
deb xenial-updates main restricted
import matplotlib.pyplot as plt
import numpy as np
class CubicKernel:
def __init__(self, dim):
self.dim = dim
if dim == 1:
self.sigma = 2. / 3.
elif dim == 1:
dineshadepu /
Last active Nov 27, 2017
l2 norm implemented in Rust and Python
x = array([1, 2, 3, 4, 5, 6])
y = np.arange(0, 6, 1)
np.linalg.norm(x-y, ord=2)
# 2.4494897427831779
You can’t perform that action at this time.