function gemv interface for NMatrix