You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ( order!=CblasRowMajor&&order!=CblasColMajor ) {
46
+
c_xerbla( 1, "c_dsyr2", "Error: invalid argument. First argument must be a valid order. Value: `%d`.", order );
47
+
return;
48
+
}
49
+
if ( uplo!=CblasLower&&uplo!=CblasUpper ) {
50
+
c_xerbla( 2, "c_dsyr2", "Error: invalid argument. Second argument must specify whether to reference the lower or upper triangular matrixecond argument must specify whether to reference the lower or upper triangular matrix. Value: `%d`.", uplo );
51
+
return;
52
+
}
53
+
if ( N<0 ) {
54
+
c_xerbla( 3, "c_dsyr2", "Error: invalid argument. Third argument must be a nonnegative integer. Value: `%d`.", N );
55
+
return;
56
+
}
57
+
if ( strideX==0 ) {
58
+
c_xerbla( 6, "c_dsyr2", "Error: invalid argument. Sixth argument must be nonzero. Value: `%d`.", strideX );
59
+
return;
60
+
}
61
+
if ( strideY==0 ) {
62
+
c_xerbla( 8, "c_dsyr2", "Error: invalid argument. Eighth argument must be nonzero. Value: `%d`.", strideX );
63
+
return;
64
+
}
65
+
if ( LDA<N ) {
66
+
c_xerbla( 10, "c_dsyr2", "Error: invalid argument. Tenth argument must be greater than or equal to max(1,%d). Value: `%d`.", N, LDA );
67
+
return;
68
+
}
69
+
// Check whether we can avoid computation altogether...
// Note on variable naming convention: S#, ix#, iy#, i# where # corresponds to the loop number, with `0` being the innermost loop...
58
+
59
+
// Perform input argument validation...
60
+
if ( uplo!=CblasLower&&uplo!=CblasUpper ) {
61
+
c_xerbla( 1, "c_dsyr2_ndarray", "Error: invalid argument. First argument must specify whether to reference the lower or upper triangular matrixecond argument must specify whether to reference the lower or upper triangular matrix. Value: `%d`.", uplo );
62
+
return;
63
+
}
64
+
if ( N<0 ) {
65
+
c_xerbla( 2, "c_dsyr2_ndarray", "Error: invalid argument. Second argument must be a nonnegative integer. Value: `%d`.", N );
66
+
return;
67
+
}
68
+
if ( strideX==0 ) {
69
+
c_xerbla( 5, "c_dsyr2_ndarray", "Error: invalid argument. Fifth argument must be a nonzero. Value: `%d`.", strideX );
70
+
return;
71
+
}
72
+
if ( strideY==0 ) {
73
+
c_xerbla( 8, "c_dsyr2_ndarray", "Error: invalid argument. Eighth argument must be a nonzero. Value: `%d`.", strideY );
74
+
return;
75
+
}
76
+
// Check whether we can avoid computation altogether...
57
77
if ( N==0||alpha==0.0 ) {
58
78
return;
59
79
}
60
-
isrm=stdlib_ndarray_is_row_major( 2, strides );
80
+
// Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
81
+
sa[ 0 ] =strideA1;
82
+
sa[ 1 ] =strideA2;
83
+
isrm=stdlib_ndarray_is_row_major( 2, sa );
61
84
if ( isrm ) {
62
85
// For row-major matrices, the last dimension has the fastest changing index...
0 commit comments