Matching library for Ginkgo