Skip to content

Instantly share code, notes, and snippets.

View lan496's full-sized avatar

Kohei Shinohara lan496

View GitHub Profile
@lan496
lan496 / pymatviz_sandbox.ipynb
Last active December 18, 2023 12:12
Plot scalar values for elements by pymatviz
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lan496
lan496 / kpoint.py
Created December 9, 2022 07:56
Generalized grid with dsenum
from itertools import product, combinations
from typing import List
import numpy as np
from pymatgen.core import Structure
from tqdm import tqdm
from dsenum.permutation_group import DerivativeMultiLatticeHash
from dsenum.superlattice import generate_all_superlattices, reduce_HNF_list_by_parent_lattice_symmetry
from dsenum.utils import get_symmetry_operations
@lan496
lan496 / mp_magnetism.ipynb
Created August 11, 2022 01:57
Example usage of `spglib.get_magnetic_symmetry_dataset`
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lan496
lan496 / zbl.ipynb
Last active February 14, 2024 12:48
Ziegler-Biersack-Littmark (ZBL) potential
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lan496
lan496 / benchmark_structure_creation.ipynb
Last active November 26, 2021 02:29
Benchmark for creating structure objects
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lan496
lan496 / staticcrsgraph.cpp
Created March 2, 2021 13:53
Usage of Kokkos::StaticCrsGraph
#include <vector>
#include <cassert>
#include <iostream>
#include "Kokkos_Core.hpp"
#include "Kokkos_StaticCrsGraph.hpp"
// StaticGraphType<DataType, Space, Layout, MemoryTrait, SizeType>
using Space = Kokkos::DefaultExecutionSpace;
using StaticCrsGraphType = Kokkos::StaticCrsGraph<int, Space, void, void, int>;