Questions tagged as 'matriz'

1
answer

Set using array in C #

I have the following array: a d k m s j e r t c f p I put such array in an array as follows: char[,] matriz = new char[3,4]; matriz[0,0] = 'a'; matriz[0,1] = 'd'; matriz[0,2] = 'k'; matriz[0,3] = 'm'; matriz[1,0] = 's'...
asked by 18.09.2015 / 04:23
2
answers

How to create inverse matrix in R

In order to get the inverse of an array, we can use different commands of R solve() , ginv() , etc. However, when trying to use these commands, an error occurs where we think the problem must be because there are negative values in t...
asked by 23.03.2014 / 17:40
1
answer

Using the lower triangularization method to calculate the determinant of a transposed matrix

Using the lower triangularisation method, I have to calculate the determinant of a transposed matrix. I want to calculate the determinant from the transposed matrix using the lower triangularization method, since the determinant has to be equ...
asked by 23.11.2015 / 00:36
2
answers

Subtracting arrays with different arguments

Can we subtract two arrays (or two vectors) that were written with different commands? Example: x<-array(1:4,c(4,1,1)) y<-cbind(c(1:4)) x-y "Error> non-conformable objects" Does this mean that both vectors have to use the same c...
asked by 23.03.2014 / 20:09
3
answers

What is the difference between a one-dimensional and two-dimensional matrix?

In high school we usually study about the concept of Matrix, which consists of a row table and columns forming a set of numbers or elements. In mathematics, programming and other areas we use Matrices so I would like to know the difference be...
asked by 04.07.2016 / 03:48
2
answers

Matrix of Expression

I have the following array in the R: FC12h FC10d FC6w -8.44770875 -0.37171750 0 -56.72384575 2.64778150 2.94636550 -3.00214850 2.64778150 -1.57755700 I need some function that causes numbers greater than zero to...
asked by 09.10.2018 / 18:50
2
answers

Count row in matrix that has repeated numbers

I would like to add the number of lines to linhaPreta with only 0, and the linhaBranca with only 1. public class Pixel { public static void main(String[] args) { int[][] img = { { 1, 1, 1, 1, 1, 1, 1, 1 },...
asked by 11.12.2014 / 18:43
2
answers

How to pass an array as a reference to a function?

I'm trying to pass an array as a parameter to a function as a reference, and in this function I do operations on that array but I'm not getting it. I do not want you to use define or const int for the array dimension values because...
asked by 30.09.2018 / 16:16
3
answers

How to generate random arrays without repeated numbers on the same line?

I want to store random numbers from 1 to 60 in an array. When there are equal numbers in the rows, it is to generate another random number. Type, can not be: 11 55 55 43 49 30, but should be 11 55 52 43 49 30. There should be no repetitions....
asked by 27.08.2015 / 06:35
2
answers

Problem with hasNext () Java

Hello, I have a problem, I do a Scanner to a txt file, then I invoke a method to go to count the lines of this file, after I return the number of lines (to give the size to the String Array equations), I want to go back again go through the file...
asked by 07.01.2016 / 15:58