Cmake only creates one cuda library instead of two
Return lazy matrices/collections as const ref.