Questions tagged as 'matriz'

1
answer

How to delete characters from a string inside a Python array

I'm starting in python and I've decided to fiddle with .txt files. I did the following procedure to insert values into an array, and from that insert each value into a line of a filename.txt file. def insertFile(): vet = []...
asked by 26.10.2017 / 18:38
1
answer

How to transform more than one vector into array using the php language?

I have a matriz_caminhos.txt file with 20 rows and 20 columns, I need to access it and get the data as an array. So far, I just got him to scan the file and return me 20 vectors. Follow the code: . <?php $ponteiro1...
asked by 24.03.2018 / 15:00
2
answers

Matrix 4x4 is getting 20 elements

Galera made a code in Python whose exercise asked to make a 4x4 matrix, show the number of elements greater than 10 and show the final matrix. I did and it was all right only that the array is getting 20 elements and is not separated by brackets...
asked by 23.05.2017 / 19:46
2
answers

Find a specific row or value of an array vector in R

How to construct a function that evaluates if any line of the mat array is equal to the vec vector both in the code below: set.seed(000) mat <- matrix(rnorm(20),4,5) vec <- c(1.3297993, -0.9285670, 0.7635935, -0.2992151,...
asked by 20.03.2017 / 19:50
2
answers

What is the limit of multidimensional vectors?

I'm running a test and it gives me an error when I try to create a vector [1000] [1000]. Are there limits for vectors? The error code ( Application stops responding ) is as follows: int main (){ int DIM_X = 1000; int DIM_Y = 1000;...
asked by 12.02.2017 / 14:01
1
answer

Multiplication matrix by the matrix transposed in C language

I'm new to programming and I'm trying to make a C language program that multiplies a 3x3 array by its transpose and prints the result . I'm having trouble creating the algorithm of multiplication between the matrix by its transpose. Any help wi...
asked by 10.05.2017 / 14:42
1
answer

Message at the end of na.omit

I am using the command na.omit(matrix.work) and at the end the message appears: attr(,"na.action") [1] 3 11 attr(,"class" Someone knows how I can delete this message because I do not want it to appear because it is loading the conte...
asked by 06.09.2016 / 05:11
1
answer

Define the smallest path in graphs

Hello, I'm starting to see graphs now, I'm trying to create a program where the user enters an adjacency array and the program calculates the smallest possible path from the start node to the end and that all the edges have the same weight, but I...
asked by 09.08.2016 / 02:23
1
answer

Bertin matrix installation problem

I'm trying to download a package from R which is called bertin array. The address I have is http://bertin.r-forge.r-project.org/ . The problem that when I try to download comes a message that the package is incompatible with m...
asked by 13.01.2016 / 13:00
1
answer

Add values within the Two-Dimensional Matrix from the line that the user chooses

In the exercise I had to create a 2D array and then when the user types 0, 1 or 2 to know the array line , I should add the values of the line and show the result. I'd like to know if inside the array, if I can add it up without having...
asked by 30.03.2016 / 22:12