Questions tagged as 'matriz'

1
answer

How to make a pointer point to NULL?

I need a position of an element in a dynamic vector to be empty, so I can check if I can put an element inside it later. However, the compiler does not allow it. Here is my code: MATRIZ_ESPARSA *criar_matriz(MATRIZ_ESPARSA *matriz, int nr_linh...
asked by 06.11.2017 / 01:18
0
answers

Arduino - matrix 8x8 [closed]

I'm having an array of led 8x8 and an arduino one and I want to display some phrases in the array but I did not find the datasheet in any way. The numbering is HS-2388BS. Is there another way to know which line and column corresponds to the igni...
asked by 24.12.2014 / 02:36
1
answer

Operation with large array

People would like to know how I can make the squared Euclidean distance between the octadimensional vectors of b and those that are not in a in a super matrix like this one in the example. I thought so and it did not work. Anyon...
asked by 21.06.2015 / 02:10
2
answers

How to make an array in R that its entries are equal to i * j? [closed]

I want a generic array 10x10 , that its entries are equal to i*j , where i is the column and j the line     
asked by 02.10.2015 / 19:10
3
answers

How to create an array in python

I want to create an array where the user specifies the number of rows and the number of columns. Initially an empty matrix was given: matrix = [] The codes should the code below was my attempt: def gerar_matriz (n_linhas, n_colunas): '...
asked by 18.05.2017 / 01:22
3
answers

How do I get the largest value from an array / vector in python?

How do I get the highest value from an array or vector? For example, in this exercise I have to do a 4x4 array and return the row and column of the largest element , but I stopped there. m = [] for i in range(4): linha = [] for j i...
asked by 24.05.2017 / 17:15
2
answers

Arrange Results Kalman Filter in an Array

Simple question: With the code below I estimate Kalman Filter with an AR component (1). The goal is to exit in the k_fk vector. When I have only one vector is simple. But I need to run the same code for multiple vectors. These vectors...
asked by 18.08.2016 / 01:57
2
answers

How to invert the values of the main diagonal of a 5x5 matrix?

Example input:    1 3 6 8 7   3 7 8 0 3   2 4 3 6 7   8 9 1 3 5   5 6 7 8 5 Example output:    5 3 6 8 7   3 3 8 9 3   2 4 3 6 7   8 0 1 7 5   5 6 7 8 1 I have so far this: BufferedReader in = new Buff...
asked by 09.04.2015 / 18:30
2
answers

Dictionary for objects in Python

I would like to know how I can assign a dictionary to a set of objects. For example, I have a 4x4 vector of 'neuron' objects: [[<__main__.Neuronio object at 0x1035644e0>, <__main__.Neuronio object at 0x103564518>, <__main_...
asked by 01.06.2018 / 23:18
1
answer

Array initialization error

I'm not understanding this error in the array. #include<stdio.h> #include<stdlib.h> #include<math.h> #define MAX 800 int main () { float ponto[MAX][MAX]; float i, j, n, y, x, aux_st, aux_s; y = x = aux_st = au...
asked by 21.09.2016 / 16:09