Top "Matrix" questions

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

How can I apply a function to every row/column of a matrix in MATLAB?

You can apply a function to every item in a vector by saying, for example, v + 1, or you can use …

matlab function matrix vectorization
What is the fastest way to transpose a matrix in C++?

I have a matrix (relatively big) that I need to transpose. For example assume that my matrix is a b …

c++ algorithm matrix transpose
Very large matrices using Python and NumPy

NumPy is an extremely useful library, and from using it I've found that it's capable of handling matrices which are …

python matrix numpy
What does a circled plus mean?

I cannot understand the calculation "66 ⊕ fa = 9c". The sum is clearly over "ff", so I am confused. The topic is …

math cryptography matrix
Find row and column index of maximum value in a matrix

I wish to find the maximum element-value of a matrix and it's location (in row and column id in the …

r matrix
How do I visualize a matrix with colors and values displayed?

I want to create images like this from a double precision matrix using MATLAB. Sample image: http://twitpic.com/2xs943

matlab matrix data-visualization
How do I compare all elements of two arrays?

I have two big arrays with about 1000 rows and 1000 columns. I need to compare each element of these arrays and …

matlab comparison matrix vectorization
Add a row to a matrix

I have a matrix A like 1 2 3 4 5 6 7 8 9 0 and I want to expand it with a row of ones to get 1 1 1 1 1 1 2 3 4 5 6 7 8 9 0 I …

matlab matrix concatenation row addition
Pretty print 2D Python list

Is there a simple, built-in way to print a 2D Python list as a 2D matrix? So this: [["A", "B"], ["…

python matrix
Elegant indexing up to end of vector/matrix

Is it possible in R to say - I want all indices from position i to the end of vector/…

r matrix dataframe indexing