array tag

224 questions


2 answers
89 views
0
About the C++ array and the addition of byte variables?

I am a beginner in C++ language.There is a part where the byte type array is added to a certain source code.I had no idea what I was doing.Below are excerpts of the relevant parts:byte arduino[8];mems...

2 years ago

1 answers
88 views
0
CALCULATION METHOD OF INDEX WHEN HANDLING TWO-DIMENSIONAL DATA IN ONE-

I was told that in order to treat a one-dimensional array as a two-dimensional array, it is a width × row position + column position, but I am not sure.Here's the code.var SIDE_CELLS=5;// Widthvar COL...

2 years ago

2 answers
110 views
0
Understanding List to np.array Conversion

I have a question about converting a list consisting of numpy.array to numpy.array.Below is the matrix (test).test= [array([4.76175243, 5.35280132, 5.6358859, 6.23928513, 6.75275935, 6.82693267, 6.68...

2 years ago

2 answers
104 views
0
About a sentence that contains if statements in an array of for statements

Thank you for browsing.I am currently learning java by myself and am a beginner in programming.I would like to enter a number from the keyboard and write a code that says Answer! if the number matches...

2 years ago

1 answers
74 views
0
extract random, non-overlapping values from PHP arrays

I am having trouble because I can't realize how to extract values without randomly duplicating them from the array.Here is the code.When you actually run it, it says ArrayArrayArrayArrayArrayArrayArra...

2 years ago

1 answers
134 views
0
Input and target (teacher) sequences do not match on keras CNN

I'm thinking of classifying two classes at keras on CNN.Here's the code.import randomimport pandas aspdfrom pandas import Series, DataFrameimport numpy as npimport matplotlib.pyplot aspltimport kerasf...


1 answers
113 views
0
Understanding How Ruby Handles an Array of Ruby to Dll and Receives an Array Processed by Dll in Ruby

I created the following dll in C language.void example(int*a){ for(inti=0;i<10;++i){  a[i]+=1; }}How can I pass the ruby array hoge[0,0,0,0,0,0,0,0] to this dll and receive the processed array hoge...

2 years ago

1 answers
59 views
0
How to create a (5,5,4) array from an array of shapes (5,5) in a python numpy array

There is an array X in python (5,5) similar to the following (the number is appropriate): array([59,65,57,57,62], [96, 81, 83, 83, 96], [53, 29, 30, 30, 53], [26, 0, 0, 0, 27], [20, 1, 5, 0, 19] ,...

2 years ago

1 answers
139 views
0
To create an ArrayList from an array

I will Element[] array = {new Element(1), new Element(2), new Element(3)};I initialized this arrangement ArrayList<Element> arraylist = ???;How do I put it in here?

2 years ago

1 answers
90 views
0
How do I declare an array?

How do I declare the arrangement?

2 years ago
« - 5 - »

© 2024 OneMinuteCode. All rights reserved.