Skip to main content

Questions tagged [matrices]

0 votes
0 answers
81 views

The following are some examples that you may see in an intro to programming course: Print the elements of an nxn array... Spiraling in from the outside Spiraling out from the center Zig zagging from ...
Kyle's user avatar
  • 37
3 votes
0 answers
111 views

I am implementing a certain algorithm that works like this: Create a closed contour (list) of elements in a matrix, where closed means that the last element is adjacent (by row, column) to the first. ...
bright-star's user avatar
3 votes
3 answers
139 views

Say we have N persons and M items (when a person has a certain item, she usually only has one piece). For example, person 1 has item A, C, D, and wants item F person 2 has item B, C, and wants E ...
Jay's user avatar
  • 141
2 votes
2 answers
997 views

For storing sparse matrices I know there are multiple formats that are common, like COO, CSR, DIA, ELL, HYB, etc. (Link to some storage formats), but I haven't found that any of these stores the ...
Veridian's user avatar
  • 123
4 votes
3 answers
1k views

I am working on a library that allows the creation and manipulation of Vectors (lists with a known length), Matrices (lists of lists with known dimensions), and three-, four- etc. order Tensors (lists ...
Qqwy's user avatar
  • 4,947
1 vote
1 answer
465 views

So I know that matrices are used extensively in the field of games and 3D graphics, for example, you need to know how to do matrix multiplication if you want to understand how scaling an object works, ...
Jimmy_Rustle's user avatar
25 votes
2 answers
11k views

In Google's MNist tutorial using TensorFlow, a calculation is exhibited in which one step is equivalent to multiplying a matrix by a vector. Google first shows a picture in which each numeric ...
Mark Amery's user avatar
  • 1,273
3 votes
1 answer
195 views

I am making a neural network in Clojure that can take an array of integers,and return a data structure representing the layers of a neural network: so (make-layers [1 4 5]) would evaluate to: [[0] ...
kurofune's user avatar
  • 290
2 votes
4 answers
114 views

I'm looking for some sort of algorithm so I can quickly identify similar matrices, the matrices are not stored permanently so I'd need a way of mapping each matrix to an easily stored values, after ...
rhysw's user avatar
  • 21
-1 votes
3 answers
137 views

i was wondering if there is any formula to calculate the number of square matrices present in a square matrix. e.g a 3x2 matrix has 3 square matrices that are (2x2, 1x1, 1x1) a 6x3 matrix has 2 ...
Zishnu's user avatar
  • 11
1 vote
0 answers
2k views

The title could be no self-explanatory enough but I need some conceptual help in order to implement a solution to go through an array: I'm developing a program to calculate the "most shadepath" route ...
Enot's user avatar
  • 113
3 votes
1 answer
258 views

In reading Hadley Wickham's Advanced R I learned about the difference between atomic vectors and lists; and matrices/arrays and dataframes. This is something I hadn't really appreciated before, and ...
Phil's user avatar
  • 161
0 votes
1 answer
784 views

Suppose I have the following matrix with values 1-25 as input to my program. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 The inward spiral should give me the output 13 ...
GermanShepherd's user avatar
0 votes
1 answer
847 views

I am trying to think of an implementation of a two dimensional matrix-like data type. Normally I would take an array of arrays but I'm bound to a relatively low language level which only provides ...
Benjoyo's user avatar
  • 162
1 vote
1 answer
234 views

I need to write a program, which will perform LU-decomposition, etc. The problem is that I don't know about the preferred way to distribute the loaded matrix from the root process to other processes. ...
Eenoku's user avatar
  • 327

15 30 50 per page