Questions tagged [variable-length]

Refers to anything whose length can vary

Refers to anything whose length can vary

290 questions
0
votes
1 answer

Variable Length Argument List (using Get)

I cannot seem to understand the concept of variable length argument lists. When I do a bit of research, it makes sense, but I can't figure out this question to save my life. What is the result of the following call? get(1, 2, 3, 4, 5, 6, 7); // The…
Taylor
  • 15
  • 5
0
votes
0 answers

Length limit of composite type in PostgreSQL

I would need to set up a composite type to pack a large scale of complex structure. So I want to ask if it has a limit of 8kb in PostgreSQL, or the limit is depend on what data it is composed? Thank you very much!
Shore
  • 827
  • 9
  • 24
0
votes
2 answers

Is it possible to save and access and search an array or list containing elements with different length in python?

Is it possible to save and access array or list containing elements with different length? For instance, I want to save data=[s,r,a,se] r,a are scalar but s and se are an arrays with 4 elements.(in python language) For instance in one…
0
votes
1 answer

variable length sequence, first bit indicating end of sequence, preon

How would you parse a variable length sequence of bytes where first bit (BigEndian) indicates if another byte is following using Preon? Example byte[] bytecode = new byte[] { (byte) 0xf2, (byte) 0xbf, (byte) 0xbf, (byte) 0xbf,…
Dusan
  • 115
  • 1
  • 7
0
votes
2 answers

Java - Create a 2 dimensional array that can be manipulated and printed by other methods

I am trying to create a 2-dimensional array without using ArrayList. I was successful at creating the array but I run into a snag when trying to print the array from another method because the array is not static. However, I cannot make the array…
0
votes
1 answer

batch process of graph_cnn in tensorflow

I want to use the graph_cnn (Defferrard et al. 2016) for inputs with variation of number of nodes. The author provided the example code (see graph_cnn). Below is the what I think the critical part of the code def chebyshev5(self, x, L, Fout, K): …
Maosi Chen
  • 1,492
  • 2
  • 14
  • 33
0
votes
1 answer

How to graph different variables with different length in MATLAB?

I have 165545*1 double and 1*351 double variables. I want to put 165545 * 1 on y axis and 1*351 on x axis using plot(x,y) or scatter(x,y).
Sam
  • 53
  • 5
0
votes
1 answer

SQL Server sync size of variable used in stored procedures or functions

We do create variables to store column data, like below DECLARE @Name VARCHAR(300) SELECT @Name = Name, @Age = Age FROM [Employee] Here, we give size as VARCHAR(300) in a assumption that length defined in table is 300. And…
Sreekumar P
  • 5,900
  • 11
  • 57
  • 82
0
votes
2 answers

Get length of dynamic range VBA

I need to store the length of a dynamic range based on an initial cell selection and then selecting down to the end of the column. Here' where I am at now Sub Macro1() Dim number_prop_components As Integer Dim range_prop As…
Omar123456789
  • 59
  • 1
  • 2
  • 9
0
votes
1 answer

Optimizing code for reading some VLVs in a file?

I'm trying to read some variable-length-values from a file I created. The file contains the following: 81 7F 81 01 2F F3 FF There are two VLVs there, 81 7F and 81 01 which are 255 and 129 in decimal. I also created some file-reader functions that…
Garmekain
  • 664
  • 5
  • 18
0
votes
1 answer

Finding the length of a stringvar

I am trying to make a function that will add text to a text box if the variable behind it is empty. I was attempting to do this using the .len() function, but I get an AttributeError: 'StringVar' object has no attribute 'length'. My code is as…
Josh Dinsdale
  • 365
  • 3
  • 15
0
votes
3 answers

in java, change size of char array with null character

The following code (from "Cracking the code interview", from Gaale Laakman), shows how to remove duplicate characters in a char array without using a copy of the array to avoid some extra memory use. It re-writes the final characters in the first…
sarah vb
  • 149
  • 2
  • 12
0
votes
1 answer

R Function works on its own, error when used within lapply

I need to perform a univariate logistic regression on all variables in my dataframe. I have 166 variables, and I have been trying to use lapply to simplify this process. However, I keep getting the error: > lapply(data$Gates, FUN=Lmodel) Error in…
OKra
  • 15
  • 3
0
votes
1 answer

What is this number encoding called?

I know some variable length number encodings which share the core idea that 1s encode the payload length linearly. 0 10x 110xx 1110xxx or with 1s and Xs interleaved: 0 1x0 1x1x0 1x1x1x0 With some minor modifications (7 Xs per 1 and 7 Xs at the…
0
votes
1 answer

Getting the length of a float value

var string = -526.56; var string1 = "-526.56"; console.log("string " + string.length) console.log("string " + string) console.log("string1 " + string1.length) console.log("string1 " + string1) I am getting the length of a float but it is…
Martin
  • 365
  • 4
  • 7
  • 22