Top "Matrix" questions

In mathematics, a matrix (plural matrices) is a rectangular array of numbers, symbols, or expressions, arranged in rows and columns.

Transposing a 2D-array in JavaScript

I've got an array of arrays, something like: [ [1,2,3], [1,2,3], [1,2,3], ] I would like to transpose it to get the following array: [ [1,1,1], [2,2,2], [3,3,3], ] It's …

javascript arrays matrix transpose
Android image view matrix scale + translate

I am trying to manually get an image inside an imageview centered and fitting the screen. I need to do …

android matrix imageview transformation
How to do product of matrices in PyTorch

In numpy I can do a simple matrix multiplication like this: a = numpy.arange(2*3).reshape(3,2) b = numpy.arange(2).reshape(2,1) print(…

python matrix pytorch
Should I use a data.frame or a matrix?

When should one use a data.frame, and when is it better to use a matrix? Both keep data in …

r matrix dataframe r-faq
numpy subtract every row of matrix by vector

So I have a n x d matrix and an n x 1 vector. I'm trying to write a code to …

python numpy matrix
Rotate Opencv Matrix by 90, 180, 270 degrees

I'm capturing image from webcam and I need to rotate it by right angle. I found myself theese functions: getRotationMatrix2…

c++ opencv matrix image-rotation
Matrix expression causes error "requires numeric/complex matrix/vector arguments"?

ma=diag(3)+t(da)%*%da R Code above, error message as follows: Error in t(da) %*% da : requires numeric/complex …

r matrix matrix-multiplication transpose
difference between numpy dot() and inner()

What is the difference between import numpy as np np.dot(a,b) and import numpy as np np.inner(…

python matrix numpy
How to convert a matrix to a list of column-vectors in R?

Say you want to convert a matrix to a list, where each element of the list contains one column. list() …

list r matrix
Recommendation for C# Matrix Library

I need a C# library to deal with matrices. It should implement singular value decomposition, matrix inversion, etc I've used …

c# matrix