Top "Matrix" questions

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

How to convert a huge list-of-vector to a matrix more efficiently?

I have a list of length 130,000 where each element is a character vector of length 110. I would like to convert …

r list matrix performance
Difference between numpy.array shape (R, 1) and (R,)

In numpy, some of the operations return in shape (R, 1) but some return (R,). This will make matrix multiplication more …

python numpy matrix multidimensional-array
Iterating over Numpy matrix rows to apply a function each?

I want to be able to iterate over the matrix to apply a function to each row. How can I …

python matrix numpy
Create dataframe from a matrix

How to get a data frame with the same data as an already existing matrix has? A simplified example of …

r matrix dataframe
Android: How to rotate a bitmap on a center point

I've been looking for over a day for a solution to this problem but nothing helps, even the answers here. …

android matrix bitmap center image-rotation
Extract matrix column values by matrix column name

Is it possible to get a matrix column by name from a matrix? I tried various approaches such as myMatrix["…

r matrix subset
How to turn a vector into a matrix in R?

I have a vector with 49 numeric values. I want to have a 7x7 numeric matrix instead. Is there some sort …

r vector matrix
How do you dynamically allocate a matrix?

How do you dynamically allocate a 2D matrix in C++? I have tried based on what I already know: #include &…

c++ arrays matrix dynamic-data
Appending a list to a list of lists in R

I'm having issues appending data to a list which is already in a list format. I have a program which …

r list matrix append extend
Python Inverse of a Matrix

How do I get the inverse of a matrix in python? I've implemented it myself, but it's pure python, and …

python algorithm matrix linear-algebra matrix-inverse