finish double matrix and double vector new api