简体   繁体   中英

Why doesn't gsl have a separate function for vector * matrix multiplication?

I was going through the GSL documentation and was curious why there were no vector * matrix functions. I get that vector * matrix is the same as matrix_transpose * vector. Why is it done this way as opposed to writing a function to do multiplication with the vector on the left hand side?

I cannot look into the heads of GSL developers, but I imagine that they just didn't see a need for it: matrix transposition can be done in-place by iterating differently over the indices, so adding another function would just add more overhead. (In my own projects using GSL I've always wrapped GSL functions inside some higher-level functionality, thus hiding this kind of details)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM