Inlined some cvector functions