Function rc_matrix_row_vec_times_matrix#

Function Documentation#

int rc_matrix_row_vec_times_matrix(rc_vector_t v, rc_matrix_t A, rc_vector_t *c)#

Multiplies row vector v times matrix A and places the result in row vector c.

Any existing data in c is freed if necessary and c is resized appropriately. Vectors v and c are interpreted as row vectors, but nowhere in their definitions are they actually specified as one or the other.

Parameters:
  • v[in] input vector

  • A[in] input matrix

  • c[out] output vector

Returns:

Returns 0 on success or -1 on failure.