Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4098b75

Browse filesBrowse files
ShadyBoukharyumar456
authored andcommitted
Added function that was accidentally removed and update todo.txt
1 parent 50b450b commit 4098b75
Copy full SHA for 4098b75

File tree

2 files changed

+10
-10
lines changed
Filter options

2 files changed

+10
-10
lines changed

‎src/statistics.cpp

Copy file name to clipboardExpand all lines: src/statistics.cpp
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ JNIEXPORT jlong JNICALL STATISTICS_FUNC(afVar)(JNIEnv *env, jclass clazz,
5454
return JLONG(ret);
5555
}
5656

57+
JNIEXPORT jobject JNICALL STATISTICS_FUNC(afVarAll)(JNIEnv *env, jclass clazz,
58+
jlong ref, jboolean isBiased) {
59+
double real = 0, img = 0;
60+
AF_CHECK(af_var_all(&real, &img, ARRAY(ref), isBiased));
61+
return java::createJavaObject(env, java::JavaObjects::DoubleComplex, real, img);
62+
}
63+
5764
INSTANTIATE_STAT_WEIGHTED(Var, var)
5865
INSTANTIATE_STAT_ALL_WEIGHTED(Var, var)
5966

‎todo.txt

Copy file name to clipboardExpand all lines: todo.txt
+3-10Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ af_approx1_uniform
1515
af_approx2
1616
af_approx2_uniform
1717
af_arg
18-
af_array_to_string
1918

2019
af_assign_gen
2120
af_assign_seq
@@ -44,11 +43,10 @@ af_constant_ulong
4443
af_convolve2_sep
4544

4645
af_copy_array
47-
af_corrcoef
4846

4947
af_count
5048
af_count_all
51-
af_cov
49+
5250
af_cplx
5351
af_cplx2
5452

@@ -250,8 +248,6 @@ af_meanvar
250248

251249
af_medfilt1
252250
af_medfilt2
253-
af_median
254-
af_median_all
255251

256252
af_minfilt
257253
af_minof
@@ -270,7 +266,7 @@ af_pinverse
270266

271267
af_pow2
272268
af_print_array
273-
269+
af_print_array_gen
274270
af_print_mem_info
275271
af_product
276272
af_product_all
@@ -367,9 +363,6 @@ af_sparse_get_storage
367363
af_sparse_get_values
368364
af_sparse_to_dense
369365

370-
af_stdev
371-
af_stdev_all
372-
373366
af_sum_nan
374367
af_sum_nan_all
375368
af_susan
@@ -379,7 +372,7 @@ af_sync
379372

380373
af_tgamma
381374
af_tile
382-
af_topk
375+
383376
af_transform
384377
af_transform_coordinates
385378
af_translate

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.