We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example:
fun main() { val A1 = mk.identity<Double>(3) println("A1") println(A1) val A2 = mk.ones<Double>(3, 1) println("A2") println(A2) println("A1 A2") println(A1.cat(A2, axis=1)) }
gives
A1 [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]] A2 [[0.0], [0.0], [0.0]] A1 A2 [[1.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]]
Comparison with numpy:
A1 = np.identity(3) A2 = np.ones((3, 1)) np.concatenate((A1, A2), axis=1)
array([[1., 0., 0., 1.], [0., 1., 0., 1.], [0., 0., 1., 1.]])
The text was updated successfully, but these errors were encountered:
fixes #72
Sorry, something went wrong.
No branches or pull requests
Observed behaviour
Example:
gives
Expected results
Comparison with numpy:
gives
The text was updated successfully, but these errors were encountered: