-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversion methods: to*
versus to_*
?
#271
Comments
I find to_* more readable and I think it follows the snake case convention. However I think aligning with numpy is probably the better option at this point. |
I agree with @ntjohnson1 that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(I was going to make a Shakespeare pun, but I resisted...)
What should the convention be for the conversion methods?
Here are a couple in place already:
sptensor.spmatrix
(aligns with MATLAB TTB)tensor.to_sptensor
ktensor.tolist
ktensor.tovec
ktensor.to_tensor
Note:
numpy
andscipy
supportto*
methods. Examples (using tab completion to illustrate):Suggestion: In
pyttb
, we should align withnumpy
andscipy
conventions.@jeremy-myers @ntjohnson1 Please weigh in.
The text was updated successfully, but these errors were encountered: