answersLogoWhite

0

The abstraction are the same. However, the array may be of any objects, while a vector, in narrowed definition, each element is a scalar value (e.g, int, float, double, etc), to fulfill the abs(vector) = aScalarValue property of a vector. An array with the same data type would look exactly the same. But an array of Persons will be difficult to be a vector!

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

How do you find the difference between two arrays in Java?

for arrays you can list the different arrays and what attributes that you give to them.


What is difference between vector and tensor?

Tensors are simply arrays of numbers, or functions, that transform according to certain rules under a change of coordinates. Scalars and vectors are tensors of order 0 and 1 respectively. So a vector is a type of tensor. An example of a tensor of order 2 is an inertia matrix. And just for fun, the Riemann curvature tensor is a tensor of order 4.


Why c and java arrays are start with zero and pascal arrays are start with one?

It's a difference in mentality; some believe 0 is the begin, and is thus the only logical choice, and some think the opposite.


Write a program to find intersection between two arrays?

#include<stdio.h>


The most common function of an array is to store variables however there will be times when an array is used to store objects. briefly describe four such objects?

Any name can be placed in an array, be it a primitive name or an object name, even a function pointer. Four examples of common objects that may be placed in an array include any object defined in the STL (standard template library), which includes vectors, lists, iterators and maps. All are self-explanatory, although a vector is simply an array implemented as an object. Therefore an array of vectors is nothing more than an array of arrays (effectively a multi-dimensional array). However, vectors are the "correct" way of implementing arrays in C++ (unless you specifically wish to use C-style code in your C++ projects), thus a multi-dimensional array is best implemented as a vector of vectors.

Related Questions

What are difference between scalars and vectors?

What are difference between scalars and vectors


Why is the difference between scalars and vectors important?

Without the difference between scalars and vectors the Universe doesn't work !


How do you find the difference between two arrays in Java?

for arrays you can list the different arrays and what attributes that you give to them.


One difference between vectors and scalars?

Vectors have a direction associated with them, scalars do not.


What is the difference between coplanar and non-coplanar vectors?

Coplanar :The vectors are in the same plane.Non coplanar :The vectors are not in the same plane.


Can the magnitude of the difference between two vectors ever be greater than the magnitude of either vector?

Yes, the magnitude of the difference between two vectors can be greater than the magnitude of either vector. This can occur when the vectors are in opposite directions or have different magnitudes such that the resulting difference vector is longer than either of the original vectors.


What is the difference between orthogonal and orthonormal vectors?

All vectors that are perpendicular (their dot product is zero) are orthogonal vectors.Orthonormal vectors are orthogonal unit vectors. Vectors are only orthonormal if they are both perpendicular have have a length of 1.


What is the resultant of two vectors in the opposite direction?

When two vectors are in opposite directions, their resultant is the difference between their magnitudes, with the direction of the larger vector. This means the resultant vector points in the direction of the larger vector and its magnitude is the difference between the magnitudes of the two vectors.


What is the linear data structures?

Linear data structures are 1-dimensional arrays, as in: vectors.


Difference between vector and array list?

Vectors are thread safe but array lists are not. Hence array lists are faster than Vectors.


The sum of two vectors is a minimum when the angle between them is what?

180 degrees. Then the sum of the two vectors has a magnitude equal to the difference of their individual magnitudes.


What is the Difference between arrays in c and c plus plus?

Nothing whatsoever. They are exactly the same.