Repository: ivy-llc/ivy

Issue:
mv



Discussion:
Hi, 
Working on this.
Thank you
> Hi, 
> Working on this.
> Thank you

Hi @Kiprop2020 , I've assigned this issue to myself and I'm working on it. Could you please check another issue, which is not assigned to anyone. 
Thank you.
<!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
-->Hi Rohan, my mistake. Sorry about that. Thank you. Sent from Mail for Windows From: Rohan DawkharSent: Thursday, September 7, 2023 9:00 PMTo: unifyai/ivyCc: Peter Kiprop; MentionSubject: Re: [unifyai/ivy] mv (Issue #22903) Hi,Working on this.Thank youHi @Kiprop2020 , I've assigned this issue to myself and I'm working on it. Could you please check another issue, which is not assigned to anyone.Thank you.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***> 
This issue has been labelled as stale. If you would like to continue working on this issue, then please add another comment or create a PR . If a PR has already been created which refers to this issue, then you should explicitly mention this issue in the relevant PR. For more information please refer to this page in our documentation: https://lets-unify.ai/ivy/contributing/1_the_basics.html#todo-list-issues
Working on the issue.

Resolving patch:
diff --git a/ivy/functional/frontends/paddle/linalg.py b/ivy/functional/frontends/paddle/linalg.py
--- a/ivy/functional/frontends/paddle/linalg.py
+++ b/ivy/functional/frontends/paddle/linalg.py
@@ -114,6 +114,13 @@ def matrix_power(x, n, name=None):
     return ivy.matrix_power(x, n)
 
 
+# mv
+@with_supported_dtypes({"2.5.1 and below": ("float32", "float64")}, "paddle")
+@to_ivy_arrays_and_back
+def mv(x, vec, name=None):
+    return ivy.dot(x, vec)
+
+
 # norm
 @with_supported_dtypes({"2.5.1 and below": ("float32", "float64")}, "paddle")
 @to_ivy_arrays_and_back


Test patch:
diff --git a/ivy_tests/test_ivy/test_frontends/test_paddle/test_linalg.py b/ivy_tests/test_ivy/test_frontends/test_paddle/test_linalg.py
--- a/ivy_tests/test_ivy/test_frontends/test_paddle/test_linalg.py
+++ b/ivy_tests/test_ivy/test_frontends/test_paddle/test_linalg.py
@@ -17,6 +17,10 @@
     _get_cholesky_matrix,
 )
 
+from ivy_tests.test_ivy.test_frontends.test_torch.test_blas_and_lapack_ops import (
+    _get_dtype_input_and_mat_vec,
+)
+
 
 # --- Helpers --- #
 # --------------- #
@@ -760,6 +764,33 @@ def test_paddle_matrix_power(
     )
 
 
+# mv
+@handle_frontend_test(
+    fn_tree="paddle.mv",
+    dtype_mat_vec=_get_dtype_input_and_mat_vec(),
+    test_with_out=st.just(False),
+)
+def test_paddle_mv(
+    dtype_mat_vec,
+    frontend,
+    test_flags,
+    backend_fw,
+    fn_tree,
+    on_device,
+):
+    dtype, mat, vec = dtype_mat_vec
+    helpers.test_frontend_function(
+        input_dtypes=dtype,
+        frontend=frontend,
+        test_flags=test_flags,
+        backend_to_test=backend_fw,
+        fn_tree=fn_tree,
+        on_device=on_device,
+        x=mat,
+        vec=vec,
+    )
+
+
 # norm
 @handle_frontend_test(
     fn_tree="paddle.norm",