I have 2 matrices. A, B A has 100 rows and 350 columns B has 1 rows and 350 columns(in the exact same order as they are in A)
I want the third data frame matrix C which will have 100 rows and 350 columns Value in any cell in C will be x * A + (1-x) * B for the same corresponding column values in A and B respectively.
I can correctly do this by applying various/multiple loops but it is taking a lot of time.
Is there any direct method to apply this formula in one go on all the 350 columns (as the order/index of all the columns in all the matrices A, B, C are same)