summaryrefslogtreecommitdiff
path: root/silx/resources
diff options
context:
space:
mode:
Diffstat (limited to 'silx/resources')
-rw-r--r--silx/resources/gui/colormaps/cividis.npybin0 -> 3200 bytes
-rw-r--r--silx/resources/gui/icons/description-description.pngbin0 -> 756 bytes
-rw-r--r--silx/resources/gui/icons/description-description.svg13
-rw-r--r--silx/resources/gui/icons/description-error.pngbin0 -> 952 bytes
-rw-r--r--silx/resources/gui/icons/description-error.svg13
-rw-r--r--silx/resources/gui/icons/description-name.pngbin0 -> 822 bytes
-rw-r--r--silx/resources/gui/icons/description-name.svg13
-rw-r--r--silx/resources/gui/icons/description-program.pngbin0 -> 767 bytes
-rw-r--r--silx/resources/gui/icons/description-program.svg13
-rw-r--r--silx/resources/gui/icons/description-title.pngbin0 -> 707 bytes
-rw-r--r--silx/resources/gui/icons/description-title.svg13
-rw-r--r--silx/resources/gui/icons/description-value.pngbin0 -> 833 bytes
-rw-r--r--silx/resources/gui/icons/description-value.svg13
-rw-r--r--silx/resources/opencl/sparse.cl20
14 files changed, 93 insertions, 5 deletions
diff --git a/silx/resources/gui/colormaps/cividis.npy b/silx/resources/gui/colormaps/cividis.npy
new file mode 100644
index 0000000..8e118ef
--- /dev/null
+++ b/silx/resources/gui/colormaps/cividis.npy
Binary files differ
diff --git a/silx/resources/gui/icons/description-description.png b/silx/resources/gui/icons/description-description.png
new file mode 100644
index 0000000..36aaf0c
--- /dev/null
+++ b/silx/resources/gui/icons/description-description.png
Binary files differ
diff --git a/silx/resources/gui/icons/description-description.svg b/silx/resources/gui/icons/description-description.svg
new file mode 100644
index 0000000..8f953ce
--- /dev/null
+++ b/silx/resources/gui/icons/description-description.svg
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg id="svg8" version="1.1" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <metadata id="metadata14">
+ <rdf:RDF>
+ <cc:Work rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <path id="path2" transform="translate(9.9117 -.3238)" d="m18.888 16.324a12.8 12.8 0 1 1-25.6 0 12.8 12.8 0 1 1 25.6 0z" color="#000000" fill="none" fill-opacity=".81569" stroke="#000" stroke-miterlimit="2" stroke-width="1.4"/>
+ <text id="text6" transform="scale(.95952 1.0422)" x="9.2160034" y="22.079336" fill="#000000" font-family="Sans" font-size="18.454px" letter-spacing="0px" stroke-width="1.4087" word-spacing="0px" style="line-height:125%" xml:space="preserve"><tspan id="tspan4" x="9.2160034" y="22.079336" font-weight="bold" stroke-width="1.4087">D</tspan></text>
+</svg>
diff --git a/silx/resources/gui/icons/description-error.png b/silx/resources/gui/icons/description-error.png
new file mode 100644
index 0000000..053f725
--- /dev/null
+++ b/silx/resources/gui/icons/description-error.png
Binary files differ
diff --git a/silx/resources/gui/icons/description-error.svg b/silx/resources/gui/icons/description-error.svg
new file mode 100644
index 0000000..50dd7ac
--- /dev/null
+++ b/silx/resources/gui/icons/description-error.svg
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg id="svg8" version="1.1" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <metadata id="metadata14">
+ <rdf:RDF>
+ <cc:Work rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <path id="path2" transform="translate(9.9117 -.3238)" d="m18.888 16.324a12.8 12.8 0 1 1-25.6 0 12.8 12.8 0 1 1 25.6 0z" color="#000000" fill="#b50000" fill-opacity=".81569" stroke="#000" stroke-miterlimit="2" stroke-width="1.4"/>
+ <text id="text6" transform="scale(.95953 1.0422)" x="11.601206" y="23.464109" fill="#000000" font-family="Sans" font-size="22.381px" letter-spacing="0px" stroke-width="1.7085" word-spacing="0px" style="line-height:125%" xml:space="preserve"><tspan id="tspan4" x="11.601206" y="23.464109" font-weight="bold" stroke-width="1.7085">!</tspan></text>
+</svg>
diff --git a/silx/resources/gui/icons/description-name.png b/silx/resources/gui/icons/description-name.png
new file mode 100644
index 0000000..dae65f1
--- /dev/null
+++ b/silx/resources/gui/icons/description-name.png
Binary files differ
diff --git a/silx/resources/gui/icons/description-name.svg b/silx/resources/gui/icons/description-name.svg
new file mode 100644
index 0000000..ffbcb58
--- /dev/null
+++ b/silx/resources/gui/icons/description-name.svg
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg id="svg8" version="1.1" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <metadata id="metadata14">
+ <rdf:RDF>
+ <cc:Work rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <path id="path2" transform="translate(9.9117 -.3238)" d="m18.888 16.324a12.8 12.8 0 1 1-25.6 0 12.8 12.8 0 1 1 25.6 0z" color="#000000" fill="none" fill-opacity=".81569" stroke="#000" stroke-miterlimit="2" stroke-width="1.4"/>
+ <text id="text6" transform="scale(.95952 1.0422)" x="8.1759052" y="22.446846" fill="#000000" font-family="Sans" font-size="19.589px" letter-spacing="0px" stroke-width="1.4954" word-spacing="0px" style="line-height:125%" xml:space="preserve"><tspan id="tspan4" x="8.1759052" y="22.446846" font-weight="bold" stroke-width="1.4954">N</tspan></text>
+</svg>
diff --git a/silx/resources/gui/icons/description-program.png b/silx/resources/gui/icons/description-program.png
new file mode 100644
index 0000000..72e25d2
--- /dev/null
+++ b/silx/resources/gui/icons/description-program.png
Binary files differ
diff --git a/silx/resources/gui/icons/description-program.svg b/silx/resources/gui/icons/description-program.svg
new file mode 100644
index 0000000..8c04541
--- /dev/null
+++ b/silx/resources/gui/icons/description-program.svg
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg id="svg8" version="1.1" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <metadata id="metadata14">
+ <rdf:RDF>
+ <cc:Work rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <path id="path2" transform="translate(9.9117 -.3238)" d="m18.888 16.324a12.8 12.8 0 1 1-25.6 0 12.8 12.8 0 1 1 25.6 0z" color="#000000" fill="none" fill-opacity=".81569" stroke="#000" stroke-miterlimit="2" stroke-width="1.4"/>
+ <text id="text6" transform="scale(.95952 1.0422)" x="9.3110971" y="22.859962" fill="#000000" font-family="Sans" font-size="20.596px" letter-spacing="0px" stroke-width="1.5722" word-spacing="0px" style="line-height:125%" xml:space="preserve"><tspan id="tspan4" x="9.3110971" y="22.859962" font-weight="bold" stroke-width="1.5722">P</tspan></text>
+</svg>
diff --git a/silx/resources/gui/icons/description-title.png b/silx/resources/gui/icons/description-title.png
new file mode 100644
index 0000000..274b6dd
--- /dev/null
+++ b/silx/resources/gui/icons/description-title.png
Binary files differ
diff --git a/silx/resources/gui/icons/description-title.svg b/silx/resources/gui/icons/description-title.svg
new file mode 100644
index 0000000..9c3eee1
--- /dev/null
+++ b/silx/resources/gui/icons/description-title.svg
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg id="svg8" version="1.1" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <metadata id="metadata14">
+ <rdf:RDF>
+ <cc:Work rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <path id="path2" transform="translate(9.9117 -.3238)" d="m18.888 16.324a12.8 12.8 0 1 1-25.6 0 12.8 12.8 0 1 1 25.6 0z" color="#000000" fill="none" fill-opacity=".81569" stroke="#000" stroke-miterlimit="2" stroke-width="1.4"/>
+ <text id="text6" transform="scale(.95952 1.0422)" x="10.161721" y="22.469648" fill="#000000" font-family="Sans" font-size="19.525px" letter-spacing="0px" stroke-width="1.4905" word-spacing="0px" style="line-height:125%" xml:space="preserve"><tspan id="tspan4" x="10.161721" y="22.469648" font-weight="bold" stroke-width="1.4905">T</tspan></text>
+</svg>
diff --git a/silx/resources/gui/icons/description-value.png b/silx/resources/gui/icons/description-value.png
new file mode 100644
index 0000000..a73ebf1
--- /dev/null
+++ b/silx/resources/gui/icons/description-value.png
Binary files differ
diff --git a/silx/resources/gui/icons/description-value.svg b/silx/resources/gui/icons/description-value.svg
new file mode 100644
index 0000000..8371771
--- /dev/null
+++ b/silx/resources/gui/icons/description-value.svg
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg id="svg8" version="1.1" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <metadata id="metadata14">
+ <rdf:RDF>
+ <cc:Work rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <path id="path2" transform="translate(9.9117 -.3238)" d="m18.888 16.324a12.8 12.8 0 1 1-25.6 0 12.8 12.8 0 1 1 25.6 0z" color="#000000" fill="none" fill-opacity=".81569" stroke="#000" stroke-miterlimit="2" stroke-width="1.4"/>
+ <text id="text6" transform="scale(.95952 1.0422)" x="9.0294943" y="22.554394" fill="#000000" font-family="Sans" font-size="19.758px" letter-spacing="0px" stroke-width="1.5082" word-spacing="0px" style="line-height:125%" xml:space="preserve"><tspan id="tspan4" x="9.0294943" y="22.554394" font-weight="bold" stroke-width="1.5082">V</tspan></text>
+</svg>
diff --git a/silx/resources/opencl/sparse.cl b/silx/resources/opencl/sparse.cl
index 29e09ad..c99a0e9 100644
--- a/silx/resources/opencl/sparse.cl
+++ b/silx/resources/opencl/sparse.cl
@@ -28,6 +28,16 @@
#error "Please define IMAGE_WIDTH parameter"
#endif
+#ifndef DTYPE
+ #error "Please define DTYPE parameter"
+#endif
+
+#ifndef IDX_DTYPE
+ #error "Please define IDX_DTYPE parameter"
+#endif
+
+
+
/**
* Densify a matric from CSR format to "dense" 2D format.
* The input CSR data consists in 3 arrays: (data, ind, iptr).
@@ -43,10 +53,10 @@
**/
kernel void densify_csr(
- const global float* data,
- const global int* ind,
- const global int* iptr,
- global float* output,
+ const global DTYPE* data,
+ const global IDX_DTYPE* ind,
+ const global IDX_DTYPE* iptr,
+ global DTYPE* output,
int image_height
)
{
@@ -54,7 +64,7 @@ kernel void densify_csr(
uint row_idx = get_global_id(1);
if ((tid >= IMAGE_WIDTH) || (row_idx >= image_height)) return;
- local float line[IMAGE_WIDTH];
+ local DTYPE line[IMAGE_WIDTH];
// Memset
//~ #pragma unroll