Skip to main content
-1 votes
0 answers
16 views

Using numpy to sort datetime lists

I'm reading in a text file whose output looks like this: ['XXXX_10 SATLIT 9.900 2024/319 12:22:00 2024/319 12:31:03 TR2 # SOH' 'XXXX_10 SATLIT 9.900 2024/319 12:22:...
Nathan E Miller's user avatar
0 votes
0 answers
17 views

How to store an array and a slice of that array in a struct in Rust? [duplicate]

I have a struct to save data read from a socket connection. This struct has an array field buffer which provides space for the read data to be saved in. Now, I need to way to save which part of that ...
axolotlKing0722's user avatar
0 votes
1 answer
67 views

How does a std::array of resizable containers/datatypes work?

I hope this is not a duplicate (link for an answer is also appreciated). I have a C++ application, where I get a lot of Memory consumption over time. There is no leak by definition as all memory is ...
DaniMambo's user avatar
0 votes
0 answers
59 views

Does the C standard provide a definition for term "array of unknown size"?

Does the C standard provide a definition for term "array of unknown size" [1]? Despite that the term "array of unknown size" is perhaps obvious to understand (e.g. an array for ...
pmor's user avatar
  • 6,181
1 vote
3 answers
68 views

How do I let the result of std::transform accumulate on an array instead of rewriting it?

When I want to compute the pairwise product of two arrays, a and b and store the result in another array, c, I may use std::transform. long int length = 10000; double* a = new double[length]; double* ...
张亦弛's user avatar
1 vote
1 answer
61 views

how to convert arrays to use with fprintf and fgets

I'm trying to make a simple program that stores, and loads text, so I can later display it via a notification with a mere press off three buttons, however I'm running into the problem of fprintf and ...
Ibolya Vojtek's user avatar
0 votes
0 answers
10 views

Reading parameter array through VPI

I have a integer parameter array like: parameter integer PAR_ARR [3:0] = '{ 12, 34, 56, 78 } I want to read the values of the parameter array through VPI. Here is what I've observed: vpi_get(vpiType, ...
BPrince's user avatar
-2 votes
0 answers
35 views

How to deal with NaN in numpy [closed]

I have a dataset where missing data is listed as NaN. I'm using Decimal for all the numbers. I'm trying to determine if mean replacement is acceptable to replace the missing data. My plan is to ...
Jeff's user avatar
  • 505
-3 votes
0 answers
31 views

Undefined array key problem and isset not working [closed]

Here is the basic problem <li class="li-btn">a class="custom-btn custom-btn--small custom-btn--style-4" <? if ($user == ""){ echo "href=\"xxx://...
N00bie's user avatar
  • 5
0 votes
0 answers
19 views

handleInputChange data input synchronising to all other rows

I have a LWC which diaplays a table of a custom object called 'Specifications' which a are grouped by Opportunity line items (parent record of the specifications. The Opportunity row was read only, ...
Timothy Hayward's user avatar
0 votes
0 answers
55 views

csv parser is interpreting the commas inside the json array as column separators

How do I define an array in a csv file so it is not parsed as extra columns? csv parser is interpreting the commas inside the json array as column separators here is how my array is structured trigger,...
Juma Hamdan's user avatar
-1 votes
0 answers
20 views

Is there a way to combine two dictionaries into one, where the "value" become a list of elements from both dictionaries?

Let's say there's two JSON dictionaries: dct1 = {"Alice":["c1"], "Bob":["c2","c3"]} dct2 = {"Alice":["c3"]} Is there an ...
adrien kusuma's user avatar
0 votes
1 answer
62 views

Why does this C program not return an error? [duplicate]

#include <stdio.h> int main() { int a[]={1,-2,3,0,-5}; int i=0; while(i++<5){ a[i]=a[i]>a[i-1]?-1:1; } for(i=0;i<5;i++) printf("%d",a[i]); ...
enis serifi's user avatar
1 vote
2 answers
56 views

Converting an array of floats into RGBA values in an efficient way

I am trying to create a system to take an array of floats which range from 0.0 to 1.0 and convert them into RGBA values based on a lookup table. The output should be an array that is one dimension ...
Liam's user avatar
  • 41
0 votes
1 answer
49 views

How to convert an array to an array in rust?

I would like to convert an array of one type [T; N] into an array of another type [U; N] where U: From<T>. Is there any language syntax or std functionality that allows this without a heap ...
RBF06's user avatar
  • 2,389

15 30 50 per page
1
2 3 4 5
27853