Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Myshrimp #4941

Closed
wants to merge 3 commits into from
Closed

Myshrimp #4941

wants to merge 3 commits into from

Conversation

Myshrimp
Copy link

No description provided.

@tencent-adm
Copy link
Member

tencent-adm commented Aug 14, 2023

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ Myshrimp
❌ Liu Jiawei


Liu Jiawei seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

#ifdef NCNN_SIMPLEMATH
#include <stdlib.h>
#include<stdio.h>
float absolute(float x)//����ֵ
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The encoding can be improved. UTF-8 encoding recommended. Spaces around // prefered.

i.e.

float absolute(float x) // your_comment

return x;
}

float Factorial(int x)//�׳�
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

}


float nth(float x, int n)//n�η�
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

return (1 / x) * nth(x, n + 1);
}
}
float Bernoulli(int x)//��Ŭ����
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

return B;
}
}
float tan(float x)//tan(x) ���ȱ���0.000001 �����ٶ�̫��
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

printf("\tNaN\n");
return 0;
}
while (absolute(e) > accuracy && i <= 24)//���Ǽ����ٶȣ�����Bernoulli()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

src/simplemath.h Outdated
#ifndef TAN_H
#define TAN_H
#include<stdio.h>
#define pai 3.14159265
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider not using Chinese Pinyin when naming a variable.

@@ -15,6 +15,7 @@
#ifndef NCNN_PLATFORM_H
#define NCNN_PLATFORM_H

#cmakedefine01 NCNN_SIMPLEMATH
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider moving NCNN_SIMPLEPATH to the bottom, just like the order when src/CMakeLists.txt.

@nihui
Copy link
Member

nihui commented Oct 20, 2023

pr closed as a much more superior simplemath implementation covered in #4905
thanks anyway !

@nihui nihui closed this Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants