Home
last modified time | relevance | path

Searched refs:rows_ix (Results 1 – 5 of 5) sorted by relevance

/petsc/src/binding/petsc4py/demo/regressor/
H A Dtest_regressor.py22 rows_ix = [0, 1, 2, 3, 4] variable
35 X.setValues(rows_ix,cols_ix,X_array,addv=True)
36 y.setValues(rows_ix,y_array,addv=False)
H A Dtest_regressor_synthetic.py52 rows_ix = np.arange(ntr,dtype=np.int32)
62 X.setValues(rows_ix,cols_ix,x_train,addv=True)
63 y.setValues(rows_ix,y_train,addv=False)
69 rows_ix = np.arange(nte,dtype=np.int32)
78 X.setValues(rows_ix,cols_ix,xte,addv=True)
/petsc/src/ml/regressor/tests/
H A Dex_sharks.c45 PetscInt rows_ix[20] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19}; in main() local
61 PetscCall(VecSetValues(y, 20, rows_ix, y_array, INSERT_VALUES)); in main()
62 PetscCall(MatSetValues(X, 20, rows_ix, 4, cols_ix, X_array, ADD_VALUES)); in main()
H A Dex2.c23 PetscInt rows_ix[5] = {0, 1, 2, 3, 4}; in main() local
39 PetscCall(VecSetValues(y, 5, rows_ix, y_array, INSERT_VALUES)); in main()
40 PetscCall(MatSetValues(X, 5, rows_ix, 2, cols_ix, X_array, ADD_VALUES)); in main()
H A Dex1.c23 PetscInt rows_ix[5] = {0, 1, 2, 3, 4}; in main() local
39 PetscCall(VecSetValues(y, 5, rows_ix, y_array, INSERT_VALUES)); in main()
40 PetscCall(MatSetValues(X, 5, rows_ix, 2, cols_ix, X_array, ADD_VALUES)); in main()