Kigubkur 0.2.0
Released under the Propietary Public Domain Software (without source) License
ki-gub-kúr (transliteration of the Sumerian cuneiform signs 𒆠 𒁺 𒉽 and translation ki-gub ↔ state [CONDITION] and kúr ↔ variable [CHANGING]) is a Clojure (pure) library with its basis on basic matrix/vector operations aimed at state-variable approach to problem solving.
>Installation
Download kigubkur-0.2.0.jar
and make it as a dependency in your project by moving the downloaded file into
the directory ~/<<project-name>>/resources/
and make it as a dependency in your project as follows.
>For Leiningen
In ~/<<project-name>>/project.clj
file insert
:dependencies [[kigubkur "0.2.0"]]
Run the command
lein repl
This will create ~/.m2/repository/kigubkur/kigubkur/0.2.0/
. Therefore, copy the downloaded jar file into the created directory
cp ~/path/to/downloaded/kigubkur-0.2.0.jar ~/.m2/repository/kigubkur/kigubkur/0.2.0/kigubkur-0.2.0.jar
Run lein repl
again to confirm the installation.
>For vanilla Clojure
In ~/<<project-name>>/deps.edn
file insert
{:deps {db/driver {:local/root "/path/to/db/driver.jar"}}}
Topics
- Introduction: Matrix representation
- Addition of matrices
- Scalar multiplication of matrix
- Multiplication of matrices
- Transpose of a matrix
Namespaces
kigubkur.constants
Public variables and functions:
kigubkur.construct.blocking
Construct a block from a kigubkur© matrix or its inverse (unblock).
kigubkur.construct.colon
Construct a Clojure vector for a given interval.
Public variables and functions:
kigubkur.construct.merge
Construct a kigubkur© matrix by assimilation.
Public variables and functions:
kigubkur.construct.pick
Construct a kigubkur© matrix or a number by selecting from a kigubkur© matrix.
Public variables and functions:
kigubkur.construct.reshape
Construct a kigubkur© matrix by reshaping a kigubkur© matrix into the desired order [m n]
.
Public variables and functions:
kigubkur.core
Default namespace containing most of the kigubkur© functions.
Public variables and functions:
kigubkur.dig.index
Indexing function returns (if found) the index of a scalar element in a kigubkur© matrix (or block). Note that the index follows kigubkur© indexing strategy; rows indices follow 1, …, m and column indices follow 1, …, n. Thus, index starts from 1 and NOT from 0.
Public variables and functions:
kigubkur.dig.order
Dig into a kigubkur© matrix (or block) by getting its order (m × n).
Public variables and functions:
kigubkur.elfun.ceil
Elementary Function: ceiling function, ⌈x⌉ = smallest integer ≥ x.
Public variables and functions:
kigubkur.elfun.floor
Elementary Function: floor function, ⌊x⌋ = greatest integer ≤ x.
Public variables and functions:
kigubkur.elfun.heaviside
Elementary Function: Heaviside functions.
kigubkur.elfun.logarithm
Elementary Function: Logarithm functions.
kigubkur.elfun.reciprocal
Elementary Function: reciprocal of a number or all the elements (numbers) of a kigubkur© matrix (block included).
Public variables and functions:
kigubkur.elmat.eye
Elementary Matrix: kigubkur© matrix of all 1 in diagonal, [[1ii]]m × n.
Public variables and functions:
kigubkur.elmat.ones
Elementary Matrix: kigubkur© matrix of all ones [[1]]m × n.
Public variables and functions:
kigubkur.elmat.random
Elementary Matrix: kigubkur© matrix of all random elements [[rij]]m × n
kigubkur.elmat.zeros
Elementary Matrix: kigubkur© matrix of all zeros [[0]]m × n
Public variables and functions:
kigubkur.mod.absolute
Modify: to absolute value of a number or all the elements (numbers) of a kigubkur© matrix.
Public variables and functions:
kigubkur.mod.changesign
Modify: to opposite sign of a number or all the elements (numbers) of a kigubkur© matrix (block included).
kigubkur.mod.coerce
Modify: to coerce the number type of a number or all the elements (numbers) of a kigubkur© matrix (block included).
Public variables and functions:
kigubkur.mod.transpose
Modify: to transpose kigubkur© matrix (block included)
Public variables and functions:
kigubkur.op.edivide
Operate: element-wise division (applicable to blocks).
Public variables and functions:
kigubkur.op.epower
Operate: element-wise exponentiation (applicable to blocks).
Public variables and functions:
kigubkur.op.etimes
Operate: element-wise multiplication (applicable to blocks).
Public variables and functions:
kigubkur.op.mtimes
Operate: matrix multiplication (applicable to blocks).
Public variables and functions:
kigubkur.pred.ecompare
Predicate: for element-wise comparisons of kigubkur© matrices (or blocks).
Public variables and functions:
kigubkur.pred.type-base
Predicate: for core kigubkur© matrix; [[mij]]m × n.
Public variables and functions:
kigubkur.pred.type-special
Predicate: for special matrices defined in kigubkur©.
Public variables and functions: