Questions tagged [scalar]

In computing and programming, a scalar variable or value refers to a single value, as opposed to data structures such as arrays or lists.

In computing and programming, a scalar variable refers to a single value, as opposed to data structures such as or s. A scalar can be of any type, including a complex type such as an object or string. Being scalar only means that it is manipulated as a single value.

As an example, the string type in C++ is considered to be a scalar as it is a primitive type containing a single value, although in the C language there is no such primitive type. Thus, the char array implementation of strings typically used would not be considered as a scalar.

See also:

532 questions
-2
votes
2 answers

Scalar by vector multiplication in C

I have this code for multiplying a scalar by an n dimention vector; it compiles but crashes and I don't know what's wrong, any ideas? #include int main() { int i,n,A[n]; float k,B[n]; printf ("\n Enter vector…
FdHC
  • 3
  • 2
-2
votes
2 answers

Use of uninitialized value in string

Use of uninitialized value in string Where is mistake? else{ print $q->param('test_name'); my $age = $q->param('age'); print "Возраст: $age"; }
KingOfPing
  • 67
  • 1
  • 2
  • 6
-2
votes
3 answers

Must be declared scalar value "@iD_User

`ql = "select ID from Users where Username = '" + txtusername.Text + "';"; cmd = new SqlCommand(sql, Sel_Menu.con); Sel_Menu.con.Open(); …
AssassinLV
  • 48
  • 6
-2
votes
1 answer

Error on scalar value as an array

Can some one help me with this code with a error on scalar value as an array? $getal = $_POST['getal']; For($teller=1; $teller<=11; $teller=$teller+1) { $uitkomst[$teller]=$teller*$getal; }
-3
votes
1 answer

TypeError: scalar() got multiple values for argument 'name'

--------------------------------------------------------------------------- TypeError Traceback (most recent call last) in () 19 with tf.name_scope("summaries"): …
Pengbo
  • 11
  • 1
-4
votes
2 answers

Why Scalar does not work?

Following code results in build success, but no window. Without "m = Scalar(255,0,0);", it creates black window. Why including scalar does not work? #include #include #include #include…
Dami Kim
  • 9
  • 1
1 2 3
35
36