@abinashpanda Replied in the email. Your code seems good! Almost done. My suggestion is to use CDynamicArray<float64_t> or try to use SGMatrixList, then no need to add_vector by yourself.