SwiftextensionKnowledgeGraphKit
SparseArrayProtocol
extension KnowledgeGraphKit.SparseArrayProtocol
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
extends{}
Members 27
- func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value: KnowledgeGraphKit.SparseArrayProtocol, A.Value.SparseArrayProtocol.Value == Double>.* infix<A where A1: KnowledgeGraphKit.SparseArrayProtocol, A1.Value: KnowledgeGraphKit.SparseArrayProtocol, A1.Value.SparseArrayProtocol.Value == Double>(A, A1) -> KnowledgeGraphKit.SparseArray<KnowledgeGraphKit.SparseArray<Double>> - func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value: KnowledgeGraphKit.SparseArrayProtocol, A.Value.SparseArrayProtocol.Value == Float>.* infix<A where A1: KnowledgeGraphKit.SparseArrayProtocol, A1.Value: KnowledgeGraphKit.SparseArrayProtocol, A1.Value.SparseArrayProtocol.Value == Float>(A, A1) -> KnowledgeGraphKit.SparseArray<KnowledgeGraphKit.SparseArray<Float>> - func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value == Double>.* infix(Double, A) -> KnowledgeGraphKit.SparseArray<Double> - func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value == Double>.* infix(A, Double) -> KnowledgeGraphKit.SparseArray<Double> - func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value == Double>.* infix(A, KnowledgeGraphKit.Vector<Double>) -> Double - func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value == Double>.* infix<A where A1: KnowledgeGraphKit.SparseArrayProtocol, A1.Value == Double>(A, A1) -> Double - func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value == Float>.* infix(Float, A) -> KnowledgeGraphKit.SparseArray<Float> - func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value == Float>.* infix(A, Float) -> KnowledgeGraphKit.SparseArray<Float> - func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value == Float>.* infix(A, KnowledgeGraphKit.Vector<Float>) -> Float - func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value == Float>.* infix<A where A1: KnowledgeGraphKit.SparseArrayProtocol, A1.Value == Float>(A, A1) -> Float - func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value == Double>..** infix(A, Double) -> KnowledgeGraphKit.SparseArray<Double> - func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value == Float>..** infix(A, Float) -> KnowledgeGraphKit.SparseArray<Float> - func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value == Double>./ infix(A, Double) -> KnowledgeGraphKit.SparseArray<Double> - func
static KnowledgeGraphKit.SparseArrayProtocol< where A.Value == Float>./ infix(A, Float) -> KnowledgeGraphKit.SparseArray<Float> - func
dotProduct<A where A1: KnowledgeGraphKit.SparseArrayProtocol, A.Value == A1.Value>(with: A1, add: (inout A.Value, A.Value) -> (), multiply: (A.Value, A.Value) -> A.Value) -> A.Value - func
KnowledgeGraphKit.SparseArrayProtocol< where A.Value: Numeric>.dotProduct<A where A1: KnowledgeGraphKit.SparseArrayProtocol, A.Value == A1.Value>(with: A1) -> A.Value - func
intersection<A, B where A1: KnowledgeGraphKit.SparseArrayProtocol, B1: KnowledgeGraphKit.SparseElement>(with: A1, combine: (A.Value, A1.Value) -> B1) -> KnowledgeGraphKit.SparseArray<B1> - func
mapIntersection<A, B where A1: KnowledgeGraphKit.SparseArrayProtocol, A.Value == A1.Value>(with: A1, initialValue: B1, update: (inout B1, A.Value) -> (), combine: (A.Value, A.Value) -> A.Value) -> B1 - func
mapSparseValues<A where A1: KnowledgeGraphKit.SparseElement>((A.Value) throws -> A1) throws -> KnowledgeGraphKit.SparseArray<A1> - func
reduce<A where A1: KnowledgeGraphKit.SparseElement>(into: A1, update: (inout A1, A.Value) -> ()) -> A1 - func
KnowledgeGraphKit.SparseArrayProtocol< where A.Value: KnowledgeGraphKit.SparseArrayProtocol, A.Value.SparseArrayProtocol.Value: Numeric>.scalingColumns(with: KnowledgeGraphKit.SparseArray<A.Value.SparseArrayProtocol.Value>) -> KnowledgeGraphKit.SparseArray<KnowledgeGraphKit.SparseArray<A.Value.SparseArrayProtocol.Value>> - func
KnowledgeGraphKit.SparseArrayProtocol< where A.Value: KnowledgeGraphKit.SparseArrayProtocol, A.Value.SparseArrayProtocol.Value: Numeric>.scalingRows(with: KnowledgeGraphKit.SparseArray<A.Value.SparseArrayProtocol.Value>) -> KnowledgeGraphKit.SparseArray<KnowledgeGraphKit.SparseArray<A.Value.SparseArrayProtocol.Value>> - func
sparseKroneckerMap<A, B where A1: KnowledgeGraphKit.SparseArrayProtocol, B1: KnowledgeGraphKit.SparseElement>(with: A1, combine: (A.Value, A1.Value) throws -> B1) throws -> KnowledgeGraphKit.SparseArray<KnowledgeGraphKit.SparseArray<B1>> - func
KnowledgeGraphKit.SparseArrayProtocol< where A.Value: KnowledgeGraphKit.SparseArrayProtocol, A.Value.SparseArrayProtocol.Value: AdditiveArithmetic>.sum(along: MAMatrixAxis) -> KnowledgeGraphKit.SparseArray<A.Value.SparseArrayProtocol.Value> - func
KnowledgeGraphKit.SparseArrayProtocol< where A.Value: AdditiveArithmetic>.sum() -> A.Value - func
KnowledgeGraphKit.SparseArrayProtocol< where A.Value: KnowledgeGraphKit.SparseArrayProtocol>.transposed() -> KnowledgeGraphKit.SparseArray<KnowledgeGraphKit.SparseArray<A.Value.SparseArrayProtocol.Value>> - func
union<A where A1: KnowledgeGraphKit.SparseArrayProtocol, A.Value == A1.Value>(with: A1, combine: (inout A.Value, A.Value) -> ()) -> KnowledgeGraphKit.SparseArray<A.Value>
Header
extension KnowledgeGraphKit.SparseArrayProtocol { func scalingRows(with: KnowledgeGraphKit.SparseArray<Self.Value.Value>) -> KnowledgeGraphKit.SparseArray<KnowledgeGraphKit.SparseArray<Self.Value.Value>> where Self.Value: KnowledgeGraphKit.SparseArrayProtocol, Self.Value.Value: Swift.Numeric func scalingColumns(with: KnowledgeGraphKit.SparseArray<Self.Value.Value>) -> KnowledgeGraphKit.SparseArray<KnowledgeGraphKit.SparseArray<Self.Value.Value>> where Self.Value: KnowledgeGraphKit.SparseArrayProtocol, Self.Value.Value: Swift.Numeric func transposed() -> KnowledgeGraphKit.SparseArray<KnowledgeGraphKit.SparseArray<Self.Value.Value>> where Self.Value: KnowledgeGraphKit.SparseArrayProtocol func sum(along: __C.MAMatrixAxis) -> KnowledgeGraphKit.SparseArray<Self.Value.Value> where Self.Value: KnowledgeGraphKit.SparseArrayProtocol, Self.Value.Value: Swift.AdditiveArithmetic func mapSparseValues<A1>(_: (_: Self.Value) throws -> A1) throws -> KnowledgeGraphKit.SparseArray<A1> where A1: KnowledgeGraphKit.SparseElement func dotProduct<A1>(with: A1, add: (inout Self.Value, Self.Value) -> (), multiply: (Self.Value, Self.Value) -> Self.Value) -> Self.Value where A1: KnowledgeGraphKit.SparseArrayProtocol, Self.Value == A1.Value func intersection<A1, B1>(with: A1, combine: (Self.Value, A1.Value) -> B1) -> KnowledgeGraphKit.SparseArray<B1> where A1: KnowledgeGraphKit.SparseArrayProtocol, B1: KnowledgeGraphKit.SparseElement func mapIntersection<A1, B1>(with: A1, initialValue: B1, update: (inout B1, Self.Value) -> (), combine: (Self.Value, Self.Value) -> Self.Value) -> B1 where A1: KnowledgeGraphKit.SparseArrayProtocol, Self.Value == A1.Value func sparseKroneckerMap<A1, B1>(with: A1, combine: (Self.Value, A1.Value) throws -> B1) throws -> KnowledgeGraphKit.SparseArray<KnowledgeGraphKit.SparseArray<B1>> where A1: KnowledgeGraphKit.SparseArrayProtocol, B1: KnowledgeGraphKit.SparseElement func union<A1>(with: A1, combine: (inout Self.Value, Self.Value) -> ()) -> KnowledgeGraphKit.SparseArray<Self.Value> where A1: KnowledgeGraphKit.SparseArrayProtocol, Self.Value == A1.Value func reduce<A1>(into: A1, update: (inout A1, Self.Value) -> ()) -> A1 where A1: KnowledgeGraphKit.SparseElement func dotProduct<A1>(with: A1) -> Self.Value where Self.Value: Swift.Numeric func sum() -> Self.Value where Self.Value: Swift.AdditiveArithmetic static func * <A1>(_: Self, _: A1) -> KnowledgeGraphKit.SparseArray<KnowledgeGraphKit.SparseArray<Swift.Double>> where Self.Value: KnowledgeGraphKit.SparseArrayProtocol, Self.Value.Value == Swift.Double static func * <A1>(_: Self, _: A1) -> KnowledgeGraphKit.SparseArray<KnowledgeGraphKit.SparseArray<Swift.Float>> where Self.Value: KnowledgeGraphKit.SparseArrayProtocol, Self.Value.Value == Swift.Float static func / (_: Self, _: Swift.Double) -> KnowledgeGraphKit.SparseArray<Swift.Double> where Self.Value == Swift.Double static func * (_: Swift.Double, _: Self) -> KnowledgeGraphKit.SparseArray<Swift.Double> where Self.Value == Swift.Double static func * (_: Self, _: Swift.Double) -> KnowledgeGraphKit.SparseArray<Swift.Double> where Self.Value == Swift.Double static func * (_: Self, _: KnowledgeGraphKit.Vector<Swift.Double>) -> Swift.Double where Self.Value == Swift.Double static func * <A1>(_: Self, _: A1) -> Swift.Double where Self.Value == Swift.Double static func .** (_: Self, _: Swift.Double) -> KnowledgeGraphKit.SparseArray<Swift.Double> where Self.Value == Swift.Double static func / (_: Self, _: Swift.Float) -> KnowledgeGraphKit.SparseArray<Swift.Float> where Self.Value == Swift.Float static func * (_: Swift.Float, _: Self) -> KnowledgeGraphKit.SparseArray<Swift.Float> where Self.Value == Swift.Float static func * (_: Self, _: Swift.Float) -> KnowledgeGraphKit.SparseArray<Swift.Float> where Self.Value == Swift.Float static func * (_: Self, _: KnowledgeGraphKit.Vector<Swift.Float>) -> Swift.Float where Self.Value == Swift.Float static func * <A1>(_: Self, _: A1) -> Swift.Float where Self.Value == Swift.Float static func .** (_: Self, _: Swift.Float) -> KnowledgeGraphKit.SparseArray<Swift.Float> where Self.Value == Swift.Float }