summaryrefslogtreecommitdiffstats
path: root/SD-VBS/common/c/fResetArray.c
blob: 23a853a25d91b0bd6a83462bdc34cafe2ad3f61b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/********************************
Author: Sravanthi Kota Venkata
********************************/

#include <stdio.h>
#include <stdlib.h>
#include "sdvbs_common.h"

void fResetArray(F2D *out, int rows, int cols, float val)
{
    int i, j;
    
    for(i=0; i<rows; i++) {
        for(j=0; j<cols; j++) {
            subsref(out,i,j) = val;
		}
   	} 
    
}