Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gridap/SparseMatricesCSR.jl
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.1
Choose a base ref
...
head repository: gridap/SparseMatricesCSR.jl
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
15 changes: 15 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CompatHelper
on:
schedule:
- cron: '00 00 * * *'
workflow_dispatch:
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
15 changes: 15 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: TagBot
on:
issue_comment:
types:
- created
workflow_dispatch:
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
81 changes: 81 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: CI
on: [push, pull_request]
jobs:
test:
name: Tests ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.8'
- '1.9'
- '1.10'
os:
- ubuntu-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v4
with:
file: lcov.info
verbose: true

docs:
name: Documentation
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1.10'
- uses: julia-actions/cache@v2
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl

downgrade:
name: Downgrade ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.10'
os:
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-downgrade-compat@v1
with: # As per documentation, we exclude packages within the Julia standard library
skip: LinearAlgebra,SparseArrays
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
coverage: false
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

47 changes: 47 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.9] - 2025.03.15

### Added

- Added `copy` method to `SymSparseMatrixCSR`.

## [0.6.8] - 2024.08.29

### Added

- Added `SparseMatrixCSC` and `AbstractMatrix` constructors.

### Fixed

- Fixed show method for SparseMatrixCSR.
- Fixes related to `TransposeFactorization` (see https://github.com/JuliaLang/julia/pull/46874).

## [0.6.6] - 2021.11.26

### Added

- Implemented `Base.setindex!`.

## [0.6.5] - 2021.10.20

### Fixed

- Return value of `LinearAlbegra.fillstored!`.

### Added

- Implemented `LinearAlbegra.rmul!`.

## [0.6.4] - 2021.10.20

### Added

- Implemented `LinearAlbegra.fillstored!`.

*Previous releases are not included in this Changelog*
5 changes: 3 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name = "SparseMatricesCSR"
uuid = "a0a7dd2c-ebf4-11e9-1f05-cf50bc540ca1"
authors = ["Víctor Sande <vsande@cimne.upc.edu>"]
version = "0.2.1"
authors = ["Víctor Sande <vsande@cimne.upc.edu>", "Francesc Verdugo <fverdugo@cimne.upc.edu>"]
version = "0.6.9"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
SuiteSparse = "4607b0f0-06f3-5cda-b6b1-a6196a1729e9"

[compat]
julia = "1"
38 changes: 6 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,9 @@
# SparseMatricesCSR

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://gridap.github.io/SparseMatricesCSR.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://gridap.github.io/SparseMatricesCSR.jl/dev)
[![Build Status](https://travis-ci.com/gridap/SparseMatricesCSR.jl.svg?branch=master)](https://travis-ci.com/gridap/SparseMatricesCSR.jl)
[![Codecov](https://codecov.io/gh/gridap/SparseMatricesCSR.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/gridap/SparseMatricesCSR.jl)

Compressed Sparse Row (CSR) sparse matrix implementations.

It includes `SparseMatrixCSR` and `SymSparseMatrixCSR` wrappers.

CSR wrappers relies on `SparseMatrixCSC` native Julia type.

## Basic Usage

```julia
julia> push_coo!(SymSparseMatrixCSR,I,J,V,i1,j1,v1)
julia> ...
julia> push_coo!(SymSparseMatrixCSR,I,J,V,in,jn,vn)
julia> finalize_coo!(SparseMatrixCSR,I,J,V,m,n)
julia> CSR= sparsecsr(I,J,V,m,n)

```

## Installation

**SparseMatricesCSR** itself is installed when you add and use it into another project.

To include into your project from Julia REPL, use the following commands:

```
pkg> add SparseMatricesCSR
julia> using SparseMatricesCSR
```
Sparse matrices in CSR format (symmetric and non-symmetric) for Julia computations.

| **Documentation** |
|:------------ |
| [![](https://img.shields.io/badge/docs-stable-blue.svg)](https://gridap.github.io/SparseMatricesCSR.jl/stable) [![](https://img.shields.io/badge/docs-dev-blue.svg)](https://gridap.github.io/SparseMatricesCSR.jl/dev) |
|**Build Status** |
| [![Build Status](https://github.com/gridap/SparseMatricesCSR.jl/workflows/CI/badge.svg?branch=master)](https://github.com/gridap/SparseMatricesCSR.jl/actions?query=workflow%3ACI) [![Codecov](https://codecov.io/gh/gridap/SparseMatricesCSR.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/gridap/SparseMatricesCSR.jl) |
2 changes: 2 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest.toml
build
94 changes: 0 additions & 94 deletions docs/Manifest.toml

This file was deleted.

2 changes: 2 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656"
SparseMatricesCSR = "a0a7dd2c-ebf4-11e9-1f05-cf50bc540ca1"
11 changes: 8 additions & 3 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using Documenter, SparseMatricesCSR
using Documenter, DocumenterInterLinks
using SparseMatricesCSR

links = InterLinks(
"SparseArrays" => "https://docs.julialang.org/en/v1/"
)

makedocs(;
modules=[SparseMatricesCSR],
@@ -8,8 +13,8 @@ makedocs(;
],
repo="https://github.com/gridap/SparseMatricesCSR.jl/blob/{commit}{path}#L{line}",
sitename="SparseMatricesCSR.jl",
authors="Víctor Sande <vsande@cimne.upc.edu>",
assets=String[],
authors="Víctor Sande <vsande@cimne.upc.edu> and Francesc Verdugo <fverdugo@cimne.upc.edu>",
plugins=[links],
)

deploydocs(;
Loading