I need a function to multiply amatrix by a scaler.
struct _matrix {
int rows;
int cols;
double * data;
};
int nRows(matrix const * mtx, int * n) {
if (!mtx || !n) return -1;
*n = mtx->rows;
return 0;
}
int nCols(matrix const * mtx, int * n) {
if (!mtx || !n) return -1;
*n = mtx->cols;
return 0;
}
Exercise 6.10. Implement a
PayPal Gateway not configured
PayPal Gateway not configured