|
1 | | -module BasisSpecification |
2 | | - |
3 | | -using ..GraphSignal, ..GraphPartition, LinearAlgebra |
4 | | - |
5 | | -export BasisSpec #, bsfull, bs_haar, bs_level |
6 | | - |
7 | | -# BasisSpec data structure and constructors |
8 | | -""" |
9 | | - BS = BasisSpec(dvec, dvec_loc, c2f, description) |
10 | | -
|
11 | | -is a data structure for a BasisSpec object contaning the following fields: |
12 | | -* `levlist::Vector{Tuple{Int, Int}}`: the integer sequence that specifies a particular basis |
13 | | -* `c2f::Bool`: if true (default), this indicates that the basis comes from the coarse-to-fine dictionary; if false, this indicates that the basis comes from the fine-to-coarse dictionary |
14 | | -* `description::String`: a description of the specified basis |
15 | | -
|
16 | | -
|
17 | | -Copyright 2015 The Regents of the University of California |
18 | | -
|
19 | | -Implemented by Jeff Irion (Adviser: Dr. Naoki Saito) | |
20 | | -Translated to julia and revised by Naoki Saito, Feb. 22, 2017 |
21 | | -Modified by Yiqun Shao, May. 20, 2018 |
22 | | -""" |
23 | | -mutable struct BasisSpec |
24 | | - levlist::Vector{Tuple{Int, Int}} |
25 | | - c2f::Bool |
26 | | - description::String |
27 | | - |
28 | | - # An inner constructor here. |
29 | | - function BasisSpec(levlist::Vector{Tuple{Int, Int}}; |
30 | | - c2f::Bool = true, |
31 | | - description::String = "") |
32 | | - new(levlist, c2f, description ) |
33 | | - end # of BasisSpec constructor |
34 | | - |
35 | | -end # of type BasisSpec |
36 | | - |
37 | | -end # of module BasisSpecification |
| 1 | +module BasisSpecification |
| 2 | + |
| 3 | +using ..GraphSignal, ..GraphPartition, LinearAlgebra |
| 4 | + |
| 5 | +export BasisSpec #, bsfull, bs_haar, bs_level |
| 6 | + |
| 7 | +# BasisSpec data structure and constructors |
| 8 | +""" |
| 9 | + BS = BasisSpec(dvec, dvec_loc, c2f, description) |
| 10 | +
|
| 11 | +is a data structure for a BasisSpec object contaning the following fields: |
| 12 | +* `levlist::Vector{Tuple{Int, Int}}`: the integer sequence that specifies a particular basis |
| 13 | +* `c2f::Bool`: if true (default), this indicates that the basis comes from the coarse-to-fine dictionary; if false, this indicates that the basis comes from the fine-to-coarse dictionary |
| 14 | +* `description::String`: a description of the specified basis |
| 15 | +
|
| 16 | +
|
| 17 | +Copyright 2015 The Regents of the University of California |
| 18 | +
|
| 19 | +Implemented by Jeff Irion (Adviser: Dr. Naoki Saito) | |
| 20 | +Translated to julia and revised by Naoki Saito, Feb. 22, 2017 |
| 21 | +Modified by Yiqun Shao, May. 20, 2018 |
| 22 | +""" |
| 23 | +mutable struct BasisSpec |
| 24 | + levlist::Vector{Tuple{Int, Int}} |
| 25 | + c2f::Bool |
| 26 | + description::String |
| 27 | + |
| 28 | + # An inner constructor here. |
| 29 | + function BasisSpec(levlist::Vector{Tuple{Int, Int}}; |
| 30 | + c2f::Bool = true, |
| 31 | + description::String = "") |
| 32 | + new(levlist, c2f, description ) |
| 33 | + end # of BasisSpec constructor |
| 34 | + |
| 35 | +end # of type BasisSpec |
| 36 | + |
| 37 | +end # of module BasisSpecification |
0 commit comments