-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnumeric.h
More file actions
28 lines (23 loc) · 697 Bytes
/
numeric.h
File metadata and controls
28 lines (23 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* File: numeric.h
* Author: rohit
*
* Created on September 6, 2015, 8:56 AM
*/
#ifndef NUMERIC_H
#define NUMERIC_H
void AddArray(const Array &a, const Array &b, Array &c);
void AddArray(Array &a, const Array &b);
void SquareArray(Array &a);
void SubtractArray(const Array &a, const Array &b, Array &c);
void SubtractArray(Array &a, const Array &b);
void ElementDivide(const Array &a, const Array &b, Array &c);
void print(const Array &arr);
void print(const Matrix &arr);
Array& zeroArray(int length);
Array& unitArray(int length);
void zero_array(Array &arr);
void zero_matrix(Matrix &mat);
int findMinimaIndex(const Array &arr);
int median(vector<int> v);
#endif /* NUMERIC_H */