Add method dot and norm to core.Lattice to compute norms and scalar products.