Questions tagged as 'matrices'

0
answers

TypeError: append () takes exactly one argument (2 given)

Hello colleagues, you could tell me why it appears in this code when I run it: TypeError: append() takes exactly one argument (2 given) when I add the positions in list 3. And another thing: whenever I take out cousins, programs work w...
asked by 03.11.2018 / 22:35
0
answers

help to multiply two matrices?

I'm doing a program where I need to multiply the following matrices:    [[- 13. 6. -4.] [12. -5. 3.] [-5. 2. -1.]] This matrix that is the inverse of another one that you take out in this way: matriz_lista = np.array(lista_tempL).reshap...
asked by 30.10.2018 / 23:09
0
answers

Multiply lists of lists and matrices of NumPy

I'm trying to multiply matrices with python. The objective of the program is to have three matrices as parameters: A, B and res (result matrix) that will be completed with the result of multiplying the matrices represented by the lists of lists....
asked by 26.10.2018 / 02:22
0
answers

problems with resulset and matrix

Hi, I have the following code, and the problem is that I can not pass the result of the results to the matrix, then use it in another class to fill a table and generate a pdf file, It always tells me in the out print that the value is NULL altho...
asked by 16.10.2018 / 16:10
0
answers

Urgent help with TAD (Abstract Data Type) and matrices in Java

I need help with a problem I'm having for a week now and it's driving me crazy. The slogan is the following: I have to create a TAD of Room and Box, maybe with another class that is called Accommodation (or maybe not). There is a room -which I...
asked by 10.10.2018 / 14:42
1
answer

Approximation of numbers in a matrix

I have the following matrix: [[-397. -259. -51. -227. -116. -227.]  [351. 237. 58. 204. 117. 204.]  [-140. -98. -25. -83. -fifty. -83.]] and I'm trying to leave this matrix, all in module 29 as follows: lista1 = [] for x in matrizf:     ...
asked by 03.11.2018 / 04:31
0
answers

Load an array of a file in C ++

I'm trying to read a file and load it into an array in c ++ like this: int main(int argc, char **argv){ if (argc != 2){ cerr << "Sample call <mat.cc> <filename>" << endl; } string filename(argv[1]); MAT G = readGra...
asked by 28.09.2018 / 18:00
0
answers

How to know the cardinality of a matrix in c ++?

I wonder if someone could help me know what a code would look like to know the cardinality of a matrix in c ++.     
asked by 15.09.2018 / 19:01
0
answers

Game of life ERROR

I'm doing a somewhat simple code of Conway's famous "Game of Life", this is the creation of the arrangement public class FunInicio { public int [][] llenado() { int [][] you = new int [10][10]; for (int i=0; i<y...
asked by 23.05.2018 / 10:31
1
answer

Nan in Pascal when working with values from an array

I am developing a program in Pascal that takes a matrix and assigns to each box the average of the 4 adjacent quasi-squares during n repetitions. for contador:= 1 to itera do begin for i := 0 to width-1 do begin for z := 0 t...
asked by 19.04.2018 / 12:52