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

fix(ivy/functional): update diagflat docstring #23342

Closed
wants to merge 51 commits into from
Closed
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
398f178
fixed a bug, I modify the code to handle the case when dim is 1 sepa…
shephinphilip Jul 9, 2023
0e72bb5
fixed a bug, I modify the code to handle the case when dim is 1 sepa…
shephinphilip Jul 9, 2023
5ee8d58
fixed a bug, I modify the code to handle the case when dim is 1 sepa…
shephinphilip Jul 9, 2023
78fb315
Fixing the utils init file
shephinphilip Jul 10, 2023
adb130f
Fixing the utils init file
shephinphilip Jul 11, 2023
5447027
Fixed the 'unknown_shape not defined' error
shephinphilip Jul 11, 2023
53dfa84
Fixed the 'unknown_shape not defined' error
shephinphilip Jul 11, 2023
9aac507
ivy.utils
shephinphilip Jul 12, 2023
e510faa
ivy.utils
shephinphilip Jul 12, 2023
5ae79ff
ivy.utils
shephinphilip Jul 12, 2023
a86dc38
ivy.utils
shephinphilip Jul 12, 2023
db95c76
ivy.utils
shephinphilip Jul 12, 2023
ef13702
added docs folder
shephinphilip Jul 14, 2023
69c1e2b
Copy exact code from master branch to previous-branch
shephinphilip Jul 22, 2023
ecb4c17
Solved ivy utils
shephinphilip Jul 22, 2023
64a3d44
Merge branch 'master' of https://github.com/shephinphilip/ivy into Iv…
shephinphilip Aug 1, 2023
71c877e
Changed open_task
shephinphilip Aug 1, 2023
8582e11
Merge branch 'master' into Doc-opentask
shephinphilip Aug 2, 2023
1eeff65
made changes in ivy/__init__.py
shephinphilip Aug 3, 2023
4556e75
Merge branch 'Doc-opentask' of https://github.com/shephinphilip/ivy i…
shephinphilip Aug 3, 2023
2a73b10
changed to '
shephinphilip Aug 3, 2023
6f9e14c
/array_api_testing/test_array_api.diff
shephinphilip Aug 4, 2023
de97d4d
Merge branch 'master' into Doc-opentask
shephinphilip Aug 4, 2023
83f9be1
changes in docs
shephinphilip Aug 4, 2023
1b94167
commented the code
shephinphilip Aug 4, 2023
e0a0f4b
created conf file
shephinphilip Aug 5, 2023
ba4aa28
Merge remote-tracking branch 'upstream/master' into Doc-conf
shephinphilip Aug 7, 2023
0470c21
feat(docs/api-standards): fix placeholders in api_standards.rst
shephinphilip Sep 9, 2023
52527fe
Merge branch 'master' of https://github.com/shephinphilip/ivy
shephinphilip Sep 9, 2023
1aa280d
Merge branch 'master' into docs/api-standards
shephinphilip Sep 9, 2023
ab453c6
avoid conflict
shephinphilip Sep 9, 2023
ae529b0
updated diagflat docstring
shephinphilip Sep 9, 2023
c3f5950
Merge branch 'main' into ivy-functional
shephinphilip Sep 9, 2023
722e228
deleted conf.py
shephinphilip Sep 11, 2023
02e656a
Merge branch 'ivy-functional' of https://github.com/shephinphilip/ivy…
shephinphilip Sep 11, 2023
e970508
changed some files
shephinphilip Sep 11, 2023
a6fa1cf
changed some files
shephinphilip Sep 11, 2023
d0176c3
changed some files
shephinphilip Sep 11, 2023
57d9c21
Merge branch 'ivy-functional' of https://github.com/shephinphilip/ivy…
shephinphilip Sep 11, 2023
e309678
changes made in file
shephinphilip Sep 13, 2023
b17c475
Your commit message here
shephinphilip Sep 13, 2023
749d58e
Merge remote-tracking branch 'upstream/main' into ivy-functional
shephinphilip Sep 13, 2023
86b2033
made some changes
shephinphilip Sep 13, 2023
6208e5d
Merge branch 'ivy-functional' of https://github.com/shephinphilip/ivy…
shephinphilip Sep 13, 2023
b7ffb01
made some changes
shephinphilip Sep 13, 2023
06db220
Your commit message here
shephinphilip Sep 13, 2023
4bf73d7
changed in diagflow
shephinphilip Sep 13, 2023
0c4eb52
changed in ivy/__init__.py
shephinphilip Sep 13, 2023
cdce808
Update linear_algebra.py
shephinphilip Oct 2, 2023
7512af2
🤖 Lint code
ivy-branch Oct 2, 2023
f99183c
Update linear_algebra.py
shephinphilip Oct 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions ivy/functional/ivy/experimental/linear_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def eigh_tridiagonal(
@handle_exceptions
@handle_backend_invalid
shephinphilip marked this conversation as resolved.
Show resolved Hide resolved
@handle_nestable
@handle_backend_invalid
@handle_array_like_without_promotion
@handle_out_argument
@to_native_arrays_and_back
Expand All @@ -185,7 +186,8 @@ def diagflat(

Parameters
----------
x

x
Input data, which is flattened and set as the k-th diagonal of the output.
k
Diagonal to set.
Expand All @@ -198,11 +200,12 @@ def diagflat(

Returns
-------
ret
ret : ivy.Array
The 2-D output array.

Examples
--------
Functional Examples
------------------

With :class:`ivy.Array` inputs:

>>> x = ivy.array([[1,2], [3,4]])
Expand All @@ -213,7 +216,7 @@ def diagflat(
[0, 0, 0, 4]])

>>> x = ivy.array([1,2])
>>> ivy.diagflat(x, k=1)
>>> ivy.diagflat(x, offset=1)
ivy.array([[0, 1, 0],
[0, 0, 2],
[0, 0, 0]])
Expand Down
Loading