Math 5610 - Computational Linear Algebra


Project maintained by BrandonFurman Hosted on GitHub Pages — Theme by mattgraham

Software Manual

Routine Name: randVec

Author: Brandon Furman

Language: C++

Description/Purpose:

Input:

Output:

Usage/Example:

Implementation/Code:

array1D randVec(int l) {

	array1D vec;
	
	vec.allocateMem(l);

	for (int i = 0; i < l; i++) {
		vec(i) = (double)rand() / (double)RAND_MAX;
	}

	return vec;
}

Last Modified: February/2019