We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isone(::AbstractArray)
1 parent 1315522 commit 2aa55e2Copy full SHA for 2aa55e2
stdlib/LinearAlgebra/src/dense.jl
@@ -14,6 +14,7 @@ const NRM2_CUTOFF = 32
14
const ISONE_CUTOFF = 2^21 # 2M
15
16
function isone(A::AbstractMatrix)
17
+ require_one_based_indexing(A) # multiplication not defined yet among offset matrices
18
m, n = size(A)
19
m != n && return false # only square matrices can satisfy x == one(x)
20
if sizeof(A) < ISONE_CUTOFF
0 commit comments