Skip to content

Commit ff017b9

Browse files
committed
some trivial updates
1 parent e865847 commit ff017b9

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

fredipy/covariance.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from .kernels import Kernel
55
from .constraints import LinearEquality
66

7-
from .operators import Integral, Identity, ConstMatrix, Derivative
87
import numpy as np
98

109

fredipy/kernels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def make(
103103
Return matrix of shape (len(x), len(y)) with entries set to 1 where
104104
x == y and 0 otherwise. Identity matrix if vectors x and y are equal.
105105
"""
106-
return (x.reshape(-1,1) == y.reshape(1,-1)).astype(float)
106+
return (make_column_vector(x) == make_row_vector(y)).astype(float)
107107

108108

109109
class RadialBasisFunction(Kernel):

0 commit comments

Comments
 (0)