Skip to content

Commit 5397da5

Browse files
committed
Updated git tage, linting
1 parent cb8fc53 commit 5397da5

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if(DEFINED ENV{AF_BUILD_LOCAL_LIBS})
1515
FetchContent_Declare(
1616
arrayfire
1717
GIT_REPOSITORY https://github.com/edwinsolisf/arrayfire.git
18-
GIT_TAG afwheel310
18+
GIT_TAG v3.10
1919
)
2020
#TODO: change package name to match repository/project name?
2121
#set(AF_INSTALL_CMAKE_DIR "${SKBUILD_PROJECT_NAME}")

arrayfire_wrapper/lib/create_and_modify_array/assignment_and_indexing/_indexing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import ctypes
44
import math
5-
from typing import Any
65

6+
from arrayfire_wrapper.defines import AFArray
77
from arrayfire_wrapper.lib._broadcast import bcast_var
88
from arrayfire_wrapper.lib.create_and_modify_array.manage_array import release_array, retain_array
9-
from arrayfire_wrapper.defines import AFArray
9+
1010

1111
class _IndexSequence(ctypes.Structure):
1212
"""

arrayfire_wrapper/lib/linear_algebra/blas_operations.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from arrayfire_wrapper.dtypes import c_api_value_to_dtype, complex32, complex64, float32, float64
66
from arrayfire_wrapper.lib._constants import MatProp
77
from arrayfire_wrapper.lib._utility import call_from_clib
8-
from arrayfire_wrapper.lib.create_and_modify_array.manage_array import get_type, copy_array
8+
from arrayfire_wrapper.lib.create_and_modify_array.manage_array import copy_array, get_type
99

1010

1111
def dot(lhs: AFArray, rhs: AFArray, lhs_opts: MatProp, rhs_opts: MatProp, /) -> AFArray:
@@ -29,12 +29,14 @@ def dot_all(lhs: AFArray, rhs: AFArray, lhs_opts: MatProp, rhs_opts: MatProp, /)
2929
return real.value if imag.value == 0 else real.value + imag.value * 1j
3030

3131

32-
def gemm(lhs: AFArray, rhs: AFArray, lhs_opts: MatProp, rhs_opts: MatProp, alpha: Any, beta: Any, accum: AFArray | None, /) -> AFArray:
32+
def gemm(
33+
lhs: AFArray, rhs: AFArray, lhs_opts: MatProp, rhs_opts: MatProp, alpha: Any, beta: Any, accum: AFArray | None, /
34+
) -> AFArray:
3335
"""
3436
source: https://arrayfire.org/docs/group__blas__func__matmul.htm#ga0463ae584163128718237b02faf5caf7
3537
"""
3638
out = None
37-
if not accum is None:
39+
if accum is not None:
3840
out = copy_array(accum)
3941
else:
4042
beta = 0.0

0 commit comments

Comments
 (0)