Linear invariants of Riemannian almost product manifolds