I found this in our internal code as well and I'm trying to understand what is happening. In the following code: https://github.com/microsoft/DirectX ...
I found this in our internal code as well and I'm trying to understand what is happening. In the following code: https://github.com/microsoft/DirectX ...
I'm making a function to calculate a dot product when given two vectors. The code is later used in a matrix multiplication function. The issue I'm hav ...
Let $X \in \mathbb{R}^{M\times N}$ be a 2-dimensional array. Let $Y \in \mathbb{R}^{M \times N \times K$ be a 3-dimensional array. I have these data a ...
I'm trying to multiply a matrix A of size $(N,N)$ by a matrix B of size $(N,M,O)$ matrix along the O dimension (that is, left-multiply all the "pages" ...
I need to calculate a 2D matrix multiplied with 2D vector. Both use 32 bit floats. I'm hoping to do this using SSE (any version really) for speed opti ...
. Answers to this question are eligible for a +500 reputation bounty. N ...
I've got a program multiplying two sub-matrices residing in the same container matrix. I'm trying to obtain some performance gain by using the OpenMP ...
I am trying to multiply to numpy arrays which both have the shape (2000,2,2). I want the outcome array to also have the shape (2000,2,2) where each of ...
I have created a function and it will return only the squared anser and it is not possible to get the right answer, which is the current anwer square ...
I am trying to implement a C++ function that, given (4x4) Matrix A and Matrix B, can generate Matrix C such that A*C=B. After some research, I produc ...
I have an object, which needs to be rotate by two axis (for simplicity, let's call them the X and Y axis, but understand that they can be completely a ...
How do I perform a matrix vector product using the Eigen library in C++ with a "for loop", when the date type of my variables are in the form Eigen::M ...
I thought of checking the time difference for a matrix multiplication using numpy matrix multiplication vs normal for loop method. I understand numpy ...
I have a little neural network program. I have optimized it to train quicker, but I have noticed that the backpropagation part takes around 10 times l ...
A sparse matrix is a matrix whose most members have zero value. Therefore, in order to save memory and storage The matrices, it is convenient to repre ...
I want to find the most efficient way to multiple three matrices using cuBLAS. My current solution has the obvious multiple calls to cublasgemm It' ...
I am new to NumPy and I am trying to migrate some code I developed in MATLAB for calculating 2x2 transfer functions. Here is the code snippet I wrote. ...
The value of x1 and x2 are within the range of np.int8 after np.matmul operation the value is above the int8 range so I am storing it into int16, st ...
I have two input arrays and one output array like this: I want to do the following calculation: Can I do it without doing for loop since for loo ...
I have two matrices. The first has the following structure: where 1, 0, a, b, c, and d are scalars. The matrix is 4 by 3 The second is just a 2 by ...